Skip to content

Commit

Permalink
fix(ci): get docs workflow working
Browse files Browse the repository at this point in the history
  • Loading branch information
machow committed Jan 21, 2022
1 parent 50f7248 commit 385a44d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -r requirements-dev.txt
python -m pip install .
- uses: r-lib/actions/setup-pandoc@v1
with:
pandoc-version: '2.17.0'
- name: Make docs
run: |
make docs-build
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ AUTODOC_SCRIPT=docs/scripts/generate_autodoc.py

AUTODOC_PAGES=docs/api_extra/vector.rst docs/api_extra/forcats.rst

SPHINX_BUILDARGS=-j auto

.PHONY: docs

test:
Expand All @@ -25,10 +27,10 @@ docs/api_extra/%.rst: siuba/dply/%.py $(AUTODOC_SCRIPT)
python3 $(AUTODOC_SCRIPT) . $< > $@

docs-watch: $(AUTODOC_PAGES)
cd docs && sphinx-autobuild . ./_build/html
cd docs && sphinx-autobuild . ./_build/html $(SPHINX_BUILDARGS)

docs-build: $(AUTODOC_PAGES)
cd docs && sphinx-build . ./_build/html
cd docs && sphinx-build . ./_build/html $(SPHINX_BUILDARGS)

github_traffic:
# keep github traffic, since it is only held for 2 weeks
Expand Down

0 comments on commit 385a44d

Please sign in to comment.