Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@hewes/storybook-addon-docs-graymatter

AubreyHewes108ISC0.0.5TypeScript support: included

Storybook graymatter docs plugin

readme

GitHub GitHub tag (latest by date) npm (scoped) node-current (scoped)

A Storybook front-matter documentation addon

drop-in for integrating, for example, docusaurus or github docs

Usage

Install

npm install @hewes/storybook-addon-docs-graymatter

Then edit .storybook/main.js

module.exports = {
  "stories": [
    "../docs/**/*.md",
    // ...
  ],
  "addons": [
    {
      name: "@hewes/storybook-addon-docs-graymatter"
    },
    // ...
  ],
}

Options

Option Description Default
prefix Prefix the title with this "Folder" i.e. a value of Documentation would create titles like Documentation/Title, which would therefore be in a sub folder.
fileNameFallback If this is true then files without front-matter will still be displayed using the relative filename as the title false

TODO

  • <input checked="" disabled="" type="checkbox"> filename fallback for files without front-matter
  • <input disabled="" type="checkbox"> sidebar support (to support drop-in from docusaurus)
  • <input disabled="" type="checkbox"> use https://github.com/atlassian/gray-matter-loader

Reference

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.0.5 (2021-10-18)

0.0.4 (2021-10-18)

Features

  • deps: support latest storybook (18f2c1e)

0.0.3 (2021-10-18)

Features

  • deps: added node 16 support (d480605)

0.0.2 (2021-01-15)

Features

  • updated to latest storybook dependencies (5dae188)

Bug Fixes

  • do not generate sourcemaps (44549af)
  • updated pattern matcher for reusing docs addon webpack rules (c4a65cd)

0.0.1 (2021-01-04)

Features