New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

docsify-fulltextsearch

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docsify-fulltextsearch

Search plugin for docsify.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

docsify-fulltextsearch

You can do full text search with this plugin. Every match list on sidebar and its show which page have matches.

I write this plugin because docsify search plugin is not good and I decide write a good plugin for that.

Usage:

Copy index.js to index.html directory an add like below:

In ./test/index.html:


  <script src="index.js"></script>
  <script>

    setFullTextSearchConfig({
      NO_DATA_TEXT: 'sorry I cant found anything...',
      RESULT_COLOR: 'violet',
      INSENSITIVE: true
    })
    
    window.$docsify = {
      name: '',
      repo: '',
      loadSidebar: true,
      plugins: [
        fullTextSearch
      ]
    }
  </script>

For more info please look at o test directory

Test

You need to instal docsify-cli before test.

For test :

npm install -g docsify-cli

npm run test

Config:

Default config values:


const configs = {
  NO_DATA_TEXT: 'Nothing Found ...',
  RESULT_COLOR: 'yellow',
  INSENSITIVE: false
}

You can change with setFullTextSearchConfig


// change multiple
setFullTextSearchConfig({
  NO_DATA_TEXT: 'sorry I cant found anything...',
  RESULT_COLOR: 'violet',
  INSENSITIVE: true
})

//or single: 
setFullTextSearchConfig({
  RESULT_COLOR: 'violet',
})


Keywords

docsify

FAQs

Package last updated on 18 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts