Skip to content

Commit c20b1e8

Browse files
authored
Merge pull request #286 from greglucas/doc-conf
Doc configuration updates
2 parents 68e063c + 58b8998 commit c20b1e8

File tree

2 files changed

+12
-32
lines changed

2 files changed

+12
-32
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: '3.10'
18+
python-version: '3.11'
1919

2020
- name: Install dependencies
2121
run: |
@@ -24,35 +24,6 @@ jobs:
2424
2525
- name: Build documentation
2626
run: |
27-
# SPHINXOPTS="-W --keep-going -n" is used to turn warnings into errors
27+
# SPHINXOPTS="-W --keep-going" is used to turn warnings into errors
2828
# but keep going, so we don't fail on the first one.
29-
make -C docs html SPHINXOPTS="-W --keep-going -n"
30-
31-
- uses: actions/upload-artifact@v2
32-
with:
33-
name: DocumentationHTML
34-
path: docs/build/html/
35-
36-
# Publish built docs to gh-pages branch
37-
- name: Commit documentation changes
38-
# push docs only when a GitHub Release is made
39-
if: github.event_name == 'release' && github.event.action == 'published'
40-
run: |
41-
git clone https://github.com/IMAP-Science-Operations-Center/imap_processing.git --branch gh-pages --single-branch gh-pages
42-
cp -r docs/build/html/* gh-pages/
43-
cd gh-pages
44-
git config --local user.email "action@github.com"
45-
git config --local user.name "GitHub Action"
46-
git add .
47-
git commit -m "Update documentation" -a || true
48-
# The above command will fail if no changes were present, so we ignore that.
49-
50-
- name: Publish docs
51-
# push docs only when a GitHub Release is made
52-
if: github.event_name == 'release' && github.event.action == 'published'
53-
54-
uses: ad-m/github-push-action@master
55-
with:
56-
branch: gh-pages
57-
directory: gh-pages
58-
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
make -C docs html SPHINXOPTS="-W --keep-going"

docs/source/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,12 @@
8484
"python": ("https://docs.python.org/3/", None),
8585
"xarray": ("https://docs.xarray.dev/en/stable/", None),
8686
}
87+
88+
# Reference targets not found
89+
nitpicky = True
90+
# IntEnum inherited method targets aren't found through intershpinx
91+
nitpick_ignore_regex = [(r"py:.*", r".*APID\..*")]
92+
# Ignore the inherited members from the HitAPID IntEnum class
93+
numpydoc_show_inherited_class_members = {
94+
"imap_processing.hit.l0.hit_l1a_decom.HitAPID": False
95+
}

0 commit comments

Comments
 (0)