github doczjs/docz v0.12.4

latest releases: v2.4.0, v2.3.3-alpha.0, v2.3.2-alpha.0...
6 years ago

Changelog

🐞  Bug Fixes

  • docz: remove Children.only (656d8f1)
  • docz: restore scroll on history change (905010e)
  • docz-theme-default: use local vendors (27d04c0)
  • docz-core: data server rewriting files and refac utils (b157060)
  • docz-theme-default: add syntax highlight test for typescript (f8ff2ac)
  • docz-theme-default: inlineCode font size using em (ea3274e)
  • docz-utils: get value from heading recursive (a86a3e1)
  • docz-core: data server rewriting files (66e6248)
  • docz: merge menus and submenus (f8249da)

🚀  Features

  • ordering menu on doczrc (0efb905)
  • create menu based on doczrc property (94b4467)
  • add code sandbox integration (f0cc1cc)
  • docz-core: add --config flag (44dd6cb)
  • docz-theme-default: add link to root route on logo (8252ebf)
  • docz-core: add svgr built-in (1b19340)

CodeSandbox Integration

Now you can open your playground code on Code Sandbox out of the blue:

New config flag

The new --config flag allow you to set the path of your config file

$ docz dev --config ./my-config-file.js

Create and order menu from config

Now you can order the menu and create new links from your config file like this:

// doczrc.js
export default {
  menu: [
    'Home',
    'Components',
    { name: 'Github', href: 'https://github.com/pedronauck/docz' },
  ],
}

And even reorder submenus:

// doczrc.js
export default {
  menu: [
    'Home',
    { name: 'Components', menu: ['Alert', 'Button'] },
    { name: 'Github', href: 'https://github.com/pedronauck/docz' },
  ],
}

Svgr built-in support

If you want to load svg as a component using svgr, now you don't need anymore docz-plugin-svgr. In this new release the support for svgr in built-in on docz-core just using the named import ReactComponent:

import { ReactComponent as MyIcon } from './my-icon.svg'

<MyIcon />

⚠️  Warnings

Don't miss a new docz release

NewReleases is sending notifications on new releases.