Skip to content

Commit

Permalink
Merge pull request #8 from lucyleeow/IS/7
Browse files Browse the repository at this point in the history
WIP Add github action for building doc
  • Loading branch information
lucyleeow authored Mar 5, 2020
2 parents 7d3b2bc + 92b8382 commit 6b8af11
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ jobs:
command: |
python3 -m venv doc-env
. doc-env/bin/activate
pip install -r requirements.txt --progress-bar off
pip install sphinx sphinx-gallery sphinx_rtd_theme pandas matplotlib --progress-bar off
pip install -r requirements_doc.txt --progress-bar off
pip install .
cd doc
cd docs
make html
- store_artifacts:
path: doc/_build/html
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/sphinx_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Build documentation"

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
# Standard drop-in approach that should work for most people.
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
pre-build-command: "pip install -r requirements_doc.txt && pip install ."
# Great extra actions to compose with:
# Create an artifact of the html output.
- uses: actions/upload-artifact@v1
with:
name: DocumentationHTML
path: docs/_build/html/
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/conf.py → docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# -- Project information -----------------------------------------------------

project = 'sample-project'
copyright = '2019, <Author>'
copyright = '2020, <Author>'
author = '<Author>'

# The full version, including alpha/beta/rc tags
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

5 changes: 5 additions & 0 deletions requirements_doc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sphinx
sphinx-gallery
sphinx_rtd_theme
matplotlib
pandas

0 comments on commit 6b8af11

Please sign in to comment.