This repository contains the source text and configuration for the empanada-napari documentation.
The site is built using Sphinx and hosted on ReadTheDocs.
If you are new to Python or documentation, follow these step-by-step instructions to preview changes on your own computer.
Ensure you have Python 3.10 or newer installed.
It is best practice to use a "virtual environment" to install dependencies. This keeps your project isolated from other Python software on your system.
Open your terminal (Terminal on macOS/Linux, Command Prompt or PowerShell on Windows) and navigate to the project folder:
cd path/to/empanada-napari-docsRun the following commands:
# 1. Create a virtual environment named 'venv'
python -m venv venv
# 2. Activate the virtual environment
# On macOS / Linux:
source venv/bin/activate
# On Windows:
venv\Scripts\activate(You should see (venv) appear at the start of your command line, indicating the environment is active.)
Install the software required to build the documentation (like Sphinx and the theme).
pip install -r docs/requirements.txtThere are two ways to view the documentation:
Use this utility to start a local server. It will automatically rebuild the docs and refresh your browser whenever you modify and save a file.
# Navigate to the documentation source directory
cd docs
# Start the auto-build server
# Syntax: sphinx-autobuild [source_dir] [output_dir]
sphinx-autobuild . _build/htmlClick the link shown in the terminal (usually http://127.0.0.1:8000) to view the documentation. Press Ctrl+C to stop the server.
Use this if you just want to generate the files once without running a server.
cd docs
make htmlYou can then find the generated HTML files in docs/_build/html/. Open index.html in your web browser to view them.
The documentation is hosted on ReadTheDocs.
Deployment is automated:
- Make your edits and verify them locally using the steps above.
- Commit your changes and push them to the GitHub repository.
- ReadTheDocs will verify the
.readthedocs.yamlfile, install dependencies, and publish the new version automatically.
No manual server configuration is required for hosting.