The documentation for SurrealDB, built using Astro.
If you want to contribute, then please read the contributing guidelines.
Visit surrealdb.com/docs to get started with SurrealDB.
Please see our contributing guidelines.
We have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.
To get started with contributing to the SurrealDB documentation, first install the required packages using the following command.
This project uses Bun as our package manager. If you haven't installed Bun yet, then please see the installation guide for your operating system. It also requires Node.js v20.0.0 or higher.
bun i
The following command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
bun dev
The following command builds and generates static content into the build
directory, and can then be served using any static contents hosting service.
bun run build
To contribute to the documentation, most of your changes will be made to the src/content
directory. Each section of the documentation has its own subdirectory, and each page is an MDX file.
src/
assets/
components/
content/
doc-surrealdb/
doc-surrealql/
doc-surrealist/
...
layouts/
pages/
styles/
util/
To ensure the documentation is consistent and follows our style guide, we use make qc
to check for linting errors. You can also use make qa
to automatically fix most of the errors.
Here are the commands for some of the common commands you may need to use.
make install
- Install dependencies, first time or when they changemake dev
- Run a development servermake build
- Build the websitemake preview
- Preview a build you mademake qc
- Check code quality (fmt + lint)make qa
- Apply safe code quality suggestionsmake qau
- Apply (un)safe code quality suggestions