dotland
dotland copied to clipboard
Improve manual routing
- Redirect
/manual
to/manual/introduction
, fix #2164 - Strip
.md
from manual content to avoid extra redirect requests. This is safe since I checked the manual and didn't find any.md
that isn't a internal link.
Also, I want to propose the idea to always version the manual URL as well (i.e. https://deno.land/manual
always redirect to a specific version https://deno.land/[email protected]
). The same manual link may show different content as new versions are released, which is not consistent with how the module pages works.
Without the redirection, the https://deno.land/manual page has numerous broken links. Is this open because the issue is in progress, or should I open a new issue?
Hmm, CI encountered 500 on GitHub raw... I think we really should stop importing stuff from GitHub raw and use a CDN (like jsDelivr) instead.
@kidonng can you rebase? also, could you add a condition that if no version is specified, redirect to latest version?
going to /manual
redirects to /[email protected]/introduction
, but going to /[email protected]
doesnt