
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
sassdoc-theme-winter
Advanced tools
这是一个简单的 SASSDOC 主题,其制作目的是为 Nojiko 项目提供一套能够满足其需求的主题,当然它也可以被用于其它 SASS 项目。
该主题具有如下特点:
在 display 对象中添加 require 属性,并设置其值为 false,即可不再显示依赖相关的内容。
"display": {
"require": false
}
默认,该主题会使用 package.description 作为标语显示在项目名称下面, 若不希望显示该标语,可在 display 对象中添加 tagline 属性,并设置其值为 false 即可将其隐藏:
"display": {
"tagline": false
}
如果 package.json 中所声明的是 GitHub 的仓库地址,那默认会在页面右上角显示一个跳 转图标,若不希望显示该图标,可在 display 对象中添加 repositoryLink 属性,并设置其值为 false 即可:
"display": {
"repositoryLink": false
}
可在 display 配置项下添加一个 sort 属性,该属性下可指定两个子属性:group 及 type,分别用于定义分组及类型的排列顺序,示例代码如下:
"display": {
"sort": {
"group": [
"undefined",
"helpers",
"add-ons",
"list",
"map"
],
"type": [
"variable",
"function",
"mixin",
"placeholder"
]
}
}
添加一个 fragments 配置,在其中进行配置:
"fragments": {
"document": "./fragments/document.md",
"group": {
"undefined": "./fragments/group-undefined.md",
"helpers": "./fragments/group-helpers.md"
}
}
属性值为描述内容文件的访问路径,仅支持 markdown 格式的内容。
如果源代码链接不正确,可能是你需要配置地址前缀:
"sourceLinkPrefix": "src/sass/"
FAQs
A fancy new SassDoc theme.
We found that sassdoc-theme-winter 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.