Skip to content
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

Automagic real-world usage examples, code intelligence (opt-in sourcegraph integration) #15

Open
Tracked by #27
slimsag opened this issue May 3, 2022 · 0 comments

Comments

@slimsag
Copy link
Member

slimsag commented May 3, 2022

The way doctree ties back to Sourcegraph is that you can opt-in to connecting it to a Sourcegraph server if you like.

Running locally or self-hosting, you can opt-in to connecting it to Sourcegraph.com (free for public code) or a private Sourcegraph instance. The online version doctree.org will be connected to Sourcegraph.com to show off these features. If you choose to, these are the features you'd get as add-ons to the regular doctree experience:

  • Automatic real-world usage examples
  • Code intelligence (hover/go-to-definition/find-references on function signatures, etc.)
  • (far into future) Repo permissions / OAuth / etc., this stuff is very hard/annoying to build and Sourcegraph already has this info in enterprise environments, the idea is if you connect to Sourcegraph it could just "respect" all of that automatically.

Important to note all of these are things we just couldn't afford to add to doctree otherwise from a technical POV (e.g. we need statistical analysis of a large corpus of code to find good usage examples, integrating with tons of code hosts & respecting repository permissions is super technically challenging, etc.) so the idea is that everything here is synergetic, and truly just an add-on that can make the experience better.

We want doctree to be respectful of privacy, especially on local / private code, so this will be opt-in. If you want to use doctree standalone without any external service, that's a 100% valid use case we want to support. First and foremost, doctree should be a useful standalone tool - these are just optional add-ons.

@slimsag slimsag changed the title (opt-in) sourcegraph integration: automatic real-world usage examples (opt-in) sourcegraph integration May 3, 2022
@slimsag slimsag mentioned this issue May 12, 2022
11 tasks
@slimsag slimsag changed the title (opt-in) sourcegraph integration (opt-in) sourcegraph integration (automagic real-world usage examples, code intelligence) May 12, 2022
@slimsag slimsag changed the title (opt-in) sourcegraph integration (automagic real-world usage examples, code intelligence) Automagic real-world usage examples, code intelligence (opt-in sourcegraph integration) May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant