Sourcegraph about.sourcegraph.com website
Uses Gatsby for rendering a static site that is built and deployed with Netlify.
Gatsby requires Node.js, and we recommend using yarn for installing packages.
In a terminal, change into the
website directory, and run:
Then to serve the site, you have two options:
To serve the static (built) version of the website (good for final review):
To serve the site using the development server with auto-compiling and page reloading:
Adding a blog post
Add a blog post by creating a new Markdown file in the
blogposts directory. Front matter is used to provide metadata about the post, as well as determining whether the blog post is rendered or not (
The recommended flow for publishing a blog post is:
- Create a PR with the new blog post Markdown file, setting
- Get your PR reviewed and approved
- Once the PR is merged, Netlify will build and deploy the new static site, which takes around 5 minutes.