mkdocs cli

This commit is contained in:
2026-01-20 21:40:18 +05:30
parent 726e7ca6d2
commit a8ba02c57b
13 changed files with 356 additions and 12 deletions

41
docforge/cli/mkdocs.pyi Normal file
View File

@@ -0,0 +1,41 @@
from __future__ import annotations
from pathlib import Path
from typing import Any, Dict, Optional
import click
def _load_template(template: Optional[Path]) -> Dict[str, Any]:
...
@click.command("mkdocs")
@click.option(
"--docs-dir",
type=click.Path(path_type=Path),
default=Path("docs"),
)
@click.option(
"--nav",
"nav_file",
type=click.Path(path_type=Path),
default=Path("docforge.nav.yml"),
)
@click.option(
"--template",
type=click.Path(path_type=Path),
default=None,
)
@click.option(
"--out",
type=click.Path(path_type=Path),
default=Path("mkdocs.yml"),
)
def mkdocs_cmd(
docs_dir: Path,
nav_file: Path,
template: Optional[Path],
out: Path,
) -> None:
...