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_safe_external_path | Accept a safe absolute directory, including hosting roots like /public_html. | $1 Host-relative absolute directory. | — |
_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_load_ssh_helper | Load the shared SSH helper independently of the Framework development tree. | — | — |
_web_publish_prepare_ssh | Prepare SSH access for the normal publishing workflow, including recovery. | $1 User; $2 host; $3 port; $4 optional SSH private key. | — |
_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_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. | — | — |
_web_profiles_tool | Access WCM profile data in the resolved Framework tree. | — | — |
_web_profiles_migrate | Import the last configured SSH website without reading obsolete Base64 data. | — | — |
_web_profiles_read_record | Populate an associative array from the validated NUL-delimited profile store. | $1 Profile name; $2 destination associative array variable. | — |
_web_profiles_restore_selection | Restore the selected destination without altering the profile store. | — | — |
_web_profiles_load | Populate publishing settings from a validated NUL-delimited record. | $1 Profile name. | — |
_web_profiles_save | Save validated settings for one publication destination in the Framework store. | — | — |
_web_profiles_choose | Offer names grouped by their website, without preselecting a destination. | — | — |
_web_profiles_prompt_name | Offer website-grouped choices for read-only viewing and connection checks. | — | — |
_web_profiles_list | Display grouped website, profile, method, destination and last publication; | — | — |
_web_profiles_view | Display the complete non-secret profile configuration and publication date. | $1 Name of saved profile. | — |
_web_profiles_test_connection | Check local preview paths, SSH authentication/rsync/target permissions, or | $1 Name of the profile to verify, selected or otherwise. | — |
_web_profiles_select_nginx_site | Optionally reuse an active Nginx hostname and document root on the SSH host. | $1 host; $2 user; $3 port; $4 identity. | — |
_web_profiles_configure | Collect one website, destination, protocol, and optional server management. | — | — |
_web_profiles_manage | Show a freshly rendered Framework menu after each action, never append | — | — |
_web_profiles_preview_server | Start or stop the localhost-bound server, preferring 8080 and higher ports. | — | — |
_web_profiles_transfer | Dry-run, confirm and publish generated HTML through the configured transport. | — | — |
_web_content_publish | Preserve normal publishing entry action while enabling multiple destinations. | — | — |
_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,manage-publishing-profiles,publish-github-pages,validate,prepare-social,status).--ingest-dir VALUE,-i: Override Markdown ingestion directory.
Framework integration
DataTable renders the profile list; SSH helper is MCM-owned and sourced on demand, not resolved from Framework.
