github doczjs/docz v0.2.7

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

Changelog

  • Add hashRouter option for project configuration #73
  • Add modifyBabelRc option for project configuration (b20c484)

Adding HashRouter

Some services, like Github Pages, turn docz default History API navigation impossible because of some rewrites reason. So, you need to enable navigation via hash. You can do that by modifying your doczrc.js like that:

// doczrc.js
export default {
  hashRouter: true,
}

Modifying default babel without plugins

Until this release was possible to modify custom babel configuration just by creating some plugin. By now is possible to change this just by passing a method on your doczrc.js:

// doczrc.js
export default {
  modifyBabelRc: (babelrc) => {
    /* your logic here */
    return babelrc
  }
}

Don't miss a new docz release

NewReleases is sending notifications on new releases.