Skip to content

Commit

Permalink
Add task for documentation generation
Browse files Browse the repository at this point in the history
  • Loading branch information
hugs committed Jun 27, 2023
1 parent baa0fa5 commit ca87423
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mvb.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ task i, "\t\tRun INim interpreter configured to use MVB":
task demo, "\t\tRun the demo":
exec "nim cpp -r --hints:off examples/demo.nim"

task web_demo, "\t\tRun the web demo":
task web_demo, "\tRun the web demo":
exec "nim cpp -r --hints:off examples/webdemo.nim"

task test, "\t\tRun the test suite":
exec "nim cpp -r --hints:off tests/test1.nim"
exec "nim cpp -r --hints:off tests/test2.nim"

task gendoc, "\t\tGenerate the documentation":
exec "nim doc --backend:cpp --git.url:https://github.com/tapsterbot/mvb-opencv --git.commit:v0.1.0 --outdir:docs src/mvb.nim"

import distros
when defined(nimdistros):
if detectOs(MacOSX):
Expand Down
2 changes: 1 addition & 1 deletion src/mvb.nim
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ proc length*(this: String): uint
{.importcpp: "#.length()", header: string, discardable.}
## Get length of String

############################################################
#-------------------------------------------------------------
# Holdover from "nimble init"
proc add*(x, y: int): int =
## Adds two files together.
Expand Down

0 comments on commit ca87423

Please sign in to comment.