Skip to content

Commit 870b3a7

Browse files
Merge pull request #26 from x-tabdeveloping/docs_deployment
Docs deployment
2 parents 59795c2 + f479717 commit 870b3a7

68 files changed

Lines changed: 38 additions & 24545 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# creates the documentation on pushes it to the gh-pages branch
2+
name: Documentation
3+
4+
on:
5+
pull_request:
6+
branches: [main]
7+
push:
8+
branches: [main]
9+
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install turftopic[pyro-ppl,docs]
27+
28+
- name: Build and Deploy
29+
if: github.event_name == 'push'
30+
run: mkdocs gh-deploy --force
31+
32+
- name: Build
33+
if: github.event_name == 'pull_request'
34+
run: mkdocs build

pyproject.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@ torch = "^2.1.0"
1818
scipy = "^1.10.0"
1919
rich = "^13.6.0"
2020
pyro-ppl = { version = "^1.8.0", optional = true }
21+
mkdocs = { version = "^1.5.2", optional = true }
22+
mkdocs-material = { version = "^9.5.12", optional = true }
23+
mkdocstrings = { version = "^0.24.0", extras = ["python"], optional = true }
2124

2225
[tool.poetry.extras]
2326
pyro-ppl = ["pyro-ppl"]
24-
25-
[tool.poetry.group.docs]
26-
optional = true
27-
28-
[tool.poetry.group.docs.dependencies]
29-
mkdocs = "^1.5.2"
30-
mkdocs-material = "^9.5.12"
31-
mkdocstrings = { version = "^0.24.0", extras = ["python"] }
27+
docs = ["mkdocs", "mkdocs-material", "mkdocstrings"]
3228

3329
[build-system]
3430
requires = ["poetry-core"]

0 commit comments

Comments
 (0)