nodejs.org icon indicating copy to clipboard operation
nodejs.org copied to clipboard

API documentation search

Open WillAvudim opened this issue 4 years ago • 11 comments

Would it be possible to implement search functionality in the API documentation section, https://nodejs.org/dist/latest-v14.x/docs/api/ ?

For example, if I want to quickly find the description for the "?.inspect" method, right now I have to

  1. Google for "site:https://nodejs.org/dist/latest-v14.x/docs/api inspect".
  2. Curse that it can't find "a damn thing."
  3. Navigate to https://nodejs.org/dist/latest-v14.x/docs/api manually.
  4. Scroll the left sidebar haphazardly all the way down, clicking random modules from time to time until I arrive at the util (I deal with multiple APIs: web, .NET, C++, so it sometimes feels frustratingly fuzzy what is it exactly I'm looking for this time).
  5. Then proceed through all the methods exported by the util module to find the method I want.

For comparison, MDN has solid search functionality, see the textbox in the right top corner - https://developer.mozilla.org/en-US/docs/Web/Guide#apis

WillAvudim avatar Aug 23 '21 11:08 WillAvudim

@nodejs/nodejs-dev Is this something that has been implemented or is expected to be implemented on nodejs.dev?

Trott avatar Aug 25 '21 04:08 Trott

Yes I'm working on an implementation here Demo https://staging.nodejs.dev/1677/ It currently only searches /learn content

benhalverson avatar Aug 25 '21 06:08 benhalverson

I'll +1 that I've wished I could search the API documentation more easily. I resorted to cloning from github and then using grep a few times.

mhdawson avatar Nov 02 '21 14:11 mhdawson

+1

DerekNonGeneric avatar Nov 02 '21 18:11 DerekNonGeneric

I could use some code reviews on my pr. https://github.com/nodejs/nodejs.dev/pull/1677

benhalverson avatar Nov 03 '21 19:11 benhalverson

Search exists now on https://nodejs.dev. It searches the core docs and the /learn content 🎉

benhalverson avatar Sep 08 '22 07:09 benhalverson

Awesome! Thanks, @benhalverson!

lobsterkatie avatar Sep 08 '22 13:09 lobsterkatie

It looks and feels great! Thank you for working on this!

WillAvudim avatar Sep 08 '22 16:09 WillAvudim

Amazing work! but just to know, why not in https://nodejs.org/en/docs/ too instead of only in nodejs.dev?

italojs avatar Jan 13 '23 15:01 italojs

It’s the same content on both.

benhalverson avatar Jan 13 '23 20:01 benhalverson

As @benhalverson is the same content on both, but, we're working into transferring the structure, layout and contents from nodejs.dev into nodejs.org :)

ovflowd avatar Jan 18 '23 17:01 ovflowd

Closing as this is going to be done soon by the Metadata Docs Proposal + migration of stuff from nodejs.dev to here.

ovflowd avatar Mar 12 '23 14:03 ovflowd