-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8be0a84
commit 9b00a5e
Showing
1 changed file
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
version: 2 | ||
|
||
build: | ||
image: ubuntu-22.04 # Valid build image | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
|
||
python: | ||
version: 3.6 # Match your project's Python version | ||
install: | ||
- method: pip | ||
requirements: requirements.txt # Or docs/requirements.txt if used | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
sphinx: | ||
configuration: docs/conf.py # Adjust the path to your conf.py | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.6.8" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r docs/requirements.txt | ||
# Optional: Conda configuration if needed | ||
# conda: | ||
# file: docs/conda_env_cpu_linux64.yml # If using Conda, specify your environment file | ||
- name: Build documentation | ||
run: | | ||
cd docs | ||
make html |