Sgnd Doc Markdown

SolidGroundUX DocumentationSolidGroundUX
NL

Generate a WCM Markdown source repository from a saved documentation bundle.

Source: target-root/usr/local/lib/solidgroundux/py/sgnd_doc_markdown.py

Generate a WCM Markdown source repository from a saved documentation bundle.

Public functions

Internal functions
FunctionPurposeArgumentsOutput
source_filesFind supported source languages without crawling build or cache folders.——
source_line_countsReturn non-overlapping physical code/comment lines (blank lines excluded).——
python_doc_markdownRender native Python docstrings into readable Markdown sections and lists.——
parse_python_sourceDiscover Python functions/classes via AST and document their native docstrings.——
parse_python_source.marker_forFind an adjacent documentation marker for a Python definition.——
parse_python_source.walkCollect Python functions, classes, and documented variables from the syntax tree.——
parse_documented_sourceParse a Bash or Python source file using the matching documentation parser.——
slugConvert a label into a stable lowercase hyphenated route component.——
is_template_sourceIdentify a source file that declares or lives in a template directory.——
template_priorityRank template candidates by product, location, and path for deduplication.——
build_template_ownersSelect the authoritative owner for each shared shell template name.——
prune_empty_headingsRemove headings without body text or meaningful child sections.——
frontBuild YAML front matter for a generated Markdown page.——
write_indexWrite a descriptive Markdown index and its front matter to a section directory.——
_section_markerRecognize old section headers, but never reinterpret Markdown lists.——
parse_sourceExtract documented items and Markdown while preserving source comment blocks.——
parse_source.header_lineConvert one legacy source heading into a Markdown line.——
markdown_documentationTranslate legacy Images blocks, preserving all other Markdown lines.——
script_metadata_markdownRender source metadata comments without losing alignment or examples.——
script_metadata_markdown.close_explanationClose the current explanation block before emitting the next declaration.——
script_metadata_markdown.flush_literalFlush buffered literal content to the output Markdown stream.——
_def_cellEscape table delimiters without interpreting shell syntax.——
_def_literalUnquote a literal assignment value for the definition table.——
_def_assignmentsRead literal assignments, including multiline Bash arrays, without evaluation.——
definition_markdownRender the established # def: blocks as tables from literal source.——
append_prefaceAppend authored preface or epilogue entries to a section in order.——
copy_legacy_imagesUse the original product asset location and the existing doc-sources locations.——
copy_assets_checkedMerge resource trees without silently replacing different files.——
missing_image_referencesReport unresolved local Markdown images without rejecting documentary examples.——
declaration_templateSelect the generated page template for a declaration kind.——
source_document_templateClassify a source file as a preface, epilogue, or regular page.——
directory_titleDerive a readable title from a directory name.——
collectUse source metadata Group/Subgroup, never installation directories, for navigation.——
_product_reference_filesOnly authored repository documents; never generated caches or website output.——
build_appendicesBuild one bundle-level reference index from the actually published pages.——
split_wcm_documentSeparate a WCM document's leading YAML metadata from its Markdown body.——
ordered_bundle_pagesWalk all generated documents in section/navigation order.——
ordered_bundle_pages.visitNo purpose documented in source.——
number_bundle_figuresCaption figures consecutively and publish a navigable appendix index.——
bundle_document_selectionsRead ordered selections, or discover conventional bundle documents.——
bundle_document_selections.configuredNo purpose documented in source.——
bundle_document_sourceResolve an authored bundle document or generated Markdown selection.——
bundle_document_metadataRead authored Markdown navigation metadata without changing its body.——
bundle_nav_orderValidate an authored document's order relative to its siblings.——
render_bundle_documentConvert an authored preface/epilogue without executing source code.——
rewrite_promoted_linksRetarget links to an earlier generated route promoted as a bundle preface.——
publish_bundle_documentsPublish selected documents once, ordered before or after the chapters.——

This generator does not import or alter WCM. It emits its documented source layout.