Sneak peek: API documentation generated for all your code
No items found.
July 22, 2021
UPDATE Nov 10, 2022: Sourcegraph has de-prioritized work on this feature at this time and it has not graduated beyond experimental status. If your team is interested in this functionality, please reach out.
At Sourcegraph, we have a small team working hard on a new experimental feature: API docs.
In order to build awesome code search we've built a global graph of code that has a deep, semantic understanding of the underlying code—which we represent as LSIF code intelligence data. Using Sourcegraph's LSIF code intelligence data, we can analyze your code and generate API documentation for all of it. We've started with Go code and intend to expand to more languages as we develop this feature.
Vision
If you develop in Go, Rust, or Zig you’re probably familiar with some sites that try to do this like pkg.go.dev, docs.rs, etc. The benefit of Sourcegraph's API docs over these will in the future be:
Surfacing usage examples from open source code.
Providing a single tool that works across all code, using LSIF data to provide an experience tailored towards your languages of choice.
Giving an amazing navigation and search experience.
Try it (experimental)
Today, it's still in its very early stages—and only a few months into development. But you can try it out on Go code today:
Want to try it out on your own Go repositories? Tweet @sourcegraph with your GitHub repository name and we'll set it up for you, or follow our documentation.
On by default, for everyone
The most important announcement here is that API docs is now an on-by-default experiment for everyone! You can begin trying it out on Sourcegraph.com as well as your own Sourcegraph instance.
Subscribe for the latest code AI news and product updates