Open krlwlfrt opened 5 days ago
It happens whenever I specify more than one file to generate docs from. All of these examples produce the broken output:
deno doc --html *.ts
deno doc --html **/*.ts
deno doc --html mod.ts types.ts
If I specify only one file the output is fine:
deno doc --html mod.ts
deno doc --html types.ts
Only index.html
is broken... All the other files are fine.
The issue I opened a while back is closely related: https://github.com/denoland/deno/issues/25069
Maybe posting on https://github.com/denoland/deno_doc (which is likely where the fix will happen anyway) will make it less likely for the issue to be buried. *shrugs*
For anyone encountering the same problem: the following one-liner fixes the broken index.html
for me.
sed -i -e 's/\.\.\///g' -e 's/\//\//g' -e 's/\.\.\/comrak\.css/comrak\.css/g' -e 's/\.\.\/prism/prism/g' docs/index.html
I'll be looking into this tomorrow. @Seally apologies about missing #25069, i'll take a look at that as well
Version: Deno 2.0.6
deno doc
produces broken paths in HTML output. Slashes are escaped and extraneous..
are added even though the files are in the same directory.Command that produces the broken output:
See: https://krlwlfrt.gitlab.io/snake/
Example repo: https://gitlab.com/krlwlfrt/snake/