Skip to content

Commit

Permalink
Merge pull request #44 from didoda/feat/v4/github-action-sphinx-build
Browse files Browse the repository at this point in the history
Add github workflow sphinx build
  • Loading branch information
stefanorosanelli committed Nov 22, 2021
2 parents 4d61223 + b11d3f6 commit 6103bdc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/sphinx.yml
@@ -0,0 +1,22 @@
name: "Sphinx docs check"

on:
pull_request:
paths:
- '**/*.rst'
push:
paths:
- '**/*.rst'

jobs:
docs:
runs-on: 'ubuntu-20.04'
steps:

- name: 'Checkout current revision'
uses: 'actions/checkout@v2'

- name: 'Sphinx build'
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "./"
2 changes: 1 addition & 1 deletion source/conf.py
Expand Up @@ -27,7 +27,7 @@

# read the docs theme support
def setup(app):
app.add_stylesheet('api_methods.css')
app.add_css_file('api_methods.css')

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd: # only import and set the theme if we're building docs locally
Expand Down

0 comments on commit 6103bdc

Please sign in to comment.