cynthia_websites_mini_client/pottery/molds/documentation
Documentation Layout Module
A layout inspired by the Rust Book and other documentation websites. Features:
- Collapsible sidebar for navigation
- Clean typography optimized for reading long-form content
- Mobile-responsive design
- Multiple theme options (light, dark, sepia, etc.)
Values
pub fn menu_1(
from model: model_type.Model,
) -> List(@internal Element(messages.Msg))
Primary navigation menu generator for documentation layout
Creates the main documentation navigation menu.
@param model Client model containing menus and current path @return List of HTML elements representing menu items
pub fn page_layout(
from content: @internal Element(messages.Msg),
with variables: dict.Dict(String, dynamic.Dynamic),
store model: model_type.Model,
) -> @internal Element(messages.Msg)
Page layout handler for the Documentation theme
This function creates the layout structure for regular pages (documentation pages).
@param content The main page content as an Element @param variables Dictionary containing page metadata @param store Client data store for menus and other data @return A fully constructed page layout
pub fn post_layout(
from content: @internal Element(messages.Msg),
with variables: dict.Dict(String, dynamic.Dynamic),
store model: model_type.Model,
) -> @internal Element(messages.Msg)
Post layout handler for the Documentation theme
This function creates the layout structure for blog posts/articles.
@param content The main post content as an Element @param variables Dictionary containing post metadata @param store Client data store for menus and other data @return A fully constructed post layout