Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gitbook-plugin-algolia
Advanced tools
Use Algolia as a back-end to index and search your book's content.
This plugins requires gitbook >=4.0.0
.
algolia
plugin.true
if you have what Algolia call a "Hacker Account".Or if you prefer, you can declare the plug-in values in the book.json
file. Add the plugin and its configuration to your book.json
:
{
"plugins": ["algolia"],
"pluginsConfig": {
"algolia": {
"index": "algolia-index-name",
"applicationID": "algolia-application-id",
"publicKey": "algolia-search-only-api-key",
"freeAccount": "true"
}
}
}
If you are using the GitBook Editor, you can specify the ALGOLIA_PRIVATEKEY
in the Settings of your book.
Settings
of the book you want to add the environment variable to.Environment Variables
group.ALGOLIA_PRIVATEKEY
, and put your Admin API Key as value.If you are using the command line, pass your Admin API Key as an environment variable when launching gitbook:
$ ALGOLIA_PRIVATEKEY="algolia-admin-api-key" gitbook serve
WARNING The plugin will replace the entire index at each build phase. Do not use an existing index, unless you no longer require its contents.
When setting up the basic index on Algolia, you will be prompted to generate or import the index so Algolia can begin analysing your book.
You do not need to create the index manually for the plugin to work.
You can specify explicit keywords for any page.
---
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 by Algolia.
After having indexed your book at least once, you can configure your Algolia index from your dashboard. You can go to the Ranking settings and tell Algolia how to search your pages. You can see below an example configuration, that tells Algolia to search, by order of importance, the keywords of your pages, their title, and finally their content (body).
FAQs
Use Algolia as a backend for research
We found that gitbook-plugin-algolia demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.