Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
gitbook-plugin-lunr
Advanced tools
This plugin provides a backend for the search plugin.
This plugin is a default plugin.
This is a default plugin and it can be disabled using a book.json
configuration:
{
"plugins": ["-lunr"]
}
Lunr can't index a huge book, by default the index size is limited at ~100ko.
You can change this limit by settings the configuration maxIndexSize
:
{
"pluginsConfig": {
"lunr": {
"maxIndexSize": 200000
}
}
}
You can specify explicit keywords for any page. When searching for these keywords, the page will rank higher in the results.
---
search:
keywords: ['keyword1', 'keyword2', 'etc.']
---
# My Page
This page will rank better if we search for 'keyword1'.
You can disable the indexing of a specific page by adding a YAML header to the page:
---
search: false
---
# My Page
This page is not indexed in Lunr.
By default, special characters will be taken into account, to allow special searches like "C++" or "#word". You can disable this if your text is essentially English prose with the ignoreSpecialCharacters
option:
{
"pluginsConfig": {
"lunr": {
"ignoreSpecialCharacters": true
}
}
}
FAQs
Index book in a lunr index accessible from the search plugin
The npm package gitbook-plugin-lunr receives a total of 4,009 weekly downloads. As such, gitbook-plugin-lunr popularity was classified as popular.
We found that gitbook-plugin-lunr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.