Publish Web Content

SolidGroundUX DocumentationSolidGroundUX
NL

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
FunctionPurposeArgumentsOutput
_web_ask_selectionPresent a numbered selection prompt and return the chosen item to its caller.- $2: Name of the output shell variable.—
_web_server_load_stateRead web-management settings from the state file when available.——
_web_server_save_stateSave web-management settings to the configured state file.——
_dryrun_completeReport the dry-run result without executing the requested host change.——
_web_server_storage_rootResolve the configured SolidGroundUX storage root.——
_web_server_rootResolve the configured web content root.——
_web_server_installed_docs_rootRead SGND_WEB_DOC_INSTALLED_ROOT from the environment or web-server.cfg;—Prints the configured absolute documentation path.
_web_server_site_document_rootResolve the document root for an Nginx site.- $1: Configured Nginx site name.—
_web_server_remove_document_contentRemove all content below a document root.- $1: Absolute document root to clear.—
_web_server_ensure_directoryCreate and prepare a web content directory when needed.- $1: Filesystem path to inspect.—
_web_server_resolve_local_web_rootSelect the local website root for a remote publishing operation.- $1: Filesystem path.—
_web_server_publish_keyReturn the dedicated SolidGroundUX publishing key path.——
_web_server_remote_access_readyTest passwordless SSH publishing access.- $1: SSH remote target in user@host form.—
_web_server_setup_remote_accessConfigure dedicated passwordless SSH publishing access.- $1: SSH remote target in user@host form.—
_web_server_publish_sitePublish local or remote content into a site document root.——
_web_server_publish_documentationPublish documentation from the installed tree, a local/remote directory,——
_run_actionDispatch 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).