Skip to content

Commit

Permalink
Build website automatically and publish to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
wallento authored and olofk committed Apr 18, 2021
1 parent 0c601f0 commit 5c303f4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
branches:
- master

jobs:
docs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v1
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install -r doc/requirements.txt
- name: Build sphinx documentation
run: |
make -C doc html
- name: Deploy to gh-pages
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: doc/_build/html # The folder the action should deploy.
1 change: 1 addition & 0 deletions doc/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is published to GitHub Pages. It will ignore the _images path etc. otherwise.
4 changes: 4 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_extra_path = ['.nojekyll']

master_doc = 'index'

online_wavedrom_js_url = "https://wavedrom.com"
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sphinxcontrib-wavedrom
git+https://github.com/bavovanachte/sphinx-wavedrom@master#egg=sphinxcontrib-wavedrom

0 comments on commit 5c303f4

Please sign in to comment.