denoland / dotland

[Archived] deno.land website
https://deno.land
MIT License
957 stars 626 forks source link

feat: symbol doc view #2254

Closed crowlKats closed 2 years ago

crowlKats commented 2 years ago

I am not fond of this ~ special casing. It's going to break when someone creates a folder called ~ in a module.

well, we use the same in docland. would you prefer a search param? not that fond of that tbh, though it would also solve your second point

This is also going to make the regexp match for one of the most common routes in the project much more expensive.

yea, it is quite annoying that a lazy matcher isnt possible with urlpattern currently. maybe something worth investigating to add to spec.

kitsonk commented 2 years ago

I am not fond of this ~ special casing. It's going to break when someone creates a folder called ~ in a module.

What other sigil would you recommend? I don't want us to use query parameters, as they need to be hard links to a page. Realise they will always be {path-to-module}/~/{symbol}.