ITADN

Deno doc inserts incorrect links in html

#717Opennikelborm 创建于 2025-05-13
N
nikelbormcommented
I have this repo with reproduction: https://github.com/nikelborm/deno_docs-repro-1 |all_symbols page works properly|main root page also works it seems to be as expected| |-|-| |![Image](https://github.com/user-attachments/assets/9ce0ed56-cd14-41e1-859f-cf4a85297336)|![Image](https://github.com/user-attachments/assets/d8c60c49-1df1-423a-a6ee-773da81d78e8)| |All pages from non-default module work properly|Pages under default module break| |-|-| |![Image](https://github.com/user-attachments/assets/95974118-59e4-455f-8161-faf215eff33c)|![Image](https://github.com/user-attachments/assets/fa240cf0-54fe-432b-99c9-4dc4903be903)| On this page links to styles are broken, as well as `cool_docs` link on the screenshot This seems to be very trivial issue to fix, because you can just replace all `../` with `../../` and it's enough: ```bash cd docs find ./index -type f -exec sed -i 's_\.\./_../../_g' {} + find ./index -type f -exec sed -i 's_\.\./_../../_g' {} + ```
0 条评论