Skip to content

Commit 1dfb7c7

Browse files
authored
Merge pull request #23 from xsuite/release/v0.4.1
Release 0.4.1
2 parents 00c5cb4 + 0ac1c99 commit 1dfb7c7

30 files changed

+1413
-888
lines changed

.github/workflows/docs.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and Deploy Docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write # required for pushing to gh-pages
10+
11+
concurrency:
12+
group: "docs-deploy"
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build-and-deploy:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
# 1. Checkout repo
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
# 2. Set up Python
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.11'
29+
cache: 'pip'
30+
31+
# 3. Install dependencies
32+
- name: Install dependencies
33+
working-directory: docs
34+
run: |
35+
python -m pip install --upgrade pip
36+
pip install -r requirements.txt
37+
38+
# 4. Build HTML docs
39+
- name: Build HTML documentation
40+
working-directory: docs
41+
run: |
42+
make clean
43+
make html
44+
45+
# 5. Deploy to GitHub Pages (gh-pages branch)
46+
- name: Deploy to GitHub Pages
47+
uses: peaceiris/actions-gh-pages@v4
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
publish_dir: ./docs/build/html
51+
enable_jekyll: false

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,16 @@ instance/
7171
# Scrapy stuff:
7272
.scrapy
7373

74-
# Sphinx documentation
74+
# Sphinx build artifacts
7575
docs/_build/
76+
docs/build/
77+
docs/generated/
78+
docs/source/_autosummary/
79+
docs/source/api/
80+
81+
# AutoAPI output
82+
docs/source/api/*
83+
!docs/source/api/.gitkeep # keep dir empty in repo
7684

7785
# PyBuilder
7886
target/

.readthedocs.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
# Set the OS, Python version and other tools you might need
7+
build:
8+
os: ubuntu-22.04
9+
tools:
10+
python: "3.12"
11+
12+
# Build documentation in the "docs/" directory with Sphinx
13+
sphinx:
14+
configuration: docs/source/conf.py
15+
fail_on_warning: false
16+
17+
# Explicitly set the version of Python and its requirements
18+
python:
19+
install:
20+
- requirements: docs/requirements.txt
21+
- method: pip
22+
path: .
23+
24+
# Optional but recommended, serve the docs on a subpath
25+
# formats: all

0 commit comments

Comments
 (0)