diff options
author | LemonBoy <thatlemon@gmail.com> | 2018-09-19 21:17:48 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2018-09-21 18:59:46 +0200 |
commit | 4d9aec1858ecd8651276a5e1d6ca939d345b4d11 (patch) | |
tree | 1130641e6c7fd2b60680df3ac8e1415fb928f7dd /nimdoc/testproject | |
parent | 0951b5b73677f610fd0eb8c274fc540349138d9c (diff) | |
download | Nim-4d9aec1858ecd8651276a5e1d6ca939d345b4d11.tar.gz |
Revert #7964
Somehow the test case doesn't crash anymore and the regression in the doc generation is fixed. Fixes #9019
Diffstat (limited to 'nimdoc/testproject')
-rw-r--r-- | nimdoc/testproject/expected/testproject.html | 18 | ||||
-rw-r--r-- | nimdoc/testproject/expected/theindex.html | 6 | ||||
-rw-r--r-- | nimdoc/testproject/testproject.nim | 2 |
3 files changed, 25 insertions, 1 deletions
diff --git a/nimdoc/testproject/expected/testproject.html b/nimdoc/testproject/expected/testproject.html index 784fbe9b7..064a70011 100644 --- a/nimdoc/testproject/expected/testproject.html +++ b/nimdoc/testproject/expected/testproject.html @@ -1245,6 +1245,14 @@ function main() { </ul> </li> <li> + <a class="reference reference-toplevel" href="#8" id="58">Vars</a> + <ul class="simple simple-toc-section"> + <li><a class="reference" href="#aVariable" + title="aVariable: array[1, int]"><wbr />a<wbr />Variable<span class="attachedType" style="visibility:hidden"></span></a></li> + + </ul> +</li> +<li> <a class="reference reference-toplevel" href="#12" id="62">Procs</a> <ul class="simple simple-toc-section"> <li><a class="reference" href="#bar,T,T" @@ -1286,6 +1294,16 @@ function main() { <dl class="item"> <a class="reference external" href="subdir/subdir_b/utils.html">subdir/subdir_b/utils</a> </dl></div> +<div class="section" id="8"> +<h1><a class="toc-backref" href="#8">Vars</a></h1> +<dl class="item"> +<dt id="aVariable"><a name="aVariable"></a><pre><span class="Identifier">aVariable</span><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="DecNumber">1</span><span class="Other">,</span> <span class="Identifier">int</span><span class="Other">]</span></pre></dt> +<dd> + + +</dd> + +</dl></div> <div class="section" id="12"> <h1><a class="toc-backref" href="#12">Procs</a></h1> <dl class="item"> diff --git a/nimdoc/testproject/expected/theindex.html b/nimdoc/testproject/expected/theindex.html index 7e4f8d397..fc5c0e1c5 100644 --- a/nimdoc/testproject/expected/theindex.html +++ b/nimdoc/testproject/expected/theindex.html @@ -1221,7 +1221,11 @@ function main() { <div class="container"> <h1 class="title">Index</h1> Modules: <a href="subdir/subdir_b/utils.html">subdir/subdir_b/utils</a>, <a href="testproject.html">testproject</a>.<br/><p /><h2>API symbols</h2> -<dl><dt><a name="bar" href="#bar"><span>bar:</span></a></dt><dd><ul class="simple"> +<dl><dt><a name="aVariable" href="#aVariable"><span>aVariable:</span></a></dt><dd><ul class="simple"> +<li><a class="reference external" + data-doc-search-tag="testproject: aVariable" href="testproject.html#aVariable">testproject: aVariable</a></li> + </ul></dd> +<dt><a name="bar" href="#bar"><span>bar:</span></a></dt><dd><ul class="simple"> <li><a class="reference external" data-doc-search-tag="testproject: bar[T](a, b: T): T" href="testproject.html#bar,T,T">testproject: bar[T](a, b: T): T</a></li> <li><a class="reference external" diff --git a/nimdoc/testproject/testproject.nim b/nimdoc/testproject/testproject.nim index b4f6a58fb..327466014 100644 --- a/nimdoc/testproject/testproject.nim +++ b/nimdoc/testproject/testproject.nim @@ -20,3 +20,5 @@ import std/macros macro bar*(): untyped = result = newStmtList() + +var aVariable*: array[1,int] |