# πŸ“– How to Build and Launch Sphinx Docs Assuming you’re using **Markdown** + **Sphinx** + **MyST**, here’s how to build your docs locally and preview them: ## πŸ› οΈ Install Dependencies Create a `docs/requirements.txt` file: ```text sphinx myst-parser furo ``` Then install: ```bash pip install -r docs/requirements.txt ``` --- ## πŸ“ Folder Structure (minimal example) ```text docs/ β”œβ”€β”€ source/ β”‚ β”œβ”€β”€ index.md β”‚ β”œβ”€β”€ installation.md β”‚ β”œβ”€β”€ usage.md β”‚ β”œβ”€β”€ stages.md β”‚ β”œβ”€β”€ cli.md β”‚ β”œβ”€β”€ architecture.md β”‚ └── conf.py β”œβ”€β”€ build/ ``` > Your `index.md` should include a `{toctree}` to organize the structure. Example `index.md`: ````markdown # πŸ“š Documentation ```{toctree} :maxdepth: 2 :caption: Contents installation usage stages cli architecture api/modules ``` ```` --- ## 🧱 Generate API Docs (Optional) If you want to auto-generate doc pages from your Python modules: ```bash sphinx-apidoc -o docs/source/api/ src/ # or your module folder ``` Then update `index.md` to include `api/modules`. --- ## πŸ”¨ Build the Docs From the project root: ```bash cd docs make html ``` > On Windows (no `make`): ```bash sphinx-build -b html source build ``` Then open: ```bash docs/build/html/index.html ```