-
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.
Merge pull request #122 from reflectivity/self-build-docs
adding self-build of docs (publishes to gh-pages branch)
- Loading branch information
Showing
4 changed files
with
63 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Sphinx docs to gh-pages | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
workflow_dispatch: # Un comment line if you also want to trigger action manually | ||
|
||
jobs: | ||
sphinx_docs_to_gh-pages: | ||
runs-on: ubuntu-latest | ||
name: Sphinx docs to gh-pages | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Make conda environment | ||
uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: "3.10" # Python version to build the html sphinx documentation | ||
environment-file: docs_env.yaml # Path to the documentation conda environment | ||
auto-update-conda: false | ||
auto-activate-base: false | ||
show-channel-urls: true | ||
- name: Installing the library | ||
shell: bash -l {0} | ||
run: | | ||
python setup.py install | ||
- name: Running the Sphinx to gh-pages Action | ||
uses: uibcdf/[email protected] | ||
with: | ||
branch: main | ||
dir_docs: docs | ||
sphinx-apidoc-opts: '--separate -o . ../' | ||
sphinx-apidoc-exclude: '../*setup* ../*.ipynb' | ||
sphinx-opts: '' |
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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: docs | ||
|
||
channels: | ||
|
||
- conda-forge | ||
- defaults | ||
|
||
dependencies: | ||
|
||
# Write here all dependencies to compile the sphinx documentation. | ||
# This list is just an example | ||
- python=3.10 | ||
- numpy | ||
- pint | ||
- pytest | ||
- h5py | ||
- typing_extensions | ||
- sphinx | ||
- sphinx_rtd_theme | ||
- sphinxcontrib-bibtex | ||
- sphinx-autodoc-typehints | ||
- nbsphinx | ||
- recommonmark | ||
- sphinx-markdown-tables |
c74eed2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And now the checks pass..?