From 385a44d72eba8eb4ba3caac638dfed7f9cbfe13a Mon Sep 17 00:00:00 2001 From: Michael Chow Date: Thu, 20 Jan 2022 20:42:00 -0500 Subject: [PATCH] fix(ci): get docs workflow working --- .github/workflows/ci.yml | 3 +++ Makefile | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50b52506..412f3aeb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Makefile b/Makefile index c73ba767..9355368c 100644 --- a/Makefile +++ b/Makefile @@ -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: @@ -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