Ingest, delete, generate, validate, and prepare static website content
Source: target-root/usr/local/libexec/solidgroundux/manage-web-content.sh
Ingest, delete, generate, validate, and prepare static website content
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_web_content_python_root | Run the python root action through Web Content Management. | — | — |
_web_content_validate_source | Run the validate source action through Web Content Management. | - $1: Optional: filesystem path to inspect. | — |
_web_content_validate_language | Run the validate language action through Web Content Management. | - $1: Optional: value to inspect or write. | — |
_web_content_validate_platform | Run the validate platform action through Web Content Management. | - $1: Optional: value to inspect or write. | — |
_web_content_ensure_output_parent | Run the ensure output parent action through Web Content Management. | - $1: Filesystem path to inspect. | — |
_web_content_result_value | Extract a requested field from the most recent engine result. | - $1: Path to the operation result file. | — |
_web_content_run_engine | Invoke the noninteractive Python engine and capture its structured result. | - $1: Path to the operation result file. | — |
_web_content_record_activity | Allow the Management Console wrapper to distinguish a successful no-op content | - $1 COUNT - Number of canonical content files changed during this action. | — |
_web_content_report_errors | Run the report errors action through Web Content Management. | - $1: Path to the operation result file. | — |
_web_content_report_warnings | Run the report warnings action through Web Content Management. | - $1: Path to the operation result file. | — |
_web_content_select_source | Run the select source action through Web Content Management. | — | — |
_web_content_select_language | Run the select language action through Web Content Management. | — | — |
_web_content_validate_ingest_dir | Run the validate ingest dir action through Web Content Management. | - $1: Optional: filesystem path to inspect. | — |
_web_content_validate_slug | Run the validate slug action through Web Content Management. | - $1: Optional: value to inspect or write. | — |
_web_content_canonical_ingest_dir | Run the canonical ingest dir action through Web Content Management. | — | — |
_web_content_canonical_archive_dir | Run the canonical archive dir action through Web Content Management. | — | — |
_web_content_canonical_delete_archive_dir | Run the canonical delete archive dir action through Web Content Management. | — | — |
_web_content_select_ingest_dir | Run the select ingest dir action through Web Content Management. | — | — |
_web_content_extract_parent_route | Run the extract parent route action through Web Content Management. | - $1: Optional: Parent-route selection label. | — |
_web_content_kind_label | Run the kind label action through Web Content Management. | - $1: Optional: content type. | — |
_web_content_kind_value | Run the kind value action through Web Content Management. | - $1: Optional: prompt or display label. | — |
_web_content_choose_language | Run the choose language action through Web Content Management. | - $1: Name of the shell variable receiving the result. | — |
_web_content_choose_kind | Run the choose kind action through Web Content Management. | - $1: Name of the shell variable receiving the result. | — |
_web_content_choose_parent | Run the choose parent action through Web Content Management. | - $1: Name of the shell variable receiving the result. | — |
_web_content_ingest_one | Normalize and archive one loose Markdown file. | - $1: Path to the source input file. | — |
_web_content_valid_incoming_config | Validate saved source settings before network access. | — | — |
_web_content_configure_incoming | Save SSH source settings through the framework state registry. | — | — |
_web_content_retrieve_incoming | Pull selected remote incoming packages safely via SSH. | — | — |
_web_content_ingest | Ingest one or more loose Markdown files into a website repository. | — | — |
_web_content_delete_one | Preview and archive one selected canonical page or child section while preserving | - $1 SELECTION - Display value returned by inspect-delete / ask_selection. | — |
_web_content_delete | Select one or more canonical child pages/sections, archive the selected content, | — | — |
_web_content_generate | Generate a static website from a content repository. | — | — |
_web_content_validate | Validate a web-content repository. | — | — |
_web_content_prepare_social | Prepare a single article as a social-media draft. | — | — |
_web_content_status | Show Web Content Management configuration and engine status. | — | — |
_web_content_manage_page_once | Select one page and edit metadata or move its canonical source file. | - $1: Requested operation. | — |
_web_content_manage_page | Repeat content editing when requested. | - $1: Requested operation. | — |
_web_content_manage_config | Select an existing .cfg file and open it in nano. | — | — |
_web_publish_safe_path | Require a dedicated absolute deployment directory. | - $1: Optional: filesystem path to inspect. | — |
_web_publish_restore_legacy | Import one unambiguous previously saved destination. | — | — |
_web_publish_discover_sites | List active remote Nginx hostnames and document roots. | - $1 hostname; $2 user; $3 port; $4 optional SSH identity; $5 mode. | Mode sites: hostname TAB absolute-root; mode roots: absolute-root. |
_web_publish_configure | Configure website publication after selecting the server. | — | — |
_web_publish_prepare_ssh | Discover the shared agent and repair SSH access when requested. | - $1: User account. | — |
_web_publish_remote_site | Offer optional Nginx provisioning before the first rsync deployment. | - $1: Remote host or site name. | — |
_web_publish_offer_dns | Run the existing Web Server DNS dialog remotely, on request. | - $1: Remote host or site name. | — |
_web_publish_verify_http | Report DNS and HTTP availability after a successful deployment. | - $1: Website hostname for HTTP reachability verification. | — |
_web_content_publish | Review, preview and publish a generated HTML website. | — | — |
_web_content_import_local | Review server-local files before copying to incoming. | — | — |
_web_content_ingest_incoming | Preview and confirm ingestion of one staged package. | — | — |
_web_content_github_pages_configure | Choose the already-generated documentation HTML and the checked-out | — | — |
_web_content_github_pages_rebase | The WebContent generator already writes relative HTML links, but the | - $1 — Checked-out GitHub Pages docs directory. | — |
_web_content_github_pages_push | Reuse the generated HTML, commit only the Framework repository's docs | — | — |
_web_content_publish_github_pages | Publish only generated documentation to the existing Pages location. | — | — |
_run_action | Dispatch the requested command-line management action. | - $1: Management action to execute. | — |
Description
Provides the SolidGroundUX user-facing workflow for the reusable Python WebContent engine. All prompts, state, progress, and result reporting remain in this Bash layer; the Python package is deliberately non-interactive. Loose Markdown can be ingested individually or in batches from a canonical incoming directory, normalized into a website repository, and archived after successful ingestion. Canonical pages can also be selected individually or in batches and removed recoverably by archiving them outside the active content tree.
Usage
Run the executable from its shell command (or installed wrapper):
manage-web-content --action ingest
manage-web-content --action generate
manage-web-content --action publish
manage-web-content --action publish-github-pages
manage-web-content --action validate
Script-specific options:
--action NAME,-a: Management action (supported actions:ingest,delete,edit-metadata,move-page,manage-config,configure-source,retrieve-incoming,import-local,ingest-incoming,generate,publish,publish-github-pages,validate,prepare-social,status).--ingest-dir VALUE,-i: Override Markdown ingestion directory.
