Generator

SolidGroundUX DocumentationSolidGroundUX
NL

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
FunctionPurposeArgumentsOutput
_normalize_languagesNormalize selected languages into canonical language identifiers.——
_route_to_outputMap a content route to its destination in the generated website tree.——
_make_output_relative_urlsMake site-local root-relative URLs work both over HTTP and `file://`.——
_make_output_relative_urls.replaceSubstitute the current matched fragment during content rendering.- match: Regular-expression match for the current substitution.—
_version_local_assetsAppend a content hash to root-relative local .css/.js href/src links.——
_version_local_assets.replaceSubstitute the current matched fragment during content rendering.——
_base_route_for_itemDerive the canonical base route of a content item.——
_ignore_marked_directoriesExclude marked asset subtrees and the marker itself during copying.——
_render_navigationBuild a recursive sidebar from translated page titles and content routes.——
_render_navigation.label_forChoose the display label for a navigation item.——
_render_navigation.renderRender a content item or navigation section using its configured template.——
_render_navigation.render.child_orderPrefer section navigation order over ordinary page ordering.——
_render_navigation.render.first_visible_pageFind a navigable nonhidden page in the requested section.——
_render_external_linksRender external links for website output.——
_source_filenameReturn the original source filename for generated documentation pages.——
_render_breadcrumbShow the section hierarchy down to the actual source file.——
_context_headerRender page context; language navigation lives in the persistent sidebar.——
_render_language_selectorShow enabled languages, linking missing translations to the real Dutch page.——
_article_metaCollect metadata for RSS and article-page generation.——
_summary_fragmentRender the visible excerpt of a content summary.——
_image_forPrefer index art, then hero art; publish local assets safely.——
_publish_imageResolve relative author images beside Markdown, without escaping content root.——
_publish_local_resourcePublish a relative content-local download, retaining its resource filename.——
_resolve_body_resourcesRewrite Markdown download links to published local resource URLs.——
_resolve_body_resources.replaceSubstitute the current matched fragment during content rendering.——
_resolve_body_imagesRewrite local Markdown images before Markdown rendering; leave external URLs intact.——
_resolve_body_images.replaceSubstitute the current matched fragment during content rendering.- match: Regular-expression match for the current substitution.—
_cardRender an existing section card, optionally with its identifying image.——
_index_rowBuild the structured row for a generated content index.——
_render_indexRender index for website output.——
_explicit_indexesReplace index blocks with inert markers restored after Markdown rendering.——
_explicit_indexes.replaceSubstitute the current matched fragment during content rendering.- match: Regular-expression match for the current substitution.—
_direct_childrenFind immediate children, preferring the page language and then Dutch.——
_featured_cardRender one curated Featured tile using target-page metadata.——
_featured_forRender the home-page Featured slider.——
_seo_tagsReturn escaped metadata; previews are excluded from indexing regardless of URL.——
_seo_tags.escEscape content for inclusion in generated XML or HTML.- value: Value to parse, validate or serialize.—
_write_sitemapWrite sitemap to generated output.——
_write_rssWrite rss to generated output.——
_check_internal_linksInspect rendered href/src URLs against the generated output tree.——