Manage Documentation Bundles

SolidGroundUX DocumentationSolidGroundUX
NL

Manage documentation bundles through the SolidGroundUX interface.

Source: target-root/usr/local/libexec/solidgroundux/manage-bundles.sh

Manage documentation bundles through the SolidGroundUX interface.

Public functions

Internal functions
FunctionPurposeArgumentsOutput
_bundle_pythonCall the existing bundle Python CLI without changing its API.$@ - Command and arguments from the original doc-bundles.sh implementation.Prints successful backend output to stdout; errors to stderr via sayfail.
_bundle_markdown_pythonInvoke the existing Markdown generator and report JSON.- $1 — Bundle identifier.JSON summary from the Markdown generator.
_bundle_promptRead a value using the framework's ask facility.- $1 label, $2 default, $3 output variable, $4 optional validator, $5 width.—
_bundle_validate_nonemptyReject empty required values.——
_bundle_validate_directoryValidate an existing source directory.——
_bundle_validate_outputRequire an absolute output directory.——
_bundle_validate_overwriteAccept supported overwrite policies.——
_bundle_validate_positionRequire a positive one-based position.——
_bundle_require_activeReject an operation without a selected bundle.——
_bundle_render_tableRender a framework datatable with a named section.- $1 section title, $2 schema, $3 table array name.—
_bundle_read_bundle_tablePopulate a datatable from list-json.—(globals)
_bundle_read_sources_tablePopulate a datatable from a bundle's products.—(globals)
_bundle_choose_rowResolve a numbered selection from a provided ID array.- $1 output variable, $2 nameref array variable.—
_bundle_continuePrint a spacer and wait for Enter before returning to the menu.——
_bundle_listList saved documentation bundles as a datatable.——
_bundle_selectSelect a bundle by its displayed table number.——
_bundle_createCreate a saved bundle through the existing CLI.——
_bundle_configureModify the bundle configuration using original CLI fields.——
_bundle_validate_doc_roleAccept the three bundle document placement roles.——
_bundle_validate_doc_actionAccept document-management commands.——
_bundle_validate_doc_role_or_pageAccept section-level document placement.——
_bundle_validate_doc_pathCheck documentation source file extensions.——
_bundle_manage_documentsShow explicit document selections and allow manual or automatic modes.——
_bundle_validateValidate the active bundle.——
_bundle_deleteConfirm and delete a saved bundle.——
_bundle_generateValidate bundle and prepare the Markdown WWW root.——
_bundle_generate_selectedShow the saved bundles, require an explicit selection, and generate only——
_bundle_generate_installedGenerate documentation from the actual installed product files, not a——
_bundle_sources_tableDisplay the ordered product/source datatable.——
_bundle_source_addAdd a source repository to the active bundle.——
_bundle_source_editEdit the chapter title and source directory.——
_bundle_source_moveReorder a source repository chapter.——
_bundle_source_removeRemove a source repository from the bundle.——
_bundle_print_active_summaryShow active bundle below the title bar.——
_bundle_show_menuKeep the framework menu model, paging, item numbering and dispatch intact.——
_bundle_register_main_menuRegister bundle actions through sgnd-menu.——
_bundle_register_sources_menuRegister the source-management submenu.——
_bundle_manage_sourcesShow nested source menu with per-action continue.——

Description

MCM frontend for sgnd_doc_bundles.py and sgnd_doc_markdown.py. The Python programs remain responsible for persistence, validation, and Markdown preparation. Menus, tables, prompts, messages and lifecycle use the framework's public APIs.

Usage

Run the executable from its shell command (or installed wrapper):

sgnd-manage-bundles
sgnd-manage-bundles --generate
sgnd-manage-bundles --installed
  • With no mode: open the interactive documentation-bundle manager.
  • With --generate: choose a saved bundle and generate its Markdown documentation.
  • With --installed: generate documentation from installed product release manifests.
  • Select Q at the bundle selector to return without generating anything.

Framework integration

Optional libraries are loaded by sgnd_exe_start/sgnd_bootstrap in this order. sgnd-menu uses the datatable API for its menu model.