Create beautiful api documentation with gatsby and greenboard
Setup your folder and install gatsby, react and react-dom
mkdir my-docs
cd my-docs
yarn init
yarn add gatsby react react-domInstall greenboard
yarn add gatsby-greenboardThen add gatsby-greenboard to your gatsby-config.js.
module.exports = {
plugins: [
{
resolve: "gatsby-greenboard",
options: {},
},
],
}That's it, you can now run your gatsby site using
yarn gatsby developBuild the production files
yarn gatsby build