The Sentry documentation is a static site, generated with Gatsby.
You will need [Volta][volta] installed. If you don't have opinions about the process, this will get you going:
# Install Homebrew and everything mentioned above
$ bin/bootstrap
Once you have the required system dependencies:
# Install or update application dependencies
$ make
Now run the development webserver:
$ yarn start
You will now be able to access docs via http://localhost:3000.
volta]: https://volta.sh/
A number of pages exist to provide content within Sentry installations. We refer to this system as the Wizard. These pages are found in Gatsby's wizard
content directory, and are rendered and exported to a JSON file for use within the getsentry/sentry
application.
Each page consists of some wizard-specific frontmatter, as well as a markdown body:
---
name: Platform Name
doc_url: Permalink for this page
type: framework
support_level: production
---
This is my content.
$ yarn start
Documentation is written in Markdown, which is parsed by kramdown.
While the server is running, you can also view the Markdown styleguide
🙏 that MDX v2 fixes this.
MDX has its flaws. When rendering components, any text inside of them is treated as raw text (not markdown). To work around this you can use the <markdown>
tag, but it also has its issues. Generally speaking, put an empty line after the opening tag, and before the closing tag.
// dont do this as parsing will hit weird breakages
<markdown>
foo bar
</markdown>
// do this
<markdown>
foo bar
</markdown>