diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cab11a5..51b2731 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,4 +63,4 @@ jobs: pip install sphinx sphinx_rtd_theme - name: Build docs run: | - python setup.py build_sphinx + sphinx-build ./docs/source ./build diff --git a/.github/workflows/update_docs.yml b/.github/workflows/update_docs.yml index 8a3f980..316ca87 100644 --- a/.github/workflows/update_docs.yml +++ b/.github/workflows/update_docs.yml @@ -22,11 +22,11 @@ jobs: pip install sphinx sphinx_rtd_theme - name: Build docs run: | - python setup.py build_sphinx + sphinx-build ./docs/source ./build - name: Commit docs run: | git clone https://github.com/mithil467/mitype.git --branch gh-pages --single-branch gh-pages - cp -r build/sphinx/html/* gh-pages/ + cp -r build/* gh-pages/ cd gh-pages git config --local user.email "mithil467@gmail.com" git config --local user.name "Mithil Poojary" diff --git a/BUILD.md b/BUILD.md index 9deaee1..9a4a10e 100644 --- a/BUILD.md +++ b/BUILD.md @@ -37,6 +37,6 @@ pip install sphinx sphinx_rtd_theme ``` To build the docs locally, run - ``` -python setup.py build_sphinx +sphinx-build ./docs/source ./build ``` The HTML pages are built in `build\sphinx\html`.