File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -18,17 +18,13 @@ torch = "^2.1.0"
1818scipy = " ^1.10.0"
1919rich = " ^13.6.0"
2020pyro-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 ]
2326pyro-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 ]
3430requires = [" poetry-core" ]
You can’t perform that action at this time.
0 commit comments