Publish local, remote, Git, and SolidGroundUX documentation content
Source: target-root/usr/local/libexec/solidgroundux/publish-web-content.sh
Publish local, remote, Git, and SolidGroundUX documentation content
Public functions
Internal functions
| Function | Purpose | Arguments | Output |
|---|---|---|---|
_web_ask_selection | Present a numbered selection prompt and return the chosen item to its caller. | - $2: Name of the output shell variable. | — |
_web_server_load_state | Read web-management settings from the state file when available. | — | — |
_web_server_save_state | Save web-management settings to the configured state file. | — | — |
_dryrun_complete | Report the dry-run result without executing the requested host change. | — | — |
_web_server_storage_root | Resolve the configured SolidGroundUX storage root. | — | — |
_web_server_root | Resolve the configured web content root. | — | — |
_web_server_installed_docs_root | Read SGND_WEB_DOC_INSTALLED_ROOT from the environment or web-server.cfg; | — | Prints the configured absolute documentation path. |
_web_server_site_document_root | Resolve the document root for an Nginx site. | - $1: Configured Nginx site name. | — |
_web_server_remove_document_content | Remove all content below a document root. | - $1: Absolute document root to clear. | — |
_web_server_ensure_directory | Create and prepare a web content directory when needed. | - $1: Filesystem path to inspect. | — |
_web_server_resolve_local_web_root | Select the local website root for a remote publishing operation. | - $1: Filesystem path. | — |
_web_server_publish_key | Return the dedicated SolidGroundUX publishing key path. | — | — |
_web_server_remote_access_ready | Test passwordless SSH publishing access. | - $1: SSH remote target in user@host form. | — |
_web_server_setup_remote_access | Configure dedicated passwordless SSH publishing access. | - $1: SSH remote target in user@host form. | — |
_web_server_publish_site | Publish local or remote content into a site document root. | — | — |
_web_server_publish_documentation | Publish documentation from the installed tree, a local/remote directory, | — | — |
_run_action | Dispatch the requested management action to its implementation. | - $1: Management action to execute. | — |
Description
Publish local, remote, Git, and SolidGroundUX documentation content to Nginx sites.
Usage
Run the executable from its shell command (or installed wrapper):
publish-web-content --action publish-site
publish-web-content --dryrun --action publish-documentation
Script-specific options:
--action NAME,-a: Publishing action (choices:publish-site,publish-documentation).
