Skip to content

doc: Expect nodejs doc site to have an api search feature. #36412

Description

@UndefinedChai
No description provided.

Activity

  1. added
    docIssues and PRs related to Node.js documentation.
    on Dec 6, 2020
  2. Trott commented on Dec 6, 2020

    @Trott
    Member

    As a workaround, you can view the single-page API doc (e.g., https://nodejs.org/dist/latest-v15.x/docs/api/all.html) and use your browser's page search functionality (Cntl-F on Linux/Windows or Command-F on macOS).

  3. benjamingr commented on Dec 6, 2020

    @benjamingr
    Member

    @AliasT feel free to make a pull request!

  4. UndefinedChai commented on Dec 7, 2020

    @UndefinedChai
    ContributorAuthor

    Finally found https://devdocs.io/node/ by freecodecamp, seems like dash. Great experience.
    Would be awesome if officially.

  5. Lxxyx commented on Dec 7, 2020

    @Lxxyx
    Member

    I've noticed that React Native uses algolia for search, and the experience is very good. Could Node.js do the same for search?

    image

    algolia is a commercial company, and although the open source project is free to use, I'm still concerned about whether this conflicts with Node.js policies.

    I'm hoping someone can help me with this, and if algolia can be used, I'm willing to send a Pull Request! @Trott @benjamingr

  6. aduh95 commented on Dec 7, 2020

    @aduh95
    Contributor

    I don't know about algolia, but if someone wanted to make a tool for this, I'd suggest make it fetch all.json and search for matches there. I'd personally prefer not to rely on a non-open-source software for our docs, and it's certainly doable in a few dozen of lines of JS.

  7. Trott commented on Dec 10, 2020

    @Trott
    Member

    algolia is a commercial company, and although the open source project is free to use, I'm still concerned about whether this conflicts with Node.js policies.

    I'm unaware of any policies this would violate, but there is often (understandable) resistance to anything that might ship user information (such as user IP addresses) off to a third party. I'd welcome a pull request, but be prepared for lots of questions. Somewhere, there's a pull request to add RunKit support to the docs and it will give you an idea of the number of questions these sorts of things can raise.

  8. srknzl commented on Apr 3, 2021

    @srknzl
    Contributor

    I think this is possible without external tools. We can pre-compute "raw text" to "link" object from all.json, and put the pre-computed object in javascript code.(docs/template.html)

    And then we can have a search bar like this:
    image

    In each page, search box searches all pages, thus making navigation faster.

    One drawback of this approach is that it makes html file bigger, so page loading times may increase.

    In another approach we can just pre-compute the object, write it as json file next to all.json, and fetch that small file after page load.

  9. Trott commented on Apr 6, 2021

    @Trott
  10. Trott commented on Apr 6, 2021

    @Trott
  11. github-actions commented on Apr 4, 2022

    @github-actions
    Contributor

    There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.

    For more information on how the project manages feature requests, please consult the feature request management document.

  12. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Apr 4, 2022
  13. moved this from Pending Triage to Stale in Node.js feature requestson Apr 4, 2022
  14. moved this to Pending Triage in Node.js feature requestson Apr 4, 2022
  15. github-actions commented on May 6, 2022

    @github-actions
    Contributor

    There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

    For more information on how the project manages feature requests, please consult the feature request management document.

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

    docIssues and PRs related to Node.js documentation.feature requestIssues requesting new Node.js features.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions