-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new theme and fix doc building CI (#64)
* use new MDA theme (fix #64 ) * change docs build dir (fix #66 ) * add RTD configuration (fix #65 )
- Loading branch information
Showing
7 changed files
with
54 additions
and
242 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 |
---|---|---|
|
@@ -14,40 +14,39 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
|
||
- name: Install sphinx, pytest, pytest plugins | ||
- name: Install deps | ||
run: | | ||
python -m pip install wheel | ||
python -m pip install pytest pytest-cov pytest-pep8 pytest-mock codecov | ||
python -m pip install sphinx sphinx-sitemap sphinx-rtd-theme | ||
python -m pip install "mdanalysis-sphinx-theme>=1.0.1" sphinx-sitemap | ||
- name: Install main dependencies | ||
run: | | ||
python -m pip install six setuptools tqdm | ||
python -m pip install tqdm | ||
- name: install package | ||
run: | | ||
pip install -v . | ||
- name: build docs | ||
run: | | ||
python setup.py build_sphinx | ||
cd docs | ||
make html | ||
- name: deploy docs | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build/sphinx/html | ||
publish_dir: ./docs/_build/html | ||
user_name: 'github-actions' | ||
user_email: '[email protected]' |
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,26 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "mambaforge-4.10" | ||
|
||
# install the repo | ||
python: | ||
install: | ||
- method: setuptools | ||
path: . | ||
|
||
# Optionally set the version of Python and requirements required to build your docs | ||
conda: | ||
environment: environment.yaml |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
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,10 @@ | ||
name: mdanalysisdata | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- tqdm | ||
- pip | ||
- mdanalysis-sphinx-theme >=1.0.1 | ||
- pip: | ||
- sphinx-sitemap |