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-dom
Install greenboard
yarn add greenboard
Then add greenboard
to your gatsby-config.js
.
module.exports = {
plugins: [
{
resolve: "greenboard",
options: {},
},
],
}
That's it, you can now run your gatsby site using
yarn gatsby develop
Build the production files
yarn gatsby build