-
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Handle building examples with sphinx-gallery
- Loading branch information
Showing
1 changed file
with
9 additions
and
7 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 |
---|---|---|
|
@@ -322,9 +322,11 @@ jobs: | |
run: python3 -m pip install -U pip setuptools wheel | ||
- name: Install Python dependencies | ||
run: | | ||
python3 -m pip install ruamel.yaml scons numpy cython sphinx==5.1.1 \ | ||
sphinxcontrib-matlabdomain sphinxcontrib-doxylink pint \ | ||
pydata-sphinx-theme==0.13.3 sphinx-argparse | ||
python3 -m pip install ruamel.yaml scons numpy cython sphinx==6.2.1 \ | ||
sphinxcontrib-matlabdomain sphinxcontrib-doxylink pint \ | ||
pydata-sphinx-theme==0.13.3 sphinx-argparse | ||
python3 -m pip install "git+ssh://[email protected]/speth/sphinx-gallery.git@multi-src-lang" | ||
python3 -m pip install "git+ssh://[email protected]/speth/sphinx-tags.git@tags-with-spaces" | ||
- name: Build Cantera with documentation | ||
run: python3 `which scons` build -j2 doxygen_docs=y sphinx_docs=y debug=n optimize=n use_pch=n | ||
- name: Ensure 'scons help' options work | ||
|
@@ -335,12 +337,12 @@ jobs: | |
- name: Parse configuration options from SConstruct as reST | ||
run: | | ||
python3 `which scons` help --restructured-text --dev --output=config-options-dev.rst | ||
mkdir build/docs/scons | ||
mv config-options-dev.rst build/docs/scons/ | ||
mkdir build/doc/scons | ||
mv config-options-dev.rst build/doc/scons/ | ||
- name: Create archive for docs output | ||
run: | | ||
cd build | ||
tar -czf docs.tar.gz docs | ||
tar -czf docs.tar.gz doc | ||
- name: Store archive of docs output | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|
@@ -362,7 +364,7 @@ jobs: | |
RSYNC_USER: "ctdeploy" | ||
RSYNC_SERVER: "cantera.org" | ||
RSYNC_DEST: "cantera/documentation/dev" | ||
DOCS_OUTPUT_DIR: "./build/docs/" | ||
DOCS_OUTPUT_DIR: "./build/doc/" | ||
run: | | ||
rsync -avzP --checksum --exclude='*.map' --exclude='*.md5' \ | ||
--exclude='/doxygen/xml' --delete --delete-excluded \ | ||
|