-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deno doc --html *.ts
produces broken index.html
#26901
Comments
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 |
deno doc
produces broken HTML outputdeno doc *.ts
produces broken index.html
deno doc *.ts
produces broken index.html
deno doc --html *.ts
produces broken index.html
The issue I opened a while back is closely related: #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 sed -i -e 's/\.\.\///g' -e 's/\//\//g' -e 's/\.\.\/comrak\.css/comrak\.css/g' -e 's/\.\.\/prism/prism/g' docs/index.html |
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/
The text was updated successfully, but these errors were encountered: