Skip to content

sunxen/docsearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中文

Node.js Document Search

A chrome extension to add search box to Node.js documentation.

The Node.js documentation (https://nodejs.org/api/) does not have a search function, it is just a plain text page, unlike other documentation such as Vue.js (https://vuejs.org/), React (https://react.dev/) etc., which have integrated the Algolia search box, allowing you to quickly locate specific pages or methods based on keywords.

This plugin adds a search box to the Node.js documentation page, perfectly embedded in the page, as if it was originally there, providing instant search capabilities, aligning with the search experience of other documentation.

Preview

1.png

2.png

Installation

  • install from Chrome Web Store
  • or install unpacked extension: docsearch/packages/chrome-extension

Usage

  1. After installing the plugin, open the Node.js documentation page, you will see a search button in the upper right corner of the page, click it or use the shortcut Ctrl+k (Cmd+k) to pop up the search box
  2. Or click the plugin button, if the current tab is a document, it will pop up the search box, if not, it will open the document

How it works

  • docsearch/crawler is a nodejs script, it crawls the Node.js documentation website, and generates a json file which contains all the documentations.
  • use Fuse.js to search the documentations in the json file.
  • docsearch/packages/docsearch-react is a search box UI, fork from docsearch, and modified to support local search.
  • docsearch/packages/chrome-extension is a chrome extension, it injects the search box UI to the Node.js documentation website.

License

MIT

About

docsearch for nodejs api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 70.6%
  • JavaScript 14.4%
  • CSS 13.8%
  • Dockerfile 1.2%