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.
acetate-kss
Advanced tools
Acetate-KSS parses a folder of sass files with KSS-formatted documentation and makes that data available as data in Acetate.
It also includes a simple Nunjucks Template for displaying KSS documentation in your Acetate site.
To install, simply add acetate-kss
to the package.json
of an existing press site:
npm install --save-dev acetate-kss
Using Acetate-KSS is as simple as adding a couple lines to acetate.conf.js
. An example conf file could look something like:
// Load press kss to add data to your site
var acetateKSS = require('acetate-kss');
// Load the styleguide to get the Nunjucks template
var styleguide = require('acetate-kss/styleguide');
function config(acetate) {
acetate.global('config', {
environment: 'dev',
});
acetate.layout('**/*', 'layouts/_layout:content');
acetate.options.src = 'docs/source';
acetate.options.dest = 'docs/build';
// Tell Acetate to use the KSS extension
acetate.use(acetateKSS({
// point the extension to your sass folder
sassDir: 'sass/',
markdown: true
}));
// Tell Acetate to load the Nunjucks helper
acetate.use(styleguide({
// use a custom template for styleguide block (optional)
template: 'partials/_styleguide_block.html'
}));
}
module.exports = config;
Then, in whatever page you need the kss data, just add it to the frontmatter:
data:
- kss
And in your page, render a block of documentation by calling the Nunjucks helper:
{% styleguide kss.section('1.1') %}
<h1 class="$modifier_class">Hey man</h1>
{% endstyleguide %}
FAQs
Parse KSS formatted sass documentation and add it to Acetate
We found that acetate-kss 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.