created:1/14/2022
updated:1/14/2022
Quick Start
component-controls provides migration compatibility for many of the documentation features in
docz
.a migration example can be found here: source
yarn add gatsby @component-controls/gatsby-theme-stories
By default, the docz configurration file is kept in the project main folder, while component-controls uses a
.config
sub-folder by default.gatsby-config.js
module.exports = {plugins: [{resolve: '@component-controls/gatsby-theme-stories',options: {configPath: '.',},},],};
Next, you should add the gatsby develop and gatsby build scripts to the project's
package.json
package.json
"scripts": {//component-controls scripts"build-docs": "gatsby clean && gatsby build","start": "gatsby develop -p 9022",//docz original scripts"develop": "docz dev","build": "docz build --dest public","serve": "docz serve"},