File tree Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Expand file tree Collapse file tree 3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate numericalnim docs
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ gen :
10+ name : Generate and deploy docs
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - uses : iffy/install-nim@v4
16+ - name : Generate
17+ run : |
18+ nimble install -y
19+ nimble docs
20+ - name : Deploy
21+ uses : peaceiris/actions-gh-pages@v3
22+ with :
23+ github_token : ${{ secrets.GITHUB_TOKEN }}
24+ publish_dir : ./docs
Original file line number Diff line number Diff line change 44.vscode /
55* .code-workspace
66* .html
7+ docs /
Original file line number Diff line number Diff line change @@ -30,3 +30,8 @@ task test, "Run all tests":
3030 exec " nim c -r tests/test_optimize.nim"
3131 exec " nim c -r tests/test_utils.nim"
3232 exec " nim c -r tests/test_vector.nim"
33+
34+ task docs, " Generate documentation" :
35+ # Based on Nico's script
36+ exec " nim doc --project --index:on --git.url:https://github.com/SciNim/numericalnim --git.commit:master --outdir:docs src/numericalnim.nim"
37+ exec " echo \" <meta http-equiv=\\\" Refresh\\\" content=\\\" 0; url='theindex.html'\\\" />\" >> docs/index.html"
You can’t perform that action at this time.
0 commit comments