diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 4f9dc92..4795c7f 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -14,10 +14,10 @@ jobs: - uses: actions/setup-python@v2 - name: Install dependencies - run: pip install -r requirements.txt && git clone https://github.com/trigaten/Prompt_Systematic_Review.git + run: pip install -r docs/requirements.txt && git clone https://github.com/trigaten/Prompt_Systematic_Review.git - name: Build - run: sphinx-autobuild docs/ _build/html + run: sphinx-build -b dirhtml -v docs/source build - name: Upload to GitHub Pages uses: peaceiris/actions-gh-pages@v3 diff --git a/docs/Makefile b/docs/Makefile index d4bb2cb..5f1c6d1 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -14,6 +14,10 @@ help: .PHONY: help Makefile +github: + @make html + @cp -a build/html/. ./docs + # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile