mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2026-02-07 13:40:59 +00:00
1.6 KiB
1.6 KiB
PythonBPF Documentation
This directory contains the Sphinx documentation for PythonBPF.
Building the Documentation
Prerequisites
Install the documentation dependencies:
pip install -r requirements.txt
# Or install the optional docs dependencies
pip install pythonbpf[docs]
Build HTML Documentation
make html
The generated documentation will be in _build/html/. Open _build/html/index.html in a browser to view.
Other Build Formats
make latexpdf # Build PDF documentation
make epub # Build ePub format
make clean # Clean build artifacts
Documentation Structure
index.md- Main landing pagegetting-started/- Installation and quick start guidesuser-guide/- Comprehensive user documentationapi/- API reference documentationconf.py- Sphinx configuration_static/- Static files (images, CSS, etc.)
Writing Documentation
Documentation is written in Markdown using MyST-Parser. See the existing files for examples.
MyST Markdown Features
- Standard Markdown syntax
- Directives using
{directive}syntax - Cross-references using
{doc}and{ref} - Admonitions (notes, warnings, tips)
- Code blocks with syntax highlighting
Contributing
When adding new documentation:
- Follow the existing structure
- Use MyST Markdown syntax
- Include code examples
- Test the build with
make html - Check for warnings and errors
Online Documentation
The documentation is automatically built and deployed to GitHub Pages (if configured).