Skip to content

Commit f08d305

Browse files
authored
📝 publish documentation to pages (#84)
1 parent 9268332 commit f08d305

File tree

4 files changed

+51
-3
lines changed

4 files changed

+51
-3
lines changed

.github/workflows/docs.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#
2+
# Publish Documentation to GitHub pages.
3+
#
4+
name: Documentation
5+
6+
on:
7+
- push:
8+
tags:
9+
- v**
10+
11+
jobs:
12+
static-check:
13+
name: Publish Documentation
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ["3.8"]
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: Cache dependencies
27+
uses: actions/cache@v2
28+
with:
29+
path: ~/.cache/pip
30+
key: ${{ runner.os }}-docs-${{ hashFiles('setup.cfg') }}
31+
restore-keys: |
32+
${{ runner.os }}-docs-
33+
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install pip
37+
pip install -e .[docs]
38+
39+
- name: Sphinx make
40+
run: |
41+
cd ./docs
42+
make html
43+
44+
- name: Deploy
45+
uses: peaceiris/actions-gh-pages@v3
46+
with:
47+
github_token: ${{ secrets.GITHUB_TOKEN }}
48+
publish_dir: ./docs/_build/html

.github/workflows/linting.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
uses: actions/cache@v2
2626
with:
2727
path: ~/.cache/pip
28-
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
28+
key: ${{ runner.os }}-dev-${{ hashFiles('setup.cfg') }}
2929
restore-keys: |
30-
${{ runner.os }}-pip-
30+
${{ runner.os }}-dev-
3131
3232
- name: Install dependencies
3333
# We install the full dev requirements to make sure everything installs OK

docs/.nojekyll

Whitespace-only changes.

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = "Python Client"
20+
project = "Mindee Python Client"
2121
copyright = "2022, Mindee"
2222
author = "Mindee"
2323

0 commit comments

Comments
 (0)