Skip to content

Commit

Permalink
PATCH: Fix doc generation in CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaorson committed Feb 13, 2021
1 parent 7c2d1b0 commit c47630f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
run: |
nimble develop
cd examples/desktop
nimble buildDesktop -Y
nimble buildDesktop
# Generate the Docs
- name: Generate documentation
run: |
nimble doc --project --outdir:htmldocs --index:on ./src/komodo.nim --git.url:https://github.com/ExoKomodo/KomodoNim --git.commit:develop --git.devel:develop
nimble docKomodo
cp htmldocs/theindex.html htmldocs/index.html
cp htmldocs/index.html htmldocs/404.html
cp README.md ./htmldocs/README.md
Expand Down
3 changes: 0 additions & 3 deletions generate_docs.bash

This file was deleted.

3 changes: 3 additions & 0 deletions komodo.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ binDir = "bin"
# Dependencies

requires "nim >= 1.4.2"

task docKomodo, "Generate documentation":
exec "nimble --gc:orc --threads:on doc --project --outdir:htmldocs --index:on ./src/komodo.nim --git.url:https://github.com/ExoKomodo/KomodoNim --git.commit:develop --git.devel:develop"
2 changes: 1 addition & 1 deletion serve_docs.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash

./generate_docs.bash
nimble docKomodo
python3 -m http.server 7029 --directory htmldocs

0 comments on commit c47630f

Please sign in to comment.