Module docsite

Module docsite 

Source
Expand description

Documentation site path resolution. Port of Go’s pkg/docsite/.

Resolves paths to the bundled documentation site directory with automatic .html extension fallback.

Statics§

DOCSITE_DIR 🔒
Cached docsite directory path.

Functions§

get_docsite_dir
Get the cached docsite directory, if it exists.
is_safe_path
Check if a path component is safe (no traversal).
resolve_docsite_path
Resolve a request path to a file in the docsite directory.
set_docsite_dir
Set the docsite directory path (typically <app_path>/docsite).