Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
gitbook-plugin-related-links
Advanced tools
This plugin manages related links for the Markdown files in your Gitbook. It retrieves the title for the links so you can just list the filename and not worry about changing files when your topic titles change.
The plugin takes file names from the front matter of a Markdown file, gets the titles from those files, and generates a related links section at the bottom of the file with links to each of those files. This keeps your related links sections consistent and keeps you from having to hard-code the titles of links to other pages in your Gitbook.
Notes:
.md
, the plugin copies the link to the related links section without changing anything.
In this way you can specify custom link text as usual by using a standard Markdown link, or you can link to an external site by putting in a URL.
However, to keep the YAML legal, you must surround Markdown links with single quotes.
See the example below.Add the plugin to your book.json
:
{
"plugins": [ "related-links" ],
"pluginsConfig": {
"header": "### Related topics"
}
}
Then run gitbook install
.
header
: Specify the heading under which to put the related links.
The plugin adds this heading and an unordered list of links under it at the bottom of the Markdown file.
The default is "### Related topics".Here's a Markdown file with some links in the front matter:
---
relatedLinks:
- myFile.md
- http://gitbook.com
- ../otherfiles/relatedFile.md
- '[My custom link text](someOtherFile.md)'
---
# Here's my file that needs related links
At build time, before Gitbook converts the Markdown to HTML, the plugin gets the link titles from the MD files in the front matter. The resulting file looks like this:
# Here's my file that needs related links
### Related links
- [My special file](myFile.md)
- http://gitbook.com
- [My related file](../otherfiles/relatedFile.md)
- [My custom link text](someOtherFile.md)
To run tests, run these commands:
npm install
npm run test
FAQs
Handles related links for pages
The npm package gitbook-plugin-related-links receives a total of 1 weekly downloads. As such, gitbook-plugin-related-links popularity was classified as not popular.
We found that gitbook-plugin-related-links demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.