
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
docsify-top-banner-plugin
Advanced tools
docsify plugin to add top banner for small announcements or updates
Get a pretty banner probably used for notifying announcements and updates
Add the following stylesheet along with your other stylesheets
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/docsify-top-banner-plugin@latest/dist/style.css"
/>
And add the following script
<script src="https://cdn.jsdelivr.net/npm/docsify-top-banner-plugin@latest/dist/index.js"></script>
In your docsify config object add the following
window.$docsify = {
...
topBanner: {
options
},
...
}
contentType : String
Default : none
It is the content which will be render as the top banner
NOTE: it should be a single line content
NOTE: It cant be empty! leaving empty will simply render an empty banner
defaultTagType : String
Default : 'span'
the html tag which will be added in the DOM to render the banner
positionType : String
Default : 'fixed'
This is the banner's CSS position property.
backgroundColorType : String
Default : '#deebff'
The background color of the banner
zIndexType : String
Default : 99
The z-index of the banner
Recommended : Use position
relativeandzIndex=-1when you have repo config in your docsify
textColorType : String
Default : '#091E42'
The primary text color of the banner
linkColorType : String
Default : value of textColor
The primary text color of the anchor tag inside the banner
textAlignType : String
Default : center
Alignment of the content of the banner
src/index.js and src/style.stylstyl -> css using styl CLIcssnano and postcssrolluprollup-plugin-terserstandardFAQs

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.