![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
postcss-style-docs
Advanced tools
PostCSS plugin for dynamically adding documentation to styles.
The postcss-style-docs
pluin will walk through your input CSS and create a map of styles to documentation blocks as a message output.
/**
* @docs
* This is a documentation block for the .foo class
* it can be multiple lines
*/
.foo {
/* Input example */
}
.foo {
/* Output example */
}
Step 1: Install plugin:
npm install --save-dev postcss postcss-style-docs
Step 2: The postcss-style-docs
plugin works best when manually calling postcss.process
which enables users to get data out of the plugin:
import postcss from 'postcss';
import { getDocs, styleDocsPlugin } from './lib/cjs/index';
const inputCSS = `
/**
* @docs
* We're doing something really fancy and our users are going
* to love it.
*/
.something-fancy {
color: tomato;
}
/** @docs Make it pop */
.something-fancy--pop {
background: papayawhip;
}
`;
const { css, messages } = await postcss([
styleDocsPlugin()
]).process(inputCSS, { from: undefined });
const docs = getDocs(messages);
console.log(docs.size); // 2
console.log(docs.get('.something-fancy')); // 'We're doing something really fancy and our users are going to love it'
console.log(docs.get('.something-fancy--pop')); // 'Make it pop'
FAQs
PostCSS plugin for dynamically adding documentation to styles
The npm package postcss-style-docs receives a total of 1 weekly downloads. As such, postcss-style-docs popularity was classified as not popular.
We found that postcss-style-docs 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.