Skip to content

Commit f8d0c32

Browse files
authored
Add runnable examples (#51)
1 parent 9c3b58e commit f8d0c32

File tree

3 files changed

+153
-206
lines changed

3 files changed

+153
-206
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
nimcache/
22
src/regex
33
tests/tests
4+
docs/ugh

regex.nimble

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@ task test, "Test":
2323
#exec "nim js -r tests/tests.nim"
2424
#exec "nim js -r -d:forceRegexAtRuntime tests/tests.nim"
2525

26+
# Test runnable examples
27+
exec "nim doc -o:./docs/ugh/ugh.html ./src/regex.nim"
28+
2629
task docs, "Docs":
27-
exec "nim doc2 -o:./docs/index.html ./src/regex.nim"
30+
exec "nim doc -o:./docs/index.html ./src/regex.nim"

0 commit comments

Comments
 (0)