Skip to content

Add more commands and sources for documentation search #13

Description

@goestav

We could use devdocs as source for other docs.

For NodeJS we could use this index (Node v18 LTS) to search for terms.

Example code snippet to map the URLs to the NodeJS docs
const version = 18
const devDocsUrl = new URL("https://devdocs.io/node~18_lts/errors#err_socket_dgram_is_connected")

const filename = devDocsUrl.pathname.split('/').at(-1)
const { hash } = devDocsUrl

const nodeJsUrl = `https://nodejs.org/docs/latest-v${version}.x/api/${filename}.html${hash}`
//    ^ "https://nodejs.org/docs/latest-v18.x/api/errors.html#err_socket_dgram_is_connected"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    low priorityPrioritise other issues first

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions