
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
bit-docs-html-toc
Advanced tools
A table of contents for use with bit-docs-generate-html.
To use, add bit-docs-html-toc to your bit-docs dependencies in package.json:
{
...
"bit-docs": {
"dependencies": {
"bit-docs-html-toc": "$VERSION"
}
}
}
Where $VERSION
is the latest version on npm.
In your template add a class on-this-page-container:
<div class="on-this-page-container"></div>
By default, all heading tags children of the first article
tag on the page will
be collected to create the table of contents; if you want to use a different element
just do:
<div
class="on-this-page-container"
data-heading-container-selector="#my-custom-selector"
>
</div>
The table of contents will be injected into this element at run time.
To control the number of child headers that will be included in the TOC, use the
@outline
tag like so:
@outline 2
This will include <h2>
and <h3>
elements, rather than the normal <h2>
only.
FAQs
table of contents bit-docs plugin
The npm package bit-docs-html-toc receives a total of 13 weekly downloads. As such, bit-docs-html-toc popularity was classified as not popular.
We found that bit-docs-html-toc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.