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
This commit is contained in:
parent
6a94599d66
commit
2f610d621f
6 changed files with 1716 additions and 11 deletions
3
nimdoc/test_out_index_dot_html/foo.nim
Normal file
3
nimdoc/test_out_index_dot_html/foo.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
proc foo*() =
|
||||
## I do foo
|
||||
echo "foo says hello!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue