Skip to content

Commit 2cf826f

Browse files
theskumarSaurabh Kumar
andauthored
chore: add GitHub Actions for deploying docs (#399)
Automatically update the documentation when a release is made. Co-authored-by: Saurabh Kumar <theskumar@noreply.users.github.com>
1 parent ee15221 commit 2cf826f

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ jobs:
2323
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2424
run: |
2525
make release
26+
27+
- name: Publish Documentation
28+
run: |
29+
pip install -r requirements-docs.txt
30+
pip install -e .
31+
mkdocs gh-deploy --force

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ or with [tox](https://pypi.org/project/tox/) installed:
2020
Documentation is published with [mkdocs]():
2121

2222
```shell
23-
$ pip install -r requirements.txt
23+
$ pip install -r requirements-docs.txt
2424
$ pip install -e .
2525
$ mkdocs serve
2626
```

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ include .coveragerc
99
include .editorconfig
1010
include Makefile
1111
include requirements.txt
12+
include requirements-docs.txt
1213
include src/dotenv/py.typed

requirements-docs.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mdx_truly_sane_lists~=1.2
2+
mkdocs-include-markdown-plugin~=3.3.0
3+
mkdocs-material~=8.2.9
4+
mkdocstrings[python]~=0.18.1
5+
mkdocs~=1.3.0

requirements.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ bumpversion
33
click
44
flake8>=2.2.3
55
ipython
6-
mdx_truly_sane_lists~=1.2
7-
mkdocs-include-markdown-plugin~=3.3.0
8-
mkdocs-material~=8.2.9
9-
mkdocstrings[python]~=0.18.1
10-
mkdocs~=1.3.0
116
pytest-cov
127
pytest>=3.9
138
sh>=1.09

0 commit comments

Comments
 (0)