docs/styleguide.md
These are the guidelines for writing rrweb documentation.
#-level title at the top.##-level headings.# in the heading according to
their nesting depth.Using Quick Start as example:
# Quick Start
...
## Replay
...
## Record
...
## Events
...
### Understanding Events
...
### Custom Events
...
For API references, there are exceptions to this rule.
This repository uses the markdownlint package to enforce consistent
Markdown styling. For the exact rules, see the .markdownlint.yaml file in the root
folder.
There are a few style guidelines that aren't covered by the linter rules:
<!--TODO(erickzhao): make sure this matches with the lint:markdownlint task-->sh instead of cmd in code blocks (due to the syntax highlighter).js and javascript code blocks are linted with
standard-markdown.When adding something to an English doc file, please add a translation if possible, or a placeholder in the respective *.zh-CN.md files.