Follow the below steps for kickstarting your app.
/my-package/|-- source| |-- index.md| |-- getting-started.md| -- package.json| -- gatsby-config.js
This will install react
, react-dom
, gatsby
, reactstrap
and our theme.
npx install-peerdeps @availity/gatsby-theme-docs
Your package.json
should mirror the below when you are finished.
{"private": true,"name": "site","version": "2.1.9","license": "MIT","scripts": {"build": "gatsby build","build:deploy": "gatsby build --prefix-paths","develop": "gatsby develop","clean": "gatsby clean"},"dependencies": {"@availity/gatsby-theme-docs": "^1.2.6","gatsby": "^2.13.83","react": "^16.9.0","react-dom": "^16.9.0","reactstrap": "^8.0.1"}}
gatsby-config.js
)// default theme optionsconst themeOptions = require('@availity/gatsby-theme-docs/theme-options');module.exports = {__experimentalThemes: [{resolve: '@availity/gatsby-theme-docs',options: {...themeOptions,root: __dirname,subtitle: 'My Docs Site',description: 'Documentation for This Repo',gitRepo: '<site>/<user>/<repo-name>',gitType: 'github, bitbucket, or gitlab'sidebarCategories: {null: ['index', 'quick-start'],},},},],};
index.md
---title: Introductionsummary: This is my first Gatsby Docs Site---This is only a test
getting-started.mdx
---title: Getting Startedsummary: Look I can write React in here---import { Button } from 'reactstrap';<Button color="primary">Click Me</Button>
npm run develop