API docs: add ability to view individual symbols
Created by: slimsag
This adds the ability to view individual symbols in isolation, rather than on the entire, full page.
-
/github.com/golang/go/-/docs/archive/tar#ErrHeader
-> full page, scrolled toErrHeader
-
/github.com/golang/go/-/docs/archive/tar?ErrHeader
-> shows justErrHeader
-
/github.com/golang/go/-/docs/archive/tar#Writer
-> full page, scrolled toWriter
-
/github.com/golang/go/-/docs/archive/tar#Writer
-> shows justWriter
on a single page, with the methods etc. below it.
This is primarily useful for:
- Sharing a link to something specific with others - as the opengraph metadata can (in the future) show exactly the thing you're linking to ("type Writer ..." instead of just "Package tar").
- Search engines can index these pages individually.
- We can display more content on such pages, such as more usage examples, more easily.
Fixes #22575 (closed)
Signed-off-by: Stephen Gutekanst [email protected]