Skip to content

Commit 54dee07

Browse files
author
Martin D. Weinberg
committed
Another try at tag logic
1 parent 2533412 commit 54dee07

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/build_docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: Build and Deploy Docs
1+
name: Build and Deploy Sphinx Docs
22

33
on:
44
push:
55
branches:
6-
- Doxygen # Trigger on pushes to the main branch
6+
- main # Trigger on pushes to the main branch
7+
- Doxygen # Trigger on pushes to the devel branch
78

89
jobs:
910
build:
@@ -34,7 +35,6 @@ jobs:
3435
path: _build/html # Path to your built documentation
3536
- name: Deploy to GitHub Pages
3637
uses: peaceiris/actions-gh-pages@v3
37-
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
3838
if: ${{ github.event_name == 'push' }}
3939
with:
4040
publish_branch: gh-pages

conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,8 @@
112112
html_static_path = ['_static']
113113

114114
# -- A readthedocs conditional ----------------------------------------------
115-
def setup(app):
116-
if on_rtd:
117-
app.add_tag('rtd')
115+
if on_rtd:
116+
tags.add('rtd')
118117

119118
# -- Turn on figure numering -------------------------------------------------
120119
numfig = True

pybind11.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ Index to pyEXP classes
3131

3232
.. only:: rtd
3333

34-
.. note::
34+
.. note::
3535

36-
The Python API can not be generated in the _readthedocs_ environment.
37-
You can find these webpages that include the full pyEXP API `on
38-
GitHub Pages
39-
<https://exp-code.github.io/EXP-docs/>`_.
36+
The Python API can not be generated in the _readthedocs_
37+
environment. You can find these webpages that include the full
38+
pyEXP API `on GitHub Pages <https://exp-code.github.io/EXP-docs/>`_.

0 commit comments

Comments
 (0)