docs: output generated sources under docs/lib and docs/mcp

This commit is contained in:
2026-09-10 21:11:30 +05:30
parent d4b79cf95a
commit a1c5f046d4
6 changed files with 26 additions and 16 deletions

View File

@@ -39,7 +39,7 @@ def cli() -> None:
@click.option(
"--docs-dir",
type=click.Path(path_type=Path),
default=Path("docs"),
default=Path("docs/lib"),
help="Directory for MD sources",
)
@click.option(
@@ -61,7 +61,7 @@ def cli() -> None:
@click.option(
"--out-dir",
type=click.Path(path_type=Path),
default=Path("mcp_docs"),
default=Path("docs/mcp"),
help="MCP output directory",
)
def build(
@@ -144,6 +144,7 @@ def build(
docs_dir,
project_name,
module_is_source,
readme_dir=mkdocs_yml.parent,
)
click.echo(f"Generating MkDocs config {mkdocs_yml}...")
@@ -177,7 +178,7 @@ def build(
@click.option(
"--out-dir",
type=click.Path(path_type=Path),
default=Path("mcp_docs"),
default=Path("docs/mcp"),
help="MCP root directory",
)
def serve(