Skip to content

Commit

Permalink
chore: add GitHub Actions for deploying docs (#399)
Browse files Browse the repository at this point in the history
Automatically update the documentation when a release is made.

Co-authored-by: Saurabh Kumar <theskumar@noreply.users.github.com>
  • Loading branch information
theskumar and Saurabh Kumar committed Jun 5, 2022
1 parent ee15221 commit 2cf826f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
make release
- name: Publish Documentation
run: |
pip install -r requirements-docs.txt
pip install -e .
mkdocs gh-deploy --force
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ or with [tox](https://pypi.org/project/tox/) installed:
Documentation is published with [mkdocs]():

```shell
$ pip install -r requirements.txt
$ pip install -r requirements-docs.txt
$ pip install -e .
$ mkdocs serve
```
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ include .coveragerc
include .editorconfig
include Makefile
include requirements.txt
include requirements-docs.txt
include src/dotenv/py.typed
5 changes: 5 additions & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mdx_truly_sane_lists~=1.2
mkdocs-include-markdown-plugin~=3.3.0
mkdocs-material~=8.2.9
mkdocstrings[python]~=0.18.1
mkdocs~=1.3.0
5 changes: 0 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ bumpversion
click
flake8>=2.2.3
ipython
mdx_truly_sane_lists~=1.2
mkdocs-include-markdown-plugin~=3.3.0
mkdocs-material~=8.2.9
mkdocstrings[python]~=0.18.1
mkdocs~=1.3.0
pytest-cov
pytest>=3.9
sh>=1.09
Expand Down

0 comments on commit 2cf826f

Please sign in to comment.