-
Notifications
You must be signed in to change notification settings - Fork 281
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
Pkldoc generates broken page anchors #395
Comments
Thanks for the error report. Although, it's not strictly necessary, the percent-encoding there is intentional (we are using We should similarly run links from the generated search index through URLEncoder. |
Unnecessarily obfuscating Pkldoc URLs will result in a worse user experience. https://developer.apple.com/documentation/swift/array/sorted(by:) From https://docs.rs/crate/percent-encoding/2.3.1 (emphasis mine):
|
Yup, it definitely doesn't need to encode parentheses. It'd certainly be an improvement to not encode them here. |
Searching the standard library docs, I noticed that I always land at the top of the page, not at the function I search for. For example, searching for
sort
takes me tohttps://pkl-lang.org/package-docs/pkl/current/base/Collection.html#sort()
. But#sort()
doesn't exist, so I land at the top of the page. Inspecting the page source, I found thatid
attributes are erroneously percent-encoded:The text was updated successfully, but these errors were encountered: