diff options
author | Kaushal Modi <kaushal.modi@gmail.com> | 2019-05-25 14:20:25 -0400 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-05-25 20:20:25 +0200 |
commit | 2f610d621f52fe83863c19ac65f7e1336bce838d (patch) | |
tree | 28c4fb2e037a92589f1b3505c0168ade870c4d96 /nimdoc/test_out_index_dot_html/foo.nim | |
parent | 6a94599d66484396b4e080e5bb8c1aa8e8f129af (diff) | |
download | Nim-2f610d621f52fe83863c19ac65f7e1336bce838d.tar.gz |
Use the correct HTML file reference in "nim doc" generated idx files (#11326)
* Use the correct HTML file reference in "nim doc" generated idx files Now "nim doc --out:foo.html --index:on bar.nim" generates "foo.html" and the generated "bar.idx" contains references to "foo.html". Fixes https://github.com/nim-lang/Nim/issues/11325. * Refactor the nim doc tester to extend it for more tests * Reference the HTML files relative to the outDir, not project dir * Add test for issues #11312 and #11325 - https://github.com/nim-lang/Nim/issues/11312 - https://github.com/nim-lang/Nim/issues/11325
Diffstat (limited to 'nimdoc/test_out_index_dot_html/foo.nim')
-rw-r--r-- | nimdoc/test_out_index_dot_html/foo.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nimdoc/test_out_index_dot_html/foo.nim b/nimdoc/test_out_index_dot_html/foo.nim new file mode 100644 index 000000000..f61995eb9 --- /dev/null +++ b/nimdoc/test_out_index_dot_html/foo.nim @@ -0,0 +1,3 @@ +proc foo*() = + ## I do foo + echo "foo says hello!" |