sharvil/api-docs

Adding additional doc sources

jaredtconnor opened this issue · 2 comments

Would it be possible to add additional sources? For example, I was attempting to use scikit-learn docs, which are hosted on Devdocs here.

yar85 commented

While it's not possible to add sources in the package settings, you can do this manually:

  1. In "Packages / Api Docs" press the "View source" button
  2. Open "src/library.js" file and navigate to the "Library" class declaration
  3. Add a new item into the "DEFAULT_DOCSETS_" set ('scikit_learn' or another one)
  4. Save and restart Atom

I tried to add some PHP docs from Devdocs, but without success. When I highlight something and press Ctrl-d the text appears in a search box with the message 'No matches found.' I have no option on the settings page to add/manage doc sources, even after reinstalling the plugin. Suggestions?