Skip to content

Latest commit

 

History

History
142 lines (94 loc) · 2.41 KB

README.md

File metadata and controls

142 lines (94 loc) · 2.41 KB

QuestDB Documentation

Uses Docusaurus.

Quick start

First, clone & enter the repo directory:

git clone [email protected]:questdb/documentation.git
cd documentation

Next, install dependencies:

yarn
yarn start

This command starts a local development server and open up a browser window.

Most changes are reflected live without having to restart the server.

Contributing

You'll need to sign a quick CLA.

Pretty standard, check it out.

This is done on PR creation.

Creating PRs

First create a new branch.

Locally, ensure your changes look good.

Then push your branch to GitHub and create a PR.

We'll review the PR and generate a preview build.

A QuestDB member must add the preview label to your PR to deploy a preview build.

Once it looks good, we'll merge!

Enhancements, bugs, typos

We'd love your help!

Raise a GH issue or tackle a PR.

Syntax

Math Expressions

Use LaTeX-style math between $ for inline or $$ for block equations:

$$
text
Inline equation: $f(x) = x^2$
Block equation:
$$
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
$$

Mermaid Diagrams

Create diagrams using Mermaid syntax in code blocks:

graph TD
A[Start] --> B{Is it?}
B -- Yes --> C[OK]
C --> D[Rethink]
D --> B
B -- No --> E[End]
Loading

Syntax

Syntax highlighting for many languages, including QuestDB SQL:

questdb-sql
SELECT
FROM trades
WHERE timestamp > dateadd('d', -1, now())
SAMPLE BY 1h;

Admonitions

Use special callouts for important information:

:::note
This is a note
:::

:::tip
This is a tip
:::

:::info
This is info
:::

:::warning
This is a warning
:::

:::danger
This is a danger warning
:::

Components

Special React components available:

  • <RemoteRepoExample />: Include code examples from other QuestDB repos
  • <TabItem />: Create tabbed content sections
  • <Tabs />: Container for tab items

See examples in the documentation source files.

Linting

The coding style rules are defined by Prettier and enforced by Eslint

On top of this, we follow the rules set by the JavaScript Standard Style.

You do not need to run the linting task manually, Webpack will take care of that for you.