|
| 1 | +# ESP-USB Documentation |
| 2 | + |
| 3 | +This folder contains the ESP-Docs scaffolding for ESP-USB documentation. |
| 4 | + |
| 5 | +## Structure |
| 6 | + |
| 7 | +- `conf_common.py` - Common configuration for all languages |
| 8 | +- `en/` - English documentation source files |
| 9 | + - `conf.py` - English-specific configuration |
| 10 | + - `index.rst` - Main documentation index |
| 11 | +- `_static/` - Static files (CSS, JS, images) |
| 12 | + - `docs_version.js` - Target and version selector configuration |
| 13 | +- `Doxyfile` - Doxygen configuration file |
| 14 | +- `requirements.txt` - Python dependencies for building documentation |
| 15 | +- `build_docs.sh` - Build script for documentation |
| 16 | + |
| 17 | +## Building Documentation |
| 18 | + |
| 19 | +### Prerequisites |
| 20 | + |
| 21 | +1. **Python 3.7 or newer** |
| 22 | +2. **Doxygen** - Install via system package manager: |
| 23 | + - Ubuntu/Debian: `sudo apt-get install doxygen graphviz` |
| 24 | + - macOS: `brew install doxygen graphviz` |
| 25 | + - Windows: Download from [Doxygen website](https://www.doxygen.nl/download.html) |
| 26 | + |
| 27 | +### Build Steps |
| 28 | + |
| 29 | +To build the documentation locally: |
| 30 | + |
| 31 | +```bash |
| 32 | +cd docs |
| 33 | +pip install -r requirements.txt |
| 34 | +./build_docs.sh |
| 35 | +``` |
| 36 | + |
| 37 | +The built documentation will be in `docs/_build/`. |
| 38 | + |
| 39 | +## Adding Documentation Content |
| 40 | + |
| 41 | +1. Add reStructuredText (`.rst`) files to `docs/en/` |
| 42 | +2. Update `docs/en/index.rst` to include new pages in the table of contents |
| 43 | +3. For API documentation, ensure header files are included in `Doxyfile` INPUT paths |
| 44 | + |
| 45 | +## Existing Documentation |
| 46 | + |
| 47 | +The following folders contain existing markdown documentation that can be migrated to reStructuredText format: |
| 48 | + |
| 49 | +- `device/` - Device-related documentation |
| 50 | +- `host/` - Host-related documentation |
0 commit comments