Skip to content

Commit

Permalink
Use sphinx-build command to update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithil467 committed Feb 25, 2024
1 parent 511f12b commit c3244ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/update_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
git config --local user.name "Mithil Poojary"
Expand Down
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit c3244ac

Please sign in to comment.