- add build_wiki_nav deriving MkDocs nav from docs/wiki file structure (index.md -> Home, numeric prefixes stripped and title-cased, nested dirs become groups, natural ordering) - add --wiki / --wiki-dir to build; wiki-only builds need no --module - merge wiki nav before generated lib/api nav; wiki Home replaces the nav spec Home entry - add mkdocs.wiki.yml template fragment and nav/cli tests - dogfood doc-forge's own docs/wiki and regenerate site output
37 lines
699 B
Python
37 lines
699 B
Python
from pathlib import Path
|
|
from typing import Any
|
|
|
|
from click.core import Group
|
|
|
|
cli: Group
|
|
|
|
def build(
|
|
mcp: bool,
|
|
mkdocs: bool,
|
|
api: bool,
|
|
wiki: bool,
|
|
module_is_source: bool,
|
|
module: str | None,
|
|
openapi_spec: Path | None,
|
|
project_name: str | None,
|
|
site_name: str | None,
|
|
docs_dir: Path,
|
|
wiki_dir: Path,
|
|
nav_file: Path,
|
|
template: Path | None,
|
|
mkdocs_yml: Path,
|
|
out_dir: Path,
|
|
) -> None: ...
|
|
def serve(
|
|
mcp: bool,
|
|
mkdocs: bool,
|
|
module: str | None,
|
|
mkdocs_yml: Path,
|
|
out_dir: Path,
|
|
) -> None: ...
|
|
def tree(
|
|
module: str,
|
|
project_name: str | None,
|
|
) -> None: ...
|
|
def _print_object(obj: Any, indent: str) -> None: ...
|