-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/pkgsite: internal folders/packages handled differently on top-level versus inside packages? #58577
Comments
This appears to be only a property of the nav. The directory is there: |
This is working as intended (CL 297109), but I agree it does seem inconsistent. Given #44356 (comment), maybe what we really want is to hide internal packages in the standard library but not third party modules. |
I like the toggle idea. If I'm browsing my own code, I want to see internal. If I'm browsing other people's code, I don't want to see internal. Based on this heuristic, perhaps we should make it the default to show internal packages for cmd/pkgsite. |
Change https://go.dev/cl/476616 mentions this issue: |
Updates the directories section to display all internal directories with toggle. Internal directories are hidden by default on pkg.go.dev but displayed by default when pkgsite is used to display local documentation. For golang/go#58577. Change-Id: Iaf9bff7829c9a5dd6f1d0d5e63975b9f066e3081 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/476616 Reviewed-by: Robert Findley <rfindley@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Run-TryBot: Jamal Carvalho <jamal@golang.org>
Thank you very much! |
Example project where I notice this (inconsistent?) behavior: https://pkg.go.dev/github.com/thediveo/lxkns#section-directories
internal
directories node rendered at the end of the directories list.cmd/internal
directory rendered for the package in the repository: https://github.com/thediveo/lxkns/tree/master/cmd/internalWhat is your user agent?
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Screenshot
What did you do?
Navigate to https://pkg.go.dev/github.com/thediveo/lxkns#section-directories
What did you expect to see?
The
cmd
directory node to contain a sub node namedinternal
.What did you see instead?
No such sub node named
internal
insidecmd
, while there correctly is a top-levelinternal
node.The text was updated successfully, but these errors were encountered: