gatsby-theme-knownotes
v0.3.0
Published
A Gatsby theme for publishing notes.
Downloads
20
Maintainers
Readme
gatsby-theme-knownotes
A Gatsby theme for publishing knownotes
Setup in your Gatsby project
- Install dependency
yarn add gatsby-theme-knownotes
- Add these to your gatsby-config.js file:
module.exports = {
plugins: [
{
resolve: `gatsby-theme-knownotes`,
options: {
contentPath: path.resolve(__dirname, 'content'),
rootNote: 'readme',
wikiLinkLabelTemplate: '[[{{ refWord }}]]',
getPluginMdx(defaultPluginMdx) {
return defaultPluginMdx
},
},
},
],
}
Add notes to your site by adding
md
ormdx
files incontent
directory, especially you need acontent/readme.md
file if you are using above configs.Start developing your site by running
gatsby develop
. If you are using above configuration, your start url will be 'http://localhost:8000'.