πŸ“– 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:

sphinx
myst-parser
furo

Then install:

pip install -r docs/requirements.txt

πŸ“ Folder Structure (minimal example)ΒΆ

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:

# πŸ“š 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:

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:

cd docs
make html

On Windows (no make):

sphinx-build -b html source build

Then open:

docs/build/html/index.html