|
| 1 | +# PythonBPF Documentation |
| 2 | + |
| 3 | +This directory contains the Sphinx documentation for PythonBPF. |
| 4 | + |
| 5 | +## Building the Documentation |
| 6 | + |
| 7 | +### Prerequisites |
| 8 | + |
| 9 | +Install the documentation dependencies: |
| 10 | + |
| 11 | +**Using uv (recommended):** |
| 12 | +```bash |
| 13 | +uv pip install -r requirements.txt |
| 14 | +# Or install the optional docs dependencies |
| 15 | +uv pip install pythonbpf[docs] |
| 16 | +``` |
| 17 | + |
| 18 | +**Using pip:** |
| 19 | +```bash |
| 20 | +pip install -r requirements.txt |
| 21 | +# Or install the optional docs dependencies |
| 22 | +pip install pythonbpf[docs] |
| 23 | +``` |
| 24 | + |
| 25 | +### Build HTML Documentation |
| 26 | + |
| 27 | +```bash |
| 28 | +make html |
| 29 | +``` |
| 30 | + |
| 31 | +The generated documentation will be in `_build/html/`. Open `_build/html/index.html` in a browser to view. |
| 32 | + |
| 33 | +### Other Build Formats |
| 34 | + |
| 35 | +```bash |
| 36 | +make latexpdf # Build PDF documentation |
| 37 | +make epub # Build ePub format |
| 38 | +make clean # Clean build artifacts |
| 39 | +``` |
| 40 | + |
| 41 | +## Documentation Structure |
| 42 | + |
| 43 | +- `index.md` - Main landing page |
| 44 | +- `getting-started/` - Installation and quick start guides |
| 45 | +- `user-guide/` - Comprehensive user documentation |
| 46 | +- `api/` - API reference documentation |
| 47 | +- `conf.py` - Sphinx configuration |
| 48 | +- `_static/` - Static files (images, CSS, etc.) |
| 49 | + |
| 50 | +## Writing Documentation |
| 51 | + |
| 52 | +Documentation is written in Markdown using [MyST-Parser](https://myst-parser.readthedocs.io/). See the existing files for examples. |
0 commit comments