This is a Sphinx-based documentation project for NYUAD XNAT User Documentation.
- Python 3.8 or higher (required for Sphinx 7.2.6)
- pip (Python package manager)
Note: If you're on macOS and don't have Python 3.8+, you can install it using:
# Using Homebrew (recommended)
brew install [email protected]
# Or download from python.org
# https://www.python.org/downloads/-
Navigate to the docs directory:
cd docs -
Create a virtual environment (recommended):
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
From the docs/ directory, you can build the documentation using:
# Build HTML documentation
make html
# Or using sphinx-build directly:
sphinx-build -b html source build/htmlThe built documentation will be in docs/build/html/.
After building, you can view the documentation by opening docs/build/html/index.html in your web browser:
# On macOS:
open build/html/index.html
# On Linux:
xdg-open build/html/index.html
# On Windows:
start build/html/index.htmlFor a better development experience with auto-reload on file changes, use sphinx-autobuild:
# From the docs/ directory
sphinx-autobuild source build/htmlThis will start a local server (usually at http://127.0.0.1:8000) that automatically rebuilds and reloads when you make changes to the source files.
# Build PDF (requires LaTeX)
make latexpdf
# Clean build directory
make clean
# Show all available build targets
make helpdocs/source/- Source RST files and configurationdocs/build/- Generated documentation (created after building)docs/requirements.txt- Python dependenciesdocs/Makefile- Build automation