Static website generation, including navigation and page-context title bars.
Source: target-root/usr/local/lib/solidgroundux/py/webcontent/generator.py
Static website generation, including navigation and page-context title bars.
Public functions
Public classes
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_normalize_languages | Normalize selected languages into canonical language identifiers. | — | — |
_route_to_output | Map a content route to its destination in the generated website tree. | — | — |
_make_output_relative_urls | Make site-local root-relative URLs work both over HTTP and `file://`. | — | — |
_make_output_relative_urls.replace | Substitute the current matched fragment during content rendering. | - match: Regular-expression match for the current substitution. | — |
_version_local_assets | Append a content hash to root-relative local .css/.js href/src links. | — | — |
_version_local_assets.replace | Substitute the current matched fragment during content rendering. | — | — |
_base_route_for_item | Derive the canonical base route of a content item. | — | — |
_ignore_marked_directories | Exclude marked asset subtrees and the marker itself during copying. | — | — |
_render_navigation | Build a recursive sidebar from translated page titles and content routes. | — | — |
_render_navigation.label_for | Choose the display label for a navigation item. | — | — |
_render_navigation.render | Render a content item or navigation section using its configured template. | — | — |
_render_navigation.render.child_order | Prefer section navigation order over ordinary page ordering. | — | — |
_render_navigation.render.first_visible_page | Find a navigable nonhidden page in the requested section. | — | — |
_render_external_links | Render external links for website output. | — | — |
_source_filename | Return the original source filename for generated documentation pages. | — | — |
_render_breadcrumb | Show the section hierarchy down to the actual source file. | — | — |
_context_header | Render page context; language navigation lives in the persistent sidebar. | — | — |
_render_language_selector | Show enabled languages, linking missing translations to the real Dutch page. | — | — |
_article_meta | Collect metadata for RSS and article-page generation. | — | — |
_summary_fragment | Render the visible excerpt of a content summary. | — | — |
_image_for | Prefer index art, then hero art; publish local assets safely. | — | — |
_publish_image | Resolve relative author images beside Markdown, without escaping content root. | — | — |
_publish_local_resource | Publish a relative content-local download, retaining its resource filename. | — | — |
_resolve_body_resources | Rewrite Markdown download links to published local resource URLs. | — | — |
_resolve_body_resources.replace | Substitute the current matched fragment during content rendering. | — | — |
_resolve_body_images | Rewrite local Markdown images before Markdown rendering; leave external URLs intact. | — | — |
_resolve_body_images.replace | Substitute the current matched fragment during content rendering. | - match: Regular-expression match for the current substitution. | — |
_card | Render an existing section card, optionally with its identifying image. | — | — |
_index_row | Build the structured row for a generated content index. | — | — |
_render_index | Render index for website output. | — | — |
_explicit_indexes | Replace index blocks with inert markers restored after Markdown rendering. | — | — |
_explicit_indexes.replace | Substitute the current matched fragment during content rendering. | - match: Regular-expression match for the current substitution. | — |
_direct_children | Find immediate children, preferring the page language and then Dutch. | — | — |
_featured_card | Render one curated Featured tile using target-page metadata. | — | — |
_featured_for | Render the home-page Featured slider. | — | — |
_seo_tags | Return escaped metadata; previews are excluded from indexing regardless of URL. | — | — |
_seo_tags.esc | Escape content for inclusion in generated XML or HTML. | - value: Value to parse, validate or serialize. | — |
_write_sitemap | Write sitemap to generated output. | — | — |
_write_rss | Write rss to generated output. | — | — |
_check_internal_links | Inspect rendered href/src URLs against the generated output tree. | — | — |
