From b9ed684dd2188c8d58eafba313d314ec0aa8d4db Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 13 Sep 2018 01:05:51 +0200 Subject: index generation for docgen knows about subdirectories; index knows about enum values; fixes import statement for runnableExamples --- nimdoc/testproject/expected/theindex.html | 1266 ++++++++++++++++++++++++++ nimdoc/testproject/subdir/subdir_b/utils.nim | 5 +- nimdoc/testproject/testproject.nim | 3 +- 3 files changed, 1272 insertions(+), 2 deletions(-) create mode 100644 nimdoc/testproject/expected/theindex.html (limited to 'nimdoc/testproject') diff --git a/nimdoc/testproject/expected/theindex.html b/nimdoc/testproject/expected/theindex.html new file mode 100644 index 000000000..7e4f8d397 --- /dev/null +++ b/nimdoc/testproject/expected/theindex.html @@ -0,0 +1,1266 @@ + + + + + + + + + + + + + + + + + +Index + + + + + + + + +
+ +
+ + + diff --git a/nimdoc/testproject/subdir/subdir_b/utils.nim b/nimdoc/testproject/subdir/subdir_b/utils.nim index 31e066751..d7d82b3cd 100644 --- a/nimdoc/testproject/subdir/subdir_b/utils.nim +++ b/nimdoc/testproject/subdir/subdir_b/utils.nim @@ -1,6 +1,9 @@ type - SomeType* = int + SomeType* = enum + enumValueA, + enumValueB, + enumValueC proc someType*(): SomeType = ## constructor. diff --git a/nimdoc/testproject/testproject.nim b/nimdoc/testproject/testproject.nim index 697a2ab3c..b4f6a58fb 100644 --- a/nimdoc/testproject/testproject.nim +++ b/nimdoc/testproject/testproject.nim @@ -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) = -- cgit 1.4.1-2-gfad0