File tree Expand file tree Collapse file tree 3 files changed +33
-4
lines changed
Expand file tree Collapse file tree 3 files changed +33
-4
lines changed Original file line number Diff line number Diff line change 1+ name : docs
2+ on :
3+ push :
4+ branches :
5+ - mkdocs
6+ - main
7+ permissions :
8+ contents : write
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - name : Configure Git Credentials
15+ run : |
16+ git config user.name github-actions[bot]
17+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+ - name : Install uv
19+ uses : astral-sh/setup-uv@v5
20+ with :
21+ # Install a specific version of uv.
22+ enable-cache : true
23+ version : " 0.6.12"
24+ python-version : 3.12
25+
26+ - name : Install the project
27+ run : uv sync --all-extras --dev
28+ - run : mkdocs gh-deploy --force
Original file line number Diff line number Diff line change 88` uv pip install -e .[test] `
992 . Create the documentation and start webserver serving them
1010```
11- mkdocs server -a localhost:5555
11+ mkdocs serve -a localhost:5555
1212```
1313or create the html pages with
1414```
@@ -18,3 +18,4 @@ mkdocs build -d docs_build
1818## Upload documentation to github-pages
1919
2020[ Guide] ( https://www.mkdocs.org/user-guide/deploying-your-docs/ )
21+ https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions
Original file line number Diff line number Diff line change @@ -88,9 +88,9 @@ zero = true
8888addopts = " --nbval --codeblocks --cov=omega_prime --cov-report=xml --cov-report=html --cov-report=term-missing"
8989testpaths = [
9090 " tests" ,
91- " tutorial.ipynb" ,
92- " tutorial_locator.ipynb" ,
93- " tutorial_metrics.ipynb" ,
91+ " docs/notebooks/ tutorial.ipynb" ,
92+ " docs/notebooks/ tutorial_locator.ipynb" ,
93+ " docs/notebooks/ tutorial_metrics.ipynb" ,
9494 " README.md"
9595]
9696log_cli = true
You can’t perform that action at this time.
0 commit comments