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
| Function | Purpose | Arguments | Output |
|---|---|---|---|
source_files | Find supported source languages without crawling build or cache folders. | — | — |
source_line_counts | Return non-overlapping physical code/comment lines (blank lines excluded). | — | — |
python_doc_markdown | Render native Python docstrings into readable Markdown sections and lists. | — | — |
parse_python_source | Discover Python functions/classes via AST and document their native docstrings. | — | — |
parse_python_source.marker_for | Find an adjacent documentation marker for a Python definition. | — | — |
parse_python_source.walk | Collect Python functions, classes, and documented variables from the syntax tree. | — | — |
parse_documented_source | Parse a Bash or Python source file using the matching documentation parser. | — | — |
slug | Convert a label into a stable lowercase hyphenated route component. | — | — |
is_template_source | Identify a source file that declares or lives in a template directory. | — | — |
template_priority | Rank template candidates by product, location, and path for deduplication. | — | — |
build_template_owners | Select the authoritative owner for each shared shell template name. | — | — |
prune_empty_headings | Remove headings without body text or meaningful child sections. | — | — |
front | Build YAML front matter for a generated Markdown page. | — | — |
write_index | Write a descriptive Markdown index and its front matter to a section directory. | — | — |
_section_marker | Recognize old section headers, but never reinterpret Markdown lists. | — | — |
parse_source | Extract documented items and Markdown while preserving source comment blocks. | — | — |
parse_source.header_line | Convert one legacy source heading into a Markdown line. | — | — |
markdown_documentation | Translate legacy Images blocks, preserving all other Markdown lines. | — | — |
script_metadata_markdown | Render source metadata comments without losing alignment or examples. | — | — |
script_metadata_markdown.close_explanation | Close the current explanation block before emitting the next declaration. | — | — |
script_metadata_markdown.flush_literal | Flush buffered literal content to the output Markdown stream. | — | — |
_def_cell | Escape table delimiters without interpreting shell syntax. | — | — |
_def_literal | Unquote a literal assignment value for the definition table. | — | — |
_def_assignments | Read literal assignments, including multiline Bash arrays, without evaluation. | — | — |
definition_markdown | Render the established # def: blocks as tables from literal source. | — | — |
append_preface | Append authored preface or epilogue entries to a section in order. | — | — |
copy_legacy_images | Use the original product asset location and the existing doc-sources locations. | — | — |
copy_assets_checked | Merge resource trees without silently replacing different files. | — | — |
missing_image_references | Report unresolved local Markdown images without rejecting documentary examples. | — | — |
declaration_template | Select the generated page template for a declaration kind. | — | — |
source_document_template | Classify a source file as a preface, epilogue, or regular page. | — | — |
directory_title | Derive a readable title from a directory name. | — | — |
collect | Use source metadata Group/Subgroup, never installation directories, for navigation. | — | — |
_product_reference_files | Only authored repository documents; never generated caches or website output. | — | — |
build_appendices | Build one bundle-level reference index from the actually published pages. | — | — |
split_wcm_document | Separate a WCM document's leading YAML metadata from its Markdown body. | — | — |
ordered_bundle_pages | Walk all generated documents in section/navigation order. | — | — |
ordered_bundle_pages.visit | No purpose documented in source. | — | — |
number_bundle_figures | Caption figures consecutively and publish a navigable appendix index. | — | — |
bundle_document_selections | Read ordered selections, or discover conventional bundle documents. | — | — |
bundle_document_selections.configured | No purpose documented in source. | — | — |
bundle_document_source | Resolve an authored bundle document or generated Markdown selection. | — | — |
bundle_document_metadata | Read authored Markdown navigation metadata without changing its body. | — | — |
bundle_nav_order | Validate an authored document's order relative to its siblings. | — | — |
render_bundle_document | Convert an authored preface/epilogue without executing source code. | — | — |
rewrite_promoted_links | Retarget links to an earlier generated route promoted as a bundle preface. | — | — |
publish_bundle_documents | Publish selected documents once, ordered before or after the chapters. | — | — |
This generator does not import or alter WCM. It emits its documented source layout.
