netdata / blog

Netdata's Blog!
https://blog.netdata.cloud
MIT License
6 stars 3 forks source link
infrastructure-monitoring monitoring netdata troubleshooting

Website

This website is built using Docusaurus 2, a modern static website generator.

Create Blog Post

  1. Create a branch for your post.
  2. In your branch create a file like blog/2022-01-01-my-blog-slug.md or (better since can add images in folder alongside the post) blog/2022-01-01-my-blog-slug/index.md (so blog/<yyyy-mm-dd>-<url-slug-you-want>.md or blog/<yyyy-mm-dd>-<url-slug-you-want>/index.md).
  3. Add frontmater metadata at top of post (use an existing post as an example or starting point). Add yourself to /blog/authors.yml if needed.
  4. Create your post in markdown, or .mdx like this one if need to embed a YouTube video or do anything else a bit more fancy.
  5. Create a PR from your branch into master (this will trigger a deployment preview).

Tips

Installation

$ yarn

or

$ npm install

Local Development

$ yarn start

or

$ npm run start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

$ yarn build

or

$ npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Deployment is automated by Netlify. All PR's to master will trigger a deployment preview in Netlify which will be added to the PR.