A gatsby static site for DevIQ.com.
If you don't have Node, NPM, or Gatsby installed locally, don't panic! We have Development Containers configured in the .devcontainer
folder. These allow you to run your apps in containers locally. You can also use these with Visual Studio Code. You do need to have Docker running in order to use the container.
The Dockerfile starts with a Node image that we need for this repo. It also installs the Gatsby CLI tooling.
If you do want to run this locally and not within a dev container, you will want to have the following installed:
- Gatsby CLI
- Node v.20.10.0 - You can also use nvm and have it download
20.10.0
.
To build locally, install the gatsby command line tools:
npm install -g gatsby-cli@latest-v4
Next, run these commands:
npm install --legacy-peer-deps
gatsby build
gatsby serve
You may also need to run this to clean up local cached files:
gatsby clean
When you're doing active development, run:
gatsby develop
This will build the site and watch the folder for changes, automatically updating as changes are detected.
This project has a .vscode folder checked in. There is a snippet within that folder to make it easier to insert the frontmatter into a new page.
Within VS Code:
- Bring up the Command Palette.
- Search for Snippets: Insert Snippet
- In Workspace Snippets, select the snippet named
deviq-template
.
You can use mermaid-cli to convert Mermaid diagrams to SVG. This is how we create Mermaid graphs with links.
SVG is XML under the covers and can be styled and edited.