Skip to content

Commit d1aabfd

Browse files
authored
publish docs on ci (#122)
1 parent 271f788 commit d1aabfd

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish docs via GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Deploy docs
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python 3.11
16+
id: setup-python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: "3.11"
20+
21+
- name: Install and configure Poetry
22+
uses: snok/install-poetry@v1
23+
with:
24+
version: 1.6.1
25+
virtualenvs-create: true
26+
virtualenvs-in-project: true
27+
installer-parallel: true
28+
29+
- name: Load cached venv
30+
id: cached-poetry-dependencies
31+
uses: actions/cache@v3
32+
with:
33+
path: .venv
34+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
35+
36+
- name: Install dependencies
37+
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
38+
run: poetry install --no-interaction --no-root
39+
40+
- name: Install root project
41+
run: poetry install --no-interaction
42+
43+
- name: Deploy docs
44+
run: mkdocs gh-deploy --force

.yarnrc.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ nav:
2727
- API Reference:
2828
- api/top-level.md
2929
- api/colormap.md
30-
- Caveats: caveats.md
30+
# - Caveats: caveats.md
3131
- Performance: performance.md
3232
- Alternatives: alternatives.md
3333
- "How it works?": how-it-works.md

0 commit comments

Comments
 (0)