@pedronauck pedronauck released this Dec 26, 2018 · 3 commits to master since this release

Changelog

🐞  Bug Fixes

  • docz-core: default value for arguments (5644343)
  • docz-core: happypack plugin name (cbf7692)
Assets 2
Dec 26, 2018

@pedronauck pedronauck released this Dec 19, 2018 · 9 commits to master since this release

Changelog

🐞  Bug Fixes

  • docz-core: add react docgen loader inside happypack (4433561)
  • docz-core: close data server when need (6a2b96a)
  • docz-core: escape template string in playground (#529) (5ab2349)
  • docz-core: public folder in dev mode (abb3626)
  • docz-core: webpack dev server log level (1d72539)
  • docz-theme-default: add default value for rgba of polished (dcb74af)
  • docz-utils: add missing dependency for codesandbox (3a51066)
  • docz-utils: escape code for playground (3fc4187)
Assets 2

@pedronauck pedronauck released this Dec 17, 2018 · 20 commits to master since this release

Changelog

🐞  Bug Fixes

  • docz-theme-default: remove overflow from playground wrapper (e007762)
Assets 2

@pedronauck pedronauck released this Dec 17, 2018 · 23 commits to master since this release

Changelog

🐞  Bug Fixes

  • docz-core: react hot loader config for hooks (444cac2)
Assets 2

@pedronauck pedronauck released this Dec 17, 2018 · 29 commits to master since this release

Changelog

🐞  Bug Fixes

  • docz-core: ensure dir for promise logger (6240f21)
Assets 2

@pedronauck pedronauck released this Dec 17, 2018 · 31 commits to master since this release

Changelog

🐞  Bug Fixes

  • docz-core: typescript loader config (01f568e)
Assets 2

@pedronauck pedronauck released this Dec 17, 2018 · 33 commits to master since this release

Changelog

0.13.0 (2018-12-17)

🐞  Bug Fixes

  • docz: ts warning (19ccc09)
  • docz-core: add setMaxListener for chokidar watchers (6053c16)
  • docz-core: log level based on debug argument (507e149)
  • docz-core: node path resolve modules merge (27102fd)
  • docz-core: turn off htmlMinifier when loading from templates (#518) (9cb0e1d)
  • docz-core: use webpack-dev-server instead of webpack-serve (4157e05)

πŸš€Β  Features

  • docz-core: add onCreateWebpackChain hook (70bb242)
  • docz-core: add promise logger using progress-estimator (2797608)
  • docz-core: use NODE_PATH to resolve modules (#516) (cc86f93)
  • docz-theme-default: set max lines before scroll editor (#519) (698261b)

onCreateWebpackChain

Now you can customize the webpack configuration using webpack-chain by modifying it using onCreateWebpackChain inside your doczrc.js or when you're creating your plugin.

import { createPlugin } from 'docz-core'

const plugin = createPlugin({
  onCreateWebpackChain: (config) => {
    /** add your logic here */
  }
})

export default {
  plugins: [plugin],
  onCreateWebpackChain: (config) => {
    /** add your logic here */
  }
}

Resolve modules using NODE_PATH

If you want to resolve modules from some path, now you can set the NODE_PATH env variable that will be used as a path to resolve your imports like in create-react-app. You can set your env variables using .env file or directly on your npm script.

// .env
NODE_PATH="src"

Then you simply import modules resolved from your path:

// before
import { SomeModule } from 'src/resolved/path'

// after
import { SomeModule } from 'resolved/path'

Set editor max line before scrolling

In the previous version of docz, when the editor preview had more than 11 lines of code it was scrolled, this was a fixed number. Now, you can configure with how many lines you want to scroll your editor using the themeConfig.linesToScrollEditor inside your doczrc.js:

export default {
  themeConfig: {
    linesToScrollEditor: 8
  }
}
Assets 2

@pedronauck pedronauck released this Dec 14, 2018 · 53 commits to master since this release

Changelog

🐞  Bug Fixes

  • docz: cycled dependency (5132195)
  • docz-theme-default: link color (21d58fb)
  • docz-theme-default: some fixes on styles (a17e914)
  • docz-theme-default: use theme getter instead of literal obj access (89e1d03)

Add theme default as a dependency

Since this release, now you need to install docz-theme-default together on your project:

$ yarn add docz docz-theme-default --dev
Assets 2

@pedronauck pedronauck released this Dec 13, 2018 · 64 commits to master since this release

Changelog

🐞  Bug Fixes

  • docz-core: correct koa mounting path on windows systems (#491) (6addd32)
  • docz-theme-default: refresh editor after it's mounted (#406) (#506) (c67fa41)
  • edit page button is overlayed by github link (341e03a)
  • upgrade to emotion 10 (thanks to @jtmthf) [#490]
Assets 2