init docforge lib

This commit is contained in:
2026-01-20 18:22:16 +05:30
parent 86a4f8f41a
commit a45725160d
28 changed files with 3486 additions and 0 deletions

33
docforge/cli/__init__.pyi Normal file
View File

@@ -0,0 +1,33 @@
"""Type stubs for doc-forge CLI package."""
from typing import Any, Dict, List, Optional, Union
from pathlib import Path
import click
@click.group()
def cli() -> None: ...
@cli.command()
@click.option('--renderer', type=click.Choice(['mkdocs', 'sphinx']), required=True)
@click.option('--out-dir', type=click.Path(), default='docs')
@click.argument('modules', nargs=-1)
def generate(renderer: str, out_dir: Path, modules: List[str]) -> None: ...
@cli.command()
@click.option('--renderer', type=click.Choice(['mkdocs', 'sphinx']), required=True)
@click.option('--out-dir', type=click.Path(), default='docs')
def build(renderer: str, out_dir: Path) -> None: ...
@cli.command()
@click.option('--renderer', type=click.Choice(['mkdocs', 'sphinx']), required=True)
@click.option('--out-dir', type=click.Path(), default='docs')
@click.option('--host', default='localhost')
@click.option('--port', type=int, default=8000)
def serve(renderer: str, out_dir: Path, host: str, port: int) -> None: ...
@cli.command()
@click.option('--out-dir', type=click.Path(), default='mcp')
@click.argument('modules', nargs=-1)
def export(out_dir: Path, modules: List[str]) -> None: ...
def main() -> None: ...