This is modified from gatsby-default-starter
.
Support some features I required for lots of my markdown key note files.
-
$\LaTeX$ (with$\KaTeX$ andgatsby-remark-mathjax
, no server rendering thougth) - Graphviz (via
gatsby-transformer-graphviz
) - Using
Typography.js
Themes (https://kyleamathews.github.io/typography.js/) - Code Highlight (
.md
viagatsby-remark-vscode
,.mdx
viaprimjs
) - GeoGeBra Component to load and show GeoGeBra graphic much faster than iframe.
- A simple filter to find the markdown pages by keyword. It's important for ppl like me who got tons of markdown files as notes.
Demo Site : https://markbook.netlify.com
https://github.com/RintarouTW/gatsby-markbook
- Fork this repository (https://github.com/RintarouTW/gatsby-markbook) to your own account.
- Goto https://app.netlify.com/ and click on the
New Site from Git
button. - Choose your forked respository and deploy it. (All default setting is good. nothing to change.)
- Wait for 2min and 32 seconds, your site would be alive just like my demo site.
You can see this as another gatsby starter project with the features listed above, so u don't need to start from scratch.
npm install -g gatsby-cli
gatsby new gatsby-markbook https://github.com/RintarouTW/gatsby-markbook.git
# It is even better to use the forked repository on your account.
cd gatsby-markbook
gatsby develop
# or production build
gatsby build
gatsby serve
- Browse http://localhost:8000/
- Click on Test page (which is
src/pages/Test.md
) - Check
src/pages/Test.md
for the usage example for$\LaTeX$ , Graphviz, code highlight and more. - Put your
.md
files tosrc/pages/
and they would be presented right away.
If you had your Netlify deployed on the forked repository, any time you add/modify .md
files to src/pages/
, commit and push, Netlify will get notified, update and publish automatically. So, push your commit means publish to Netlify automatically. 100% Focus on the content writing feels really good.
Enjoy it.