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).