mafw.devtools.documentation.server
Local documentation server management for MAFw.
This module provides the ServerStatusEnum, helper functions, and
orchestration logic for managing a python -m http.server subprocess used
to serve locally built versioned documentation.
Module Attributes
Default directory served by the local documentation server. |
|
Filename for server metadata stored inside the served directory. |
Functions
|
Determine the current server status from metadata and process/HTTP checks. |
|
Implementation for starting a local documentation server. |
|
Stop the server based on metadata found under a served directory. |
- mafw.devtools.documentation.server.get_server_status(directory: Path) Tuple[ServerStatusEnum, dict[str, Any] | None][source]
Determine the current server status from metadata and process/HTTP checks.
- mafw.devtools.documentation.server.server_start_impl(address: str, port: int, directory: Path, log_file: Path, force_restart: bool) None[source]
Implementation for starting a local documentation server.
- mafw.devtools.documentation.server.server_stop_by_metadata(directory: Path, require_metadata: bool) None[source]
Stop the server based on metadata found under a served directory.
- mafw.devtools.documentation.server.SERVER_DEFAULT_DIRECTORY = PosixPath('docs/build')
Default directory served by the local documentation server.
- mafw.devtools.documentation.server.SERVER_METADATA_FILENAME = '.multiversion-doc-server.json'
Filename for server metadata stored inside the served directory.