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

Package detail

vue-docgen-cli

vue-styleguidist78.6k4.79.0TypeScript support: included

Generate documentation markdown files from VueJs components using the vue-docgen-api.

readme

vue-docgen-cli

Generate documentation markdown files from VueJs components using the vue-docgen-api.

Install

Install the module directly from npm:

yarn add -D vue-docgen-cli

Usage

In a terminal window, navigate to the root of your project, then type the following command.

yarn vue-docgen src/components/**/*.vue docs/components

If your components are in the src/components folder, this will generate one .md file per component.

Config

Command Line Args

vue-docgen can take two nameless arguments. The components glob to locate components and the destination directory.

-w or --watch

Should vue-docgen watch for modifications of your components and update generated markdown files accordingly?

yarn vue-docgen -w

-c or --configFile

Specify the path of your configuration file. By default, docgen will look for docgen.config.js in the current folder.

yarn vue-docgen -c config/docgen.config.js

-v or --verbose

Should vue-docgen output more information?

yarn vue-docgen -v

same as --logLevel debug

--logLevel

Specify the log level. Can be error, warn, info, debug, trace.

yarn vue-docgen --logLevel debug

default is error

Config File

Create a docgen.config.js at the root of your project to avoid having to specify command-line arguments everytime.

All of the command-line arguments, except for the --config, can be replaced by lines in the docgen.config.js file.

In a config file you can even be more specific. Each of the following configurations is optional.

const path = require('path')

module.exports = {
  componentsRoot: 'src/components', // the folder where CLI will start searching for components.
  components: '**/[A-Z]*.vue', // the glob to define what files should be documented as components (relative to componentRoot)
  ignore: '*.test.ts', // optional glob to ignore files
  outDir: 'docs', // folder to save components docs in (relative to the current working directry)
  apiOptions: {
    ...require('./webpack.config').resolve, // inform vue-docgen-api of your webpack aliases
    jsx: true // tell vue-docgen-api that your components are using JSX to avoid conflicts with TypeScript <type> syntax
  },
  getDocFileName: (componentPath: string) =>
    componentPath.replace(/\.vue$/, '.md'), // specify the name of the input md file
  getDestFile: (file: string, config: DocgenCLIConfig) =>
    path.join(config.outDir, file).replace(/\.vue$/, '.doc.md'), // specify the name of the output md file
  templates: {
    // global component template wrapping all others see #templates
    component: require('templates/component'),
    events: require('templates/events'),
    methods: require('templates/methods'),
    props: require('templates/props'),
    slots: require('templates/slots'),
    // static template to display as a tag if component is functional
    functionalTag: '**functional**'
  },
  docsRepo: 'profile/repo',
  docsBranch: 'master',
  docsFolder: '',
  editLinkLabel: 'Edit on github'
}

components

type: string | string[] , default: "src/components/**/[a-zA-Z]*.{vue,js,jsx,ts,tsx}"

Glob string used to get all the components to parse and document.

outDir

type: string, default: "docs"

The root directory for the generation of the markdown files

outFile

type: string, optional

If you specify this, all documentation will be generated in one single page. The path of this file is relative to the outDir.

The following configuration will generate one single file: myDocs/components.md

module.exports = {
  outDir: 'myDocs',
  outFile: 'components.md'
}

componentsRoot

type: string, default: path.dirname(configFilePath)

The folder where CLI will start searching for components. Since the folder structure will be kept from source to destination, it avoids having uselessly deep scaffoldings.

   src
    └───components
        ├───Button.vue
        ├───CounterButton.vue
        ├───Functional.vue
        └───Input.vue

If you simply use src/components/**/[A-Z]*.vue as source glob and docs as outDir, you will get this.

   src
    └───components
        ├───Button.vue
        ├───CounterButton.vue
        ├───Functional.vue
        └───Input.vue
   docs
    └───src
        └───components
            ├───Button.vue
            ├───CounterButton.vue
            ├───Functional.vue
            └───Input.vue

Specifying componentsRoot: 'src/components' and using **/[A-Z].vue will skip the two useless levels of hierarchy.

apiOptions

type: DocGenOptions, optional

Allows you to give vue-docgen-api some config. Most notably, you can specify wether your components contain JSX code and the alias configured in your webpack.

getDocFileName

type: (componentPath: string) => string, default: (componentPath) => path.resolve(path.dirname(componentPath), 'Readme.md')

By default it will find the Readme.md sibling to the component files. Use this to point docgen to the files that contain documentation specific to a component.

getDestFile

type: (file: string, config: DocgenCLIConfig) => string, default: (file, config) => path.resolve(config.outDir, file).replace(/\.\w+\$/, '.md')

Function returning the absolute path of the documentation markdown files. If outFile is used, this config will be ignored.

watch

type: boolean, default: false

Should vue-docgen keep on watching your files for changes once the first files are generated?

templates

type: Templates, optional

An object specifying the functions to be used to render the components.

For example:

file: component.ts

export default function component(
  renderedUsage: RenderedUsage, // props, events, methods and slots documentation rendered
  doc: ComponentDoc, // the object returned by vue-docgen-api
  config: DocgenCLIConfig, // the local config, useful to know the context
  fileName: string, // the name of the current file in the doc (to explain how to import it)
  requiresMd: ContentAndDependencies[], // a list of all the documentation files
  // attached to the component documented. It includes documentation of subcomponents
  { isSubComponent, hasSubComponents }: SubTemplateOptions // are we documenting
): // a sub-component or does the current component have subcomponents
string {
  const { displayName, description, docsBlocks } = doc
  return `
  # ${displayName}

  ${description ? '> ' + description : ''}

  ${renderedUsage.props}
  ${renderedUsage.methods}
  ${renderedUsage.events}
  ${renderedUsage.slots}
  ${docsBlocks ? '---\n' + docsBlocks.join('\n---\n') : ''}
  `
}

And the partial for slots

import { SlotDescriptor } from 'vue-docgen-api'
import { cleanReturn } from './utils'

export default (
  slots: {
    [slotName: string]: SlotDescriptor
  },
  opt?: {
    isSubComponent: boolean
    hasSubComponents: boolean
  }
): string => {
  const slotNames = Object.keys(slots)
  if (!slotNames.length) {
    return '' // if no slots avoid creating the section
  }
  return `
## Slots

  | Name          | Description  | Bindings |
  | ------------- | ------------ | -------- |
${slotNames
  .map(slotName => {
    const { description, bindings } = slots[slotName]
    const readableBindings = // serialize bindings to display them ina readable manner
      bindings && Object.keys(bindings).length
        ? JSON.stringify(bindings, null, 2)
        : ''
    return cleanReturn(
      `| ${slotName} | ${description} | ${readableBindings} |`
    ) // remplace returns by <br> to allow them in a table cell
  })
  .join('\n')}
  `
}

pages

type: Array<DocgenCLIConfig>, optional

Allows to group components into pages. Each page will inherit its parent properties.

const path = require('path')

module.exports = {
  componentsRoot: 'src/components', // the folder where CLI will start searching for components.
  outDir: 'docs',
  pages: [
    {
      components: 'atoms/**/[A-Z]*.vue', // the glob to define what files should be documented as components (relative to componentRoot)
      outFile: 'atoms.md' // saved as `docs/atoms.md`
    },
    {
      components: 'molecules/**/[A-Z]*.vue', // the glob to define what files should be documented as components (relative to componentRoot)
      outFile: 'molecules.md' // saved as `docs/molecules.md`
    }
  ]
}

defaultExamples

type: boolean, default: false

Generate an example for components that have neither <docs> block nor a markdown file to provide examples of usage.

cwd

type: string, optional

Force the Current Working Directory. Useful in monorepos.

getRepoEditUrl

type: (relativePath: string) => string, default: p => `https://github.com/${config.docsRepo}/edit/${branch}/${dir}/${p}`

Gets the link to the documentation edition from

docsRepo

type: string, optional

If you specify the docsRepo, and you do not want to specify getRepoEditUrl you will get links to edit the docs near each readme files.

docsBranch

type: string, default: master

The branch you want the edit links to send you to

docsFolder

type: string, default:

If the root folder is not at the root of your repo, use this parameter

editLinkLabel

type: string, default: Edit on github

The label we can read on edit button

Change log

The change log can be found on the Changelog Page.

Authors and license

Bart Ledoux

MIT License.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

4.45.0 (2022-04-29)

Features

  • allow use of multiline examples and types (a95a306), closes #1166

4.44.29 (2022-04-18)

Note: Version bump only for package vue-styleguidist

4.44.28 (2022-04-11)

Bug Fixes

  • 🐛 webpack5 serve undefined process (54c7e1a), closes #1074

4.44.27 (2022-03-26)

Bug Fixes

  • add missing dependency back (f6a8944)
  • check if the current release is already deployed (4d3164e)
  • make sure the proper tag is created (acc88e6)
  • plugin: use webpack version to only remove when necessary (cdd8c84)
  • try creating a release using lerna version (db9de67)
  • use continue-on-error (5884599)

4.44.26 (2022-03-25)

Bug Fixes

  • add missing dependency back (f6a8944)
  • plugin: use webpack version to only remove when necessary (cdd8c84)

4.44.25 (2022-03-25)

Bug Fixes

  • allow both wp 4 and wp5 to work with plugin (e6a566b)
  • make cli plugin work with wp 5 (47dce60)

4.44.24 (2022-03-25)

Bug Fixes

  • filter html plugin in vue cli plugin (a2183d2)

4.44.23 (2022-03-25)

Bug Fixes

  • last babel cheks for const initialization (8587549), closes #1299
  • make sure old version of node won't fail (d6a423c), closes #1300

4.44.22 (2022-03-18)

Bug Fixes

  • catch error if vue is not found (b2f9a5c), closes #1295
  • require version instead of pkg (da0f721)

4.44.21 (2022-03-18)

Bug Fixes

  • publish proper postinstall (5ad78fc)

4.44.20 (2022-03-18)

Bug Fixes

  • create postinstall to adapt vue3 (7de0803)
  • fix postinstall script (1dd108a)

4.44.19 (2022-03-16)

Bug Fixes

  • update esm import of html plugin (42bfc53)

4.44.18 (2022-03-10)

Bug Fixes

4.44.17 (2022-02-28)

Bug Fixes

  • adapt compiler utils to Vue3 jsx format (9e1f315)
  • avoid adding h to pragmas in vue3 (bb265cb)
  • docgen: parse withDefaults() for defaults (3ac0759)
  • remove h from vue3 in inbrowser compiler (cf7305a)

4.44.0 (2022-01-17)

4.44.16 (2022-02-22)

Bug Fixes

  • building circle solution in cypress (9a94fdf)
  • display richer complex types in setup (2254598)

4.44.2 (2022-01-18)

4.44.15 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.14 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.13 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.12 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.11 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.10 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.9 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.8 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.7 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.6 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.5 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.4 (2022-01-31)

Note: Version bump only for package vue-styleguidist

4.44.3 (2022-01-31)

Bug Fixes

  • building circle solution in cypress (9a94fdf)
  • delivery should not run test on their own (e1fe33d)
  • display richer complex types in setup (2254598)

Reverts

  • Revert "build: remove package to install" (51c056f)

4.44.2 (2022-01-18)

Bug Fixes

  • docgen: parse TypeScript types / setup syntax (2346b64)

4.44.1 (2022-01-18)

Bug Fixes

  • docgen: parse withDefaults() for defaults (3ac0759)

4.44.0 (2022-01-17)

Bug Fixes

  • docgen: typings for tests (bf59f31)

Features

  • docgen: add setup syntax api support (127f288)
  • docgen: allow template comments in js (f2811f7)

4.43.3 (2022-01-13)

Bug Fixes

  • docgen: allow simple PropType (486c1a4), closes #1254
  • make sure we can customize rederer only components (46220d6)

4.43.2 (2022-01-03)

Bug Fixes

  • custom components have priority over vsg (9c95acb), closes #1244

4.43.1 (2021-12-23)

Bug Fixes

  • docgen: parse bindings with a dash in jsdoc (b7b0d30), closes #1229
  • have both script & setup in a SFC ignores (3593171)
  • should escape interpolation inside template string (a90c1d4)

4.43.0 (2021-11-21)

Bug Fixes

  • docgen: resolve exported displayname (d414c4a), closes #1220

Features

  • utils: add selector combinators support for styleScoper (283f805)

4.42.0 (2021-11-18)

Bug Fixes

  • error typing errors (so meta) (4e4333f)

Features

  • utils: add the ability to remove the added scoped style (51baa00)

4.41.3 (2021-11-08)

Bug Fixes

  • expected corresponding JSX closing tag for
    (85d1efd)

4.41.2 (2021-09-09)

Note: Version bump only for package vue-styleguidist

4.41.1 (2021-08-17)

Note: Version bump only for package vue-styleguidist

4.41.0 (2021-08-13)

Bug Fixes

  • deps: update all (78807c3)
  • docgen: fix strict alias type to support arrays (47c6f7b)

Features

  • docgen: add support for arrays in aliases (df76397)

4.40.0 (2021-06-07)

Features

  • allow to use the single type as Prop argument (8e2a12d), closes #1034

4.39.0 (2021-05-24)

Features

  • allow extension of component in a local file (1663977)
  • resolve local global variable for mixins (58305f3)

4.38.3 (2021-05-24)

Bug Fixes

  • types for webpack-dev-server (205cc47)
  • docgen: multiple class component in same file (cb0e986), closes #1130
  • lock dependencies as they are locked in rsg (f418e07)

4.38.2 (2021-05-11)

Bug Fixes

  • allow for @Emit to be parsed (b1c7285)
  • make usage table font sizes and spacing consistent (7fc22fe)

4.38.1 (2021-04-13)

Bug Fixes

  • allow function expression validators (7ece101), closes #1083

4.38.0 (2021-04-10)

Features

  • docgen: allow typescript as in exports (0514a86), closes #1066

4.37.2 (2021-04-09)

Bug Fixes

  • plugin: make cli plugin ok with production builds (429ed55)

4.37.1 (2021-04-05)

Note: Version bump only for package vue-styleguidist

4.37.0 (2021-04-05)

Features

  • docgen: add support for Identifier when parsing validators (#1076) (5f0d089)

4.36.1 (2021-03-20)

Bug Fixes

  • load export const name = Vue.extends all good (2e760c9), closes #1069

4.36.0 (2021-03-18)

Bug Fixes

  • pagePerSection when only top section exists (70cbb59), closes #1054
  • updrade react-stypeguidist (4823bd2)
  • docgen: ensure pug renders template using html doctype (2f3512b)
  • docgen: html doctype as a default rather than a force (01c921f)

Features

  • docgen: allow slots to be defined by composition API render functions (63f2f35)

4.35.0 (2021-01-26)

Bug Fixes

  • docgen: use the pathResolver from utils (3b77a82)
  • resolve #1042 add basic support for aliases in external src (6d8b5c5)
  • resolve #1042 add basic support for aliases in external src (f4ff297)

Features

  • cli: render tags in a props description (72af302), closes #1045

4.34.4 (2021-01-09)

Bug Fixes

  • cli: replace all instances of sep on windows (7a76b92)

4.34.3 (2021-01-07)

Bug Fixes

  • cli: make achors calsulations work on win (170205d)

4.34.2 (2020-12-05)

Bug Fixes

  • docgen: SFC with lang='tsx' support (bd21931)

4.34.1 (2020-11-27)

Bug Fixes

  • docgen: Vue.extends without comments (bf42ccc), closes #1027

4.34.0 (2020-11-25)

Bug Fixes

  • docgen: allow TypeScript to export a constant (353601e), closes #997

Features

  • cli: render props and bindings properly (5e4c027), closes #1013

4.33.10 (2020-11-20)

Bug Fixes

  • repair HMR in styleguidist (1c3e14d)

4.33.9 (2020-11-16)

Bug Fixes

  • cli: simplify bin for docgen (73a5c58)

4.33.8 (2020-11-16)

Note: Version bump only for package vue-styleguidist

4.33.7 (2020-11-15)

Bug Fixes

  • docgen: allow Mixins from vue-p-decorator (314686a)

4.33.6 (2020-11-05)

Note: Version bump only for package vue-styleguidist

4.33.5 (2020-10-23)

Bug Fixes

  • compiler: only allow max version of each bro (a062a54)
  • compiler: types of buble transform (6134866)

4.33.4 (2020-10-22)

Bug Fixes

  • compiler: error location reporting (34121b5)

4.33.3 (2020-10-20)

Bug Fixes

  • only display the existing API titles (653cc18)

4.33.2 (2020-10-19)

Bug Fixes

  • when there is a template in the script (35ac16d), closes #1000

4.33.1 (2020-10-14)

Bug Fixes

  • docgen: allow as const in default (d3f070d)
  • hint user when wrong version of vue installed (b1af242)

4.33.0 (2020-10-12)

Bug Fixes

  • vue 3 resolving of dist version (264adc3), closes #989

Features

  • docgen: parse emits option from vue 3 (0469224), closes #965

4.32.4 (2020-09-24)

Bug Fixes

  • docgen: allow base indent in pug templates (0950074), closes #979
  • style of unlinked looked like link (1295795), closes #971

4.32.3 (2020-09-14)

Bug Fixes

  • no undefined consts (9e28ebf)
  • remove warning on arguments (description req) (0aa01cd)
  • warning on SectionHeader (1aaf4ee)

4.32.2 (2020-09-10)

Bug Fixes

  • update react-styleguidist and merge conflicts (ba1c341)

4.32.1 (2020-09-08)

Note: Version bump only for package vue-styleguidist

4.32.0 (2020-09-08)

Bug Fixes

  • parsing of validator with a function ref (17472c3), closes #954
  • use the footer somewhere else than in example (9a802c8)

Features

  • extract footer from styleguidist for custom (907271f), closes #935

4.31.2 (2020-08-23)

Note: Version bump only for package vue-styleguidist

4.31.1 (2020-08-20)

Bug Fixes

  • docgen: keep comments in the template in prod (b9e4a89), closes #942
  • cypress tetss failing using previewAsync (62c7716)

4.31.0 (2020-08-15)

Bug Fixes

  • node types incompatible with typescript (28e9f68)

Features

  • docgen: allow destructured children in func (1f9d9b6)
  • docgen: undetecteable slots definition (be867bd)

4.24.1 (2020-06-05)

Bug Fixes

4.24.0 (2020-05-28)

Bug Fixes

  • adjust structure of examples (b80a86c)
  • classname and style were ignored (563b313)

4.30.0 (2020-08-08)

Bug Fixes

  • add js changes in config (bf9880d)
  • slot handler with vue 3 (cec6a54)

Features

  • export config types to help configure (0b44fc6)
  • docgen: make props detector work [WIP] (886d222)
  • figure out the move to vue 3 [WIP] (30ab312)

4.29.1 (2020-07-30)

Note: Version bump only for package vue-styleguidist

4.29.0 (2020-07-28)

Features

  • cli: add edit on github button for readme (298bb68)
  • cli: update handling of subcomponents (7d6f0ae)

4.28.1 (2020-07-27)

Bug Fixes

  • delegated component exports (046f96b)

4.28.0 (2020-07-21)

Bug Fixes

  • docgen: priority to documented values (696bd87)

Features

  • docgen: detect values in validator (8d681a6)

4.23.3 (2020-05-20)

Bug Fixes

  • dependency update for security (e227276)
  • utils: protect docgen-cli when in SSG (af269f6), closes #876

4.23.2 (2020-05-18)

Bug Fixes

  • protect async config against parsing error (95c6c09)

4.23.1 (2020-05-15)

Bug Fixes

  • only collapse subcomponents when > 3 (76b4331)

4.23.0 (2020-05-15)

Bug Fixes

Features

  • docgen: allow to have more than 1 values tag (3e84005)

4.22.3 (2020-05-12)

Bug Fixes

4.22.2 (2020-05-12)

Bug Fixes

  • docgen: error when parsing default prop (1fe3dfe)

4.22.1 (2020-05-12)

Bug Fixes

  • docgen: object Methods should return regular functions (79a7fa2)
  • allow default example with custom format (7ac7f57)
  • only display warning when file exists (cfe1f9f)
  • protect editor for null code (8c428a4)

4.22.0 (2020-05-11)

Bug Fixes

  • avoid error when multiple return in a default (3e4c53d)
  • docgen: correctly extract default values (349ad81)

Features

  • allow for config to be an async function (fb16a67)

4.21.0 (2020-05-09)

Features

  • docgen: allow to force events definitions (#854) (7a2105c)

4.20.0 (2020-05-06)

Bug Fixes

  • loader: use emit error to thow parsing errors (8978f54)

Features

  • docgen: make values work for class type (c003176)
  • docgen: record @type values (452ccb5)
  • docgen: resolve values in as types (7648a4e)
  • add vue docgen simple laoder (6d7e8f4)

4.19.5 (2020-05-02)

4.19.4 (2020-05-01)

Bug Fixes

  • plugin: use a custom loader to deal with docs (57abe6e)

4.19.3 (2020-04-30)

Bug Fixes

  • plugin: update null-loader + avoid conflicts (07f6a98)

4.19.2 (2020-04-29)

Bug Fixes

  • docgen: allow functional render slots (2b36e38), closes #837
  • docgen: scoped slots bindings can spread (d0a939c), closes #833
  • show - instead of undefined for untyped props (f5a3e82), closes #831

4.19.1 (2020-04-28)

4.19.0 (2020-04-24)

Bug Fixes

  • tag titles are no longer filtered out (2a91b3e)
  • docgen: accept named typescript exports (b256b17), closes #813

Features

  • docgen: deal with index as filename (61d28f5)

4.18.0 (2020-04-17)

Bug Fixes

  • make types work better (60c2d32)
  • rendering of composed types (86eb6bd)
  • reset styleguide changes (01407b1)
  • docgen: fix ts array, intersection type print (4ca38bf)

Features

  • allow change padding of prism based editor (d09b546)
  • render complex types properly (a756455)
  • docgen: extract type values properly (6ffd571)
  • use pug-loader options to fuel docgen (d2103fe)
  • docgen: accept pug options for the template (c318521)

4.17.0 (2020-04-12)

Bug Fixes

  • adapt style of sub-component (a58f99a)
  • remove the word "of" for sub-components (a9f8a30)

Features

  • enable indpdt HMR on sub-components (3626933)

4.16.0 (2020-04-09)

Features

4.15.2 (2020-03-31)

Bug Fixes

  • allow ignoreWithoutExamples to work with docs (f5bbc41)

4.15.1 (2020-03-30)

Bug Fixes

  • default example parser with alias (361051c), closes #806
  • docgen: allow single slots to not documented (34381d1)
  • proper highlihght for pseudo JSX (ed6e16f)

4.15.0 (2020-03-29)

Bug Fixes

Features

4.14.0 (2020-03-18)

Bug Fixes

  • allow webpackConfig functions to return alias (5a6b6a3), closes #793
  • make interface for codetabbutton exported (ccd52d8)
  • docs: Correct netlify build command (92dc3be)

Features

  • expose typescript types for theming (3110fb5)

4.13.1 (2020-03-03)

Bug Fixes

  • docgen: export iev var names (c02268b)
  • docgen: handlers expressions with multiline (8e7c66c), closes #772
  • an SFC example can contain JSX (deb2dc7)
  • multiple exports in parse export default (7bb82dd)
  • sort docs when all promises are resolved (dbaa82e)

4.13.0 (2020-03-02)

Bug Fixes

  • avoid systematic verbose (d43c6b0)
  • use logger instead on console (01ac6dc)

Features

  • allow mutiple extra example files (d06283b)

4.12.2 (2020-03-02)

Bug Fixes

  • allow examples start with < & pure template (3860129)
  • avoid progress bar when verbose (75f77d0)
  • bring back the full power of verbose option (210bae2)
  • plugin: pass cli options down to vsg (6765aee), closes #771
  • hot reload default examples (295cfe5)

4.12.1 (2020-02-26)

Bug Fixes

  • remove annoying warning about double use (1dce586)

4.12.0 (2020-02-25)

Bug Fixes

  • docgen: take mixin order into account (626337e), closes #761
  • pre classname warning (b80f97a)

Features

  • docgen: methods returned by other methods (95e648c), closes #765
  • allow to ignore some example file lookup (7104271)
  • detect when example file loaded twice (e4b1a48)

4.11.0 (2020-02-22)

Bug Fixes

  • only show required props on default examples (0f6bc11)

Features

  • give default examples a variable geometry (535e347)

4.10.1 (2020-02-17)

Bug Fixes

  • update Prism theming & docs (70514b9)

4.10.0 (2020-02-17)

Features

  • allow usage of prism themes (921dbd5)

Reverts

  • Revert "refactor: avoid converting events and slots" (d8e4d4d)

4.9.1 (2020-02-16)

Bug Fixes

  • create-server bis for csb (0768c51)
  • update create-server for codesandbox (4906894)

4.9.0 (2020-02-16)

Bug Fixes

  • make origin column smaller (4b7027e)

4.8.1 (2020-02-13)

Bug Fixes

  • protect slots in if statements (1d3d29e), closes #753

4.8.0 (2020-02-12)

4.27.1 (2020-07-19)

Bug Fixes

  • docgen: allow export - as - from "-" (f7ac47c), closes #911

4.27.0 (2020-07-17)

Bug Fixes

  • cli: docgen-cli does not require prettierrc (a12bc82), closes #914

Features

  • cli: resolve prettier config for MD gen (0c04a73)
  • docgen: resolve dynamic mixins (0dbe049)

4.26.3 (2020-07-16)

Note: Version bump only for package vue-styleguidist

4.26.2 (2020-07-14)

Note: Version bump only for package vue-styleguidist

4.26.1 (2020-06-29)

Bug Fixes

  • use globby again for kickstarting chokidar (3e79e0d)

4.26.0 (2020-06-29)

Bug Fixes

  • compile issue linked to progress bar fix (5c55eaf)
  • progressbar assumed custom webpack (96e28e6), closes #903

Features

4.25.0 (2020-06-19)

Bug Fixes

Features

  • docgen: allow other forms of validation (dd2400c)
  • 🎸 Add support for html language in examples (77e225a)

4.24.3 (2020-06-16)

Note: Version bump only for package vue-styleguidist

4.24.2 (2020-06-12)

Bug Fixes

  • cli: allow partial templates (62f00b6)
  • cli: refresh when updating markdown files (2c3c502), closes #885
  • node types incompatible with typescript (28e9f68)

4.24.1 (2020-06-05)

Bug Fixes

4.24.0 (2020-05-28)

Bug Fixes

  • adjust structure of examples (b80a86c)
  • classname and style were ignored (563b313)
  • docgen: priority to documented values (696bd87)

Features

  • docgen: detect values in validator (8d681a6)

4.23.3 (2020-05-20)

Bug Fixes

  • dependency update for security (e227276)
  • utils: protect docgen-cli when in SSG (af269f6), closes #876

4.23.2 (2020-05-18)

Bug Fixes

  • protect async config against parsing error (95c6c09)

4.23.1 (2020-05-15)

Bug Fixes

  • only collapse subcomponents when > 3 (76b4331)

4.23.0 (2020-05-15)

Bug Fixes

Features

  • docgen: allow to have more than 1 values tag (3e84005)

4.22.3 (2020-05-12)

Bug Fixes

4.22.2 (2020-05-12)

Bug Fixes

  • docgen: error when parsing default prop (1fe3dfe)

4.22.1 (2020-05-12)

Bug Fixes

  • docgen: correctly extract default values (349ad81)
  • allow default example with custom format (7ac7f57)
  • avoid error when multiple return in a default (3e4c53d)
  • only display warning when file exists (cfe1f9f)
  • protect editor for null code (8c428a4)
  • docgen: object Methods should return regular functions (79a7fa2)

4.22.0 (2020-05-11)

Features

  • allow for config to be an async function (fb16a67)

4.21.0 (2020-05-09)

Features

  • docgen: allow to force events definitions (#854) (7a2105c)

4.20.0 (2020-05-06)

Bug Fixes

  • loader: use emit error to thow parsing errors (8978f54)

Features

  • add vue docgen simple laoder (6d7e8f4)
  • docgen: make values work for class type (c003176)
  • docgen: record @type values (452ccb5)
  • docgen: resolve values in as types (7648a4e)

4.19.5 (2020-05-02)

Note: Version bump only for package vue-styleguidist

4.19.4 (2020-05-01)

Bug Fixes

  • plugin: use a custom loader to deal with docs (57abe6e)

4.19.3 (2020-04-30)

Bug Fixes

  • plugin: update null-loader + avoid conflicts (07f6a98)

4.19.2 (2020-04-29)

Bug Fixes

  • show - instead of undefined for untyped props (f5a3e82), closes #831
  • docgen: allow functional render slots (2b36e38), closes #837
  • docgen: scoped slots bindings can spread (d0a939c), closes #833

4.19.1 (2020-04-28)

Note: Version bump only for package vue-styleguidist

4.19.0 (2020-04-24)

Bug Fixes

  • docgen: accept named typescript exports (b256b17), closes #813
  • tag titles are no longer filtered out (2a91b3e)

Features

  • docgen: deal with index as filename (61d28f5)

4.18.0 (2020-04-17)

Bug Fixes

  • docgen: fix ts array, intersection type print (4ca38bf)
  • rendering of composed types (86eb6bd)

Features

  • docgen: extract type values properly (6ffd571)
  • allow change padding of prism based editor (d09b546)
  • render complex types properly (a756455)

4.17.0 (2020-04-12)

Bug Fixes

  • adapt style of sub-component (a58f99a)
  • remove the word "of" for sub-components (a9f8a30)

Features

  • enable indpdt HMR on sub-components (3626933)

4.16.0 (2020-04-09)

Features

4.15.2 (2020-03-31)

Bug Fixes

  • allow ignoreWithoutExamples to work with docs (f5bbc41)

4.15.1 (2020-03-30)

Bug Fixes

  • docgen: allow single slots to not documented (34381d1)
  • default example parser with alias (361051c), closes #806
  • proper highlihght for pseudo JSX (ed6e16f)

4.15.0 (2020-03-29)

Bug Fixes

Features

4.14.0 (2020-03-18)

Bug Fixes

  • docs: Correct netlify build command (92dc3be)
  • allow webpackConfig functions to return alias (5a6b6a3), closes #793
  • make interface for codetabbutton exported (ccd52d8)

Features

  • expose typescript types for theming (3110fb5)

4.13.1 (2020-03-03)

Bug Fixes

  • an SFC example can contain JSX (deb2dc7)
  • multiple exports in parse export default (7bb82dd)
  • sort docs when all promises are resolved (dbaa82e)
  • docgen: export iev var names (c02268b)
  • docgen: handlers expressions with multiline (8e7c66c), closes #772

4.13.0 (2020-03-02)

Bug Fixes

  • avoid systematic verbose (d43c6b0)
  • use logger instead on console (01ac6dc)

Features

  • allow mutiple extra example files (d06283b)

4.12.2 (2020-03-02)

Bug Fixes

  • plugin: pass cli options down to vsg (6765aee), closes #771
  • allow examples start with < & pure template (3860129)
  • avoid progress bar when verbose (75f77d0)
  • bring back the full power of verbose option (210bae2)
  • hot reload default examples (295cfe5)

4.12.1 (2020-02-26)

Bug Fixes

  • remove annoying warning about double use (1dce586)

4.12.0 (2020-02-25)

Bug Fixes

  • pre classname warning (b80f97a)
  • docgen: take mixin order into account (626337e), closes #761

Features

  • allow to ignore some example file lookup (7104271)
  • detect when example file loaded twice (e4b1a48)
  • docgen: methods returned by other methods (95e648c), closes #765

4.11.0 (2020-02-22)

Bug Fixes

  • only show required props on default examples (0f6bc11)

Features

  • give default examples a variable geometry (535e347)

4.10.1 (2020-02-17)

Bug Fixes

  • update Prism theming & docs (70514b9)

4.10.0 (2020-02-17)

Features

  • allow usage of prism themes (921dbd5)

Reverts

  • Revert "refactor: avoid converting events and slots" (d8e4d4d)

4.9.1 (2020-02-16)

Bug Fixes

  • create-server bis for csb (0768c51)
  • update create-server for codesandbox (4906894)

4.9.0 (2020-02-16)

Bug Fixes

  • make origin column smaller (4b7027e)
  • stop rendering bad event properties (26fccd9)

Features

  • add displayOrigins to vue-cli-ui (df871db)
  • origin column on props event methods & slots (8b0650f)

4.8.1 (2020-02-13)

Bug Fixes

  • protect slots in if statements (1d3d29e), closes #753

4.8.0 (2020-02-12)

Bug Fixes

  • docgen: protect empty comments before slots (6484a10), closes #749

Features

4.7.7 (2020-02-10)

Bug Fixes

  • import of named mixins failing (185fb22)
  • docgen: use webpack modules when resolving paths (6b5b87f), closes #743

4.7.6 (2020-01-23)

Bug Fixes

4.7.5 (2020-01-23)

Bug Fixes

  • docgen: filter components more clearly (09b15e9), closes #735

4.7.4 (2020-01-22)

Bug Fixes

  • docgen: allow multi line root comment (c6eacf7)
  • docgen: docs only vue components (fcc28f6), closes #731
  • docgen: make events parsed in template (e361bef)

4.7.3 (2020-01-21)

Bug Fixes

  • Revert "fix: avoid cors issue on codesandbox" (20696ad)
  • Revert "fix: make library compatible with codesandbox" (ed32d73)

4.7.2 (2020-01-20)

Bug Fixes

  • avoid cors issue on codesandbox (26450b2)

4.7.1 (2020-01-20)

Bug Fixes

  • make library compatible with codesandbox (c4b531d)

4.7.0 (2020-01-20)

Features

4.6.1 (2020-01-19)

Bug Fixes

  • call to ast-types builder (071b067)
  • theme and styles as files (0d33fe0)

4.6.0 (2020-01-19)

Bug Fixes

  • parse should export default cmp if available (753dea4)

Features

4.5.2 (2020-01-17)

Bug Fixes

4.5.1 (2020-01-16)

Bug Fixes

4.5.0 (2020-01-15)

Bug Fixes

  • typings automated template (711b14b)

Features

  • update rsg with new theming (af0ceb2)

4.4.3 (2020-01-11)

Bug Fixes

  • new Vue compatible with live require (f3f68a8), closes #702

4.4.2 (2020-01-10)

Bug Fixes

  • resolve immediately exported vars recursively (7b27480)
  • docgen: origin never cleared (0dc4251)

Performance Improvements

  • avoid looking at node_modules in IEV (55e29e3)
  • use await for reading file async (cf254c0)

4.4.1 (2020-01-09)

Bug Fixes

  • collapsible sections tocMode (e5f7bfd)

4.4.0 (2020-01-09)

Bug Fixes

  • resolve conflicts (ff45137)
  • update error management in docgen loader (f23f267)
  • warning when documenting return of a method (0a74e3b)

Features

  • docgen: add vuetify exported component (932e2ec)

4.3.0 (2020-01-08)

Features

  • collapsible sections (43715a7), closes #689
  • docgen: resolve pass through components (07d183f)

4.2.3 (2019-12-23)

Bug Fixes

  • add warning when using editorConfig (b39f6f8)
  • typings of Styleguide (f50d3b5)

4.2.2 (2019-12-18)

Performance Improvements

  • docgen: make sure optional prop are optional (3695ed6)

4.2.1 (2019-12-11)

Bug Fixes

  • update copy-webpack-plugin to 5.1.0 (fa2f13b), closes #675

4.2.0 (2019-12-10)

Features

  • detect model property (1c28167), closes #654
  • docgen: allow to customize validExtends (eb966c5)
  • pass validExtends to styleguide.config.js (c22f7d5)

4.1.2 (2019-12-08)

Note: Version bump only for package vue-styleguidist

4.1.1 (2019-12-05)

Note: Version bump only for package vue-styleguidist

4.1.0 (2019-12-04)

Bug Fixes

Features

  • docgen: multi-components in a file (3790837)

4.0.8 (2019-12-02)

Bug Fixes

  • make sections without examples pre-compile (56d675d)

4.0.7 (2019-12-01)

Bug Fixes

  • docgen: avoid incorrect of getting nested '}' param type (5df05e0)
  • destroy Vue component in Preview when replacing it or unmounting (00b7658)

4.0.6 (2019-11-21)

Bug Fixes

  • plugin: avoid fork-ts success notification (9ac7a09)

4.0.5 (2019-11-20)

Bug Fixes

  • docgen: ensure custom handlers are actually run (7a0ac62)

4.0.4 (2019-11-19)

Bug Fixes

  • docgen: fixed description extraction on non-SFC components (85626fc)

4.0.3 (2019-11-19)

Bug Fixes

4.0.2 (2019-11-18)

Bug Fixes

  • import issue conflicts with babel (f1ac618), closes #635
  • plugin: default custom components (9c45104)

4.0.1 (2019-11-15)

Bug Fixes

  • mixed scoped and non-scoped slots render (4161ff2)
  • plugin: es6 requires fix in plugin (205f7a1)
  • warning when unnamed event param (df587dd)
  • render event types as properties (48fc5e7)
  • docgen: avoid setting exportName to deps (230e1e3)
  • plugin: load styleguidist right (d4c6f6d)
  • section depth needs too be taken (b663f1e)
  • wrongly filtered and typed props array (3495840)
  • avoid double progressBar (e39878e)
  • move the build files to the right folder (9944972), closes #615
  • publish templates with vsg (f8df33f)
  • passing a webpackConfig should prioitize (683f3dc)
  • split compiler & utils - efficient code split (9ef9d06)
  • docgen: make docgen output arrays only (d456c6c)
  • docgen: avoid outputing empty array (51d42bf)
  • publish templates with vsg (f8df33f)

Code Refactoring

  • docgen: make function docgen.parse async (e17680b)
  • docgen: make required always a boolean (03bc88e)

Features

  • review the style of default functions (98ae04c)
  • plugin: better default config for (9a19cc4)
  • make arrow functions default cleaner (f16b424)
  • docgen: refactor bindings (b501f82)
  • use bindings comments in styleguidist (4fb6551)
  • review design of all props output (cc80bd5)
  • use @values tag in props (cb2fc74), closes #345
  • docgen: accept more tags for event params (cc55f58)
  • docgen: add exportName to CompoentDoc (9466105)
  • add option to disable progress bar (6ec4e9d)
  • cli: expose docgen-cli config interfaces (25f0744)
  • add plugin for docgen cli (a545aa5), closes #614
  • add progress bar while compiling (f16b901)
  • emit types for vue-styleguidist (f0af958)
  • cli: use writeStream for better performance (25da08c)
  • cli: use writeStream for better performance (25da08c)
  • emit types for vue-styleguidist (f0af958)
  • use the functional tag in docgen cli (c6f8725)
  • add progress bar while compiling (f16b901)
  • change defaults for codeSplit & simpleEditor (810bf1c)

BREAKING CHANGES

  • docgen: props, events, methods and slots are now all arrays

Co-authored-by: Sébastien D. demsking@gmail.com

  • docgen: required for props is never a string anymore
  • docgen: docgen becomes async, so do all of the handlers
  • change defaults for simpleEditor mean that editorConfig will not work without simpleEditor: false
  • compiler now exports compiler function as default
  • isCodeVueSfc, styleScoper and adaptCreateElement are now their own package

3.26.2 (2019-10-30)

Bug Fixes

  • move the build files to the right folder (9944972), closes #615
  • make sure defaults are there for the plugin (eb9ef4c), closes #615
  • make sure defaults are there for the plugin (00a05ac), closes #615

3.26.1 (2019-10-30)

Bug Fixes

  • passing a webpackConfig should prioitize (683f3dc)
  • split compiler & utils - efficient code split (9ef9d06)
  • docgen: make docgen output arrays only (d456c6c)

Code Refactoring

  • docgen: make function docgen.parse async (e17680b)
  • docgen: make required always a boolean (03bc88e)

Features

  • change defaults for codeSplit & simpleEditor (810bf1c)

BREAKING CHANGES

  • docgen: props, events, methods and slots are now all arrays

Co-authored-by: Sébastien D. demsking@gmail.com

  • docgen: required for props is never a string anymore
  • docgen: docgen becomes async, so do all of the handlers
  • change defaults for simpleEditor mean that editorConfig will not work without simpleEditor: false
  • compiler now exports compiler function as default
  • isCodeVueSfc, styleScoper and adaptCreateElement are now their own package
  • move the build files to the right folder (3b5aea1), closes #615

3.26.0 (2019-10-25)

Bug Fixes

  • docgen: allow for multiple times the same tag (68a0204)
  • tag class for JsDoc tag values (38fdd46)

Features

  • readable css class for JsDoc results (a56f341), closes #602
  • use the functional tag in docgen cli (c6f8725)

3.25.0 (2019-10-15)

Features

  • docgen: add origin to documentation object (31e2fe2), closes #594
  • docgen: allow wrap export in if (5744801)
  • add sponsor button (59c7731)

3.24.2 (2019-09-26)

Bug Fixes

  • docgen: detetct scopedSlots in render() (5e7015d), closes #586

3.24.1 (2019-09-26)

Bug Fixes

  • docgen: allow default to be a method (40ec2ae)

3.24.0 (2019-09-25)

Features

  • vue-docgen-cli if getDestFile should not create md file (55da63e)

3.23.2 (2019-09-24)

Bug Fixes

  • add .vue to extension array in webpack config (65da41b)

3.23.1 (2019-09-20)

Bug Fixes

  • docgen: allow default to be a string key (1fa756f), closes #581
  • extend quoting to methods and props (10e2b3e)

3.23.0 (2019-09-19)

Features

  • compiler: styleScoper deals with deep (ff89890)

3.22.3 (2019-09-12)

Bug Fixes

  • look at statements for description (71969bf)

3.22.2 (2019-08-24)

Bug Fixes

3.22.1 (2019-08-19)

Bug Fixes

  • cli: take cwd param into account (7935956)
  • compiler: avoid conflict, rollup buble+acorn (8c6d23a)
  • if cwd is specified in cmd use to find config (2bf97a1)

3.22.0 (2019-08-19)

Bug Fixes

  • update react styleguidist to fix menu (00ec66a), closes #561
  • update react styleguidist to fix menu (2) (dba9fbf), closes #561

Features

3.21.0 (2019-08-17)

Features

  • add defaultExamples config (52d7d90)

3.20.5 (2019-08-16)

Note: Version bump only for package vue-styleguidist

3.20.4 (2019-08-12)

Bug Fixes

  • watcher looking at md files (536157d)

3.20.3 (2019-08-12)

Bug Fixes

  • watch when input md changes (54ff5ac)

3.20.2 (2019-08-11)

Bug Fixes

3.20.1 (2019-08-10)

Bug Fixes

  • avoid defaulting outDir if outFile (8a2a282)
  • avoid the squiggles in main menu (5cc8f93)
  • protect pipe character in templates (0a0befc)

Performance Improvements

  • cache compiled md in single file mode (b867235)

3.20.0 (2019-08-10)

Bug Fixes

Features

  • docgen: expose docs block in dogen-api (4565559)
  • vue-docgen CLI to generate markdown files (b05d7d3)

3.19.5 (2019-08-07)

Bug Fixes

  • EditorWithToolbar naming case (595a077)

Performance Improvements

  • only precompile example for prod (b7aeb58)

3.19.4 (2019-08-06)

Bug Fixes

  • webpack dependency for yarn + storybook (e4c5d2e)

3.19.3 (2019-08-06)

Bug Fixes

  • add webpack peerDependency (16b1fa7)

Performance Improvements

  • remove multiple dependencies (0927e85)

3.19.2 (2019-08-05)

Bug Fixes

  • avoid dependency to webpack (63ee996)

3.19.1 (2019-08-04)

Bug Fixes

  • <docs src=> should not look at script tag (2cef0d4)
  • avoid hmr loop in plugin usage (c6e4adf)

3.19.0 (2019-08-02)

Bug Fixes

  • combining new Vue and imports was impossible (d37359c)
  • default example only appear when no doc (b3b4156)
  • webpackConfig has priority on publicPath (a06c1c6), closes #529
  • wrong propTypes for playgroundAsync (3fffa13)

Features

3.18.1 (2019-07-30)

Bug Fixes

  • editor should update when changing page (35d0c3f)

3.18.0 (2019-07-28)

Bug Fixes

  • async conlict with routing (75424f7)
  • better PropTypes for PlaygroundAsync (3b60e3e)

Features

  • add copyCodeButton option (90767af)

3.17.2 (2019-07-26)

Bug Fixes

  • make codeSplit comptible with jsxInExamples (83c0bf6)

3.17.1 (2019-07-26)

Bug Fixes

  • precompile examples when codeSplit (d75f3f4)
  • remove the propTypes error in codeSplit (ea53a14)

Features

  • avoid skipping comps documented inline (6ee0dff)

3.17.0 (2019-07-23)

Bug Fixes

  • make sure code split works with prism (51e7660)
  • docgen: allow document scopedSlots in render (31a7e07), closes #174
  • plugin: custom webpack config (2cf491c)

Features

  • add codeSplit option for compiler (286e2ee)
  • when codeSplit lazy load codemirror editor (6f83989)

3.16.3 (2019-07-19)

Bug Fixes

  • evaluation was failing (467949f)
  • accept multiple style parts (9a6b031)
  • slot scoped parsing (9685ba2)
  • use style normalize sfc component (fcae13c)

Performance Improvements

3.16.2 (2019-07-17)

Bug Fixes

  • compiler: make the jsx spread work vue style (27dd670)
  • make regexp more precise (29ba8b5)
  • use the spread in styleguidist (fd464a8)

Performance Improvements

  • avoid loading pragma without jsx (5b5012b)

3.16.1 (2019-07-16)

Bug Fixes

  • compiler: add normal attributes in attrs (be6de16)
  • allow for new Vue in jsx (45c62c9)

3.16.0 (2019-07-15)

Bug Fixes

  • docgen: allow for v-model in functional components (8884e62), closes #493
  • bump clipboard-copy version (b3c86d9), closes #500
  • rename createElement (429dd96)

Features

  • add Higher order funciton to Compile pragmas (5783eb4)
  • allow compiler to render/compile JSX (5084a39)
  • use styleguidePublicPath in server (bd5e3ec)
  • use the JSX capabilities of compiler (a6db6cb)

3.15.4 (2019-07-07)

Bug Fixes

  • allow importing non component files (5aa59a6), closes #436
  • transform error into warning when NOENT (296e1cd)
  • docgen: avoid parse files that are'nt potential components (4b1e43b), closes #436
  • docgen: resolve es6 modules properly (1b4eb0a), closes #478

3.15.3 (2019-07-02)

Bug Fixes

  • codemirror: allow for mulitple words in cm themes (6168883), closes #480
  • docgen: make aliases only path parts instead of letters (b83e235), closes #478

3.15.2 (2019-07-02)

Bug Fixes

  • add simple bindings detection (31a3fca)
  • make (Vue as VueConstructor<Vue>) resolved (b7ed624)
  • render default value empty string (f41869d)
  • docgen: adapt method handler to default params (4f67f4e), closes #476
  • docgen: make v-bind have a separate treatment (cee2a9b), closes #469

3.15.1 (2019-06-27)

Bug Fixes

  • make sure imported variables are declared (bc50ab1)
  • compiler: make sure files with the same name wont conflict (98a1b76), closes #471

3.15.0 (2019-06-19)

Bug Fixes

  • docgen: fix template parsing expressions (56a2e05)

Features

  • docgen: add external proptypes parsing for docgen (eaa4748), closes #465
  • docgen: support ts prop types (c57c243), closes #413

3.14.5 (2019-06-14)

Bug Fixes

  • docgen: fixed multiple use of same event needing desc (329f66a), closes #459

3.14.4 (2019-06-14)

Bug Fixes

  • update dependencies to re-enable HMR (860e3bc)
  • compiler: re-enable compilation in vue SFC (5bb99c3), closes #456
  • docgen: get slot and scoped slot description in render without JSX (33086cf)

3.14.3 (2019-06-10)

Bug Fixes

  • reorder aliases to allow Styleguide overrides (9195772)

3.14.2 (2019-06-06)

Bug Fixes

  • docgen: make sure v-slot templates are understood too (e9ab6d5)

3.14.1 (2019-06-05)

Bug Fixes

  • docgen: template was used to use slots - sfc was detected (642d875), closes #448

3.14.0 (2019-06-05)

Bug Fixes

  • bring back last version of acorn (1f7ee42)

Features

3.13.10 (2019-06-04)

Bug Fixes

  • detect pure template no script as sfc (e2a0a48)
  • downgrade acorn (40b60cb)
  • re-use the react hmr plugin (2dfc5ad)

3.13.9 (2019-05-29)

Bug Fixes

  • preview: fix style scope mismatch (830abf8), closes #437
  • preview: gracefully fail when Vue breaks (1152600), closes #435

3.13.8 (2019-05-29)

Bug Fixes

  • remove useless ignores (043e4cc)
  • editor: make sure when url changes editor is repainted (2dcbaac), closes #404

3.13.7 (2019-05-24)

Bug Fixes

  • make hidden components work again (4898fee)

3.13.6 (2019-05-23)

Bug Fixes

  • core: example loader needs to require only on the script (0c045df), closes #421

3.13.5 (2019-05-22)

Bug Fixes

  • Additionally try absolute require.resolve in resolvePathFrom (d1be583)
  • Look through all roots. (3641e4c)
  • core: remove self require in readme (b6408af), closes #407

3.13.4 (2019-05-15)

Bug Fixes

  • docgen: fix node_modules mixins parsing (a4eed84), closes #416
  • make sure node_module resolved path ignored (7a1092a)

3.13.3 (2019-05-14)

Bug Fixes

  • register all cmpnts ins/f only first section (4ae5390), closes #405

3.13.2 (2019-05-13)

Bug Fixes

  • core: fix Preview.js with pure md files (d52feea), closes #411

3.13.1 (2019-04-29)

Bug Fixes

  • cleanComponentName peace with babel 7 (bd8a085)
  • transform import was not working properly (a6df22b)

3.13.0 (2019-04-28)

Features

  • allow components to be registered only locally (#398) (1dd2f1d), closes #2

3.12.0 (2019-04-25)

Bug Fixes

  • docgen: allow for not parsing jsx (8b669f3)
  • docgen: give better error message lines (9b04cc4)

Features

  • docgen: add jsx option to docgen (0ce2a9e)
  • main: add jsxInComponents option (27b4257)
  • plugin: reference jsxInComponents in vueui (a9646ef)

3.11.7 (2019-04-23)

Bug Fixes

  • keep dashes in component names (3ec75ed), closes #391
  • make sure we detect all variables (118f1a8)
  • parse es6 imports with vsg format (8f5ff19)
  • remove getVars blocking imports (1066123)

3.11.6 (2019-04-23)

Bug Fixes

3.11.5 (2019-04-20)

Note: Version bump only for package vue-styleguidist

3.11.4 (2019-04-03)

Bug Fixes

3.11.3 (2019-04-01)

Bug Fixes

  • docgen: protect uresolved events (09d970f), closes #363
  • options: allow two words in displayName (7b72603)
  • plugin: add the whole package to eslintignore (3b13ccf)
  • plugin: issue with babel (afbf21a)
  • safety: update css-loader (0b074b8)

3.11.2 (2019-03-28)

Note: Version bump only for package vue-styleguidist

3.11.1 (2019-03-28)

Bug Fixes

3.11.0 (2019-03-26)

Features

  • core: update react styleguidist to 9.0.4 (#344) (1ec6e64)

3.10.2 (2019-03-22)

Bug Fixes

  • plugin/ui: mountPointId link was wrong (#348) (5d79ebb)

Performance Improvements

  • esprima: get rid of esprima heavy loader (#347) (552ba14)