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

vuepress-theme-vsf-docs

v1.5.2

Published

Vuepress theme for VSF Documentation

Downloads

93

Readme

Vuepress v1 theme for Vue Storefront Docs

This Vuepress theme is a way to style your Vue Storefront docs site. It is based on the default Vuepress theme, but adds some additional styling and components to make it easier to style your docs site.

The intention of this theme is to bring cohesion across the multiple VSF integration docs both in terms of styling and navigation.

Features

  • styling for pages (sidebar, content, table of contents)
  • overrides navigation to provide consistent links
  • comes with @vuepress/search
  • includes multiple custom containers like the Vuepress default theme
  • adds several built in components that can be used to style your VSF docs site
  • adds an optional secondary navigation to the header
  • adds several custom layouts for your docs site to use
  • built in Iconify support via the <iconify-icon> component.
  • breadcrumb support by default
  • adds plugins for overriding the active link style and image fixes

Installation

npm i vuepress-theme-vsf-docs yarn add vuepress-theme-vsf-docs

To add it to your theme, set the theme in your .vuepress/config.js file

{
  "theme": "vsf-docs"
}

Theme Configuration

To configure the theme, add a themeConfig object to your .vuepress/config.js file.

{
  "theme": "vsf-docs",
  "themeConfig": {
    
  }
}

This theme comes with the following themeConfig properties:

| Property | Type | Description | | ------------ | --------------------------------------------------------------------------------------------- | -------------------------------------------------------- | | title | String | Title of website, used for meta title and home page link | | repo | String (optional) | Used to generate Repo link on home page | | docsRepoPath | String (optional) | Used to generate "Edit this page" links | | secondaryNav | Array<{ text: string, link: string }> | Adds a secondaryNav element to the header navigation | | sidebar | See Structure | Adds sidebar navigation by specific routes |

Page Layouts

There are 2 different types of layouts you can specify in your Frontmatter

  1. layout: default - This is the default layout for your pages. By default, it will render the page with the sidebar navigation and a table of contents. But you can change this using the hideToc properties in your Frontmatter.

image

  1. layout: home - This is useful for generating landing pages. It will only render your page content with no sidebar and table of contents.

image

If you don't specify a layout, it will default to default.

Global Components

CodeGroup

Allows for a multiple code examples to be grouped together. This is useful for showing multiple ways to do the same thing (e.g. yarn vs npm installs)

image

NavCard

Useful for providing a nice visual link.

image

Accepts the following props:

  {
    to: String,
    title: String,
    description: String,
    isCard: {
      type: Boolean,
      default: true
    },
    readMore: {
      type: Boolean,
      default: false
    },
    border: {
      type: Boolean,
      default: false
    },
    green: {
      type: Boolean,
      default: false
    }
  },

Icon

With the Icon component, you can quickly add any Iconify icon to your docs site. You can find a list of all available icons here.

Misc Components

This theme also exposes a few global components that add content to your site. This is allows the community team to use the theme to control the content for all the integrations at once.

These components are:

  • CoreDocsList - links to essential Core Docs pages
  • StorefrontUI - landing page section for SFUI
  • VsfCloud - landing page section for VsfCloud
  • VsfEcosystem - landing page section that contains both StorefrontUI and VsfCloud

Custom Containers

This theme uses the vuepress-plugin-container plugin to register custom containers. This allows you to quickly add custom styling to your markdown content.

They are used by adding surrounding markdown content of the container with :::.

::: tip
This is a tip. It can have [links](#) and **formatting**.
:::

The following containers are available: tip

subheader

callout

read-more

warning

danger

col-wrapper

col-wrapper-gap

col-wrapper-hero

col-full

col-1/2

col-1/3

col-1/4

Page Frontmatter Options

| Property | Type | Description | | --------------- | ------- | --------------------------------------------------------- | | betaBanner | Boolean | shows beta banner at top of page | | hideBreadcrumbs | Boolean | hides breadcrumbs when true | | enterpriseTag | Boolean | show enterpriseTag before first h1 (useful for home page) | | pretitle | String | show text before first h1 (useful for categorizing pages) | | hideNav | Boolean | hides the Previous and Next Navigation at the bottom of the page | | hideToc | Boolean | hides the table of contents for default layout | | fileDirToc | Boolean | converts the page table of contents into a directory structure (see project structure boilerplate) |