index generation for docgen knows about subdirectories; index knows about enum values; fixes import statement for runnableExamples
This commit is contained in:
parent
f14f554435
commit
b9ed684dd2
6 changed files with 1337 additions and 41 deletions
1266
nimdoc/testproject/expected/theindex.html
Normal file
1266
nimdoc/testproject/expected/theindex.html
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,9 @@
|
|||
|
||||
type
|
||||
SomeType* = int
|
||||
SomeType* = enum
|
||||
enumValueA,
|
||||
enumValueB,
|
||||
enumValueC
|
||||
|
||||
proc someType*(): SomeType =
|
||||
## constructor.
|
||||
|
|
|
|||
|
|
@ -3,8 +3,9 @@ import subdir / subdir_b / utils
|
|||
|
||||
## This is the top level module.
|
||||
runnableExamples:
|
||||
import subdir / subdir_b / utils
|
||||
doAssert bar(3, 4) == 7
|
||||
foo(1, 2)
|
||||
foo(enumValueA, enumValueB)
|
||||
|
||||
|
||||
template foo*(a, b: SomeType) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue