This repository contains Gatsby code to generate the diarly.app website
Install dependencies by running following command:
npm install
To run locally use following command:
gatsby develop
Then, go to localhost:8000
to view the site. Updates automatically.
To clean the local cache (useful to refresh images), run:
gatsby clean
When you are ready just push to the master
branch. Automation will do the rest.
When starting to work create separate branch. Once all the changes are done code you can merged that branch into master
When adding new article, file name will be used as url, so make sure it's got no space and is lower cased. File name should end with .md
, or .mdx
if icons or other components are needed.
- Import icon after metadata:
import { Icon } from '../components/icons/icon.js'
- Get the icon names from icondata.js (should be the same as previously)
- Add:
<Icon icon="picture" size="20" />
![Image title when can not load](./path-to-file.gif)
Use gifs when something is complicated to explain. Sentences should be relatively short and easy to comprehend.
Read more about Diarly's persona.
Gif creator: getkap.co
Feel free to improve this documentation 👍