npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sassdoc-theme-winter

v0.4.3

Published

A fancy new SassDoc theme.

Downloads

13

Readme

sassdoc-theme-winter

这是一个简单的 SASSDOC 主题,其制作目的是为 Nojiko 项目提供一套能够满足其需求的主题,当然它也可以被用于其它 SASS 项目。

该主题具有如下特点:

  • 相对简洁而干净的样式
  • 充分优化的排版结构
  • 支持自定义分组及类型的显示顺序

配置

隐藏依赖项

在 display 对象中添加 require 属性,并设置其值为 false,即可不再显示依赖相关的内容。

"display": {
    "require": false
}

隐藏副标题

默认,该主题会使用 package.description 作为标语显示在项目名称下面, 若不希望显示该标语,可在 display 对象中添加 tagline 属性,并设置其值为 false 即可将其隐藏:

"display": {
    "tagline": false
}

隐藏 GitHub 链接

如果 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/"