Skip to content

Odonno/docs.surrealdb.com

This branch is 20 commits behind surrealdb/docs.surrealdb.com:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 21, 2025
1bf7f94 · Mar 21, 2025
Jan 17, 2025
Mar 14, 2025
Sep 17, 2024
Mar 18, 2025
Sep 19, 2024
Jan 29, 2025
Mar 14, 2025
Mar 13, 2025
Mar 21, 2025
Mar 18, 2025
Mar 14, 2025
Mar 18, 2025
Mar 14, 2025
Nov 22, 2024
Mar 14, 2025
Oct 8, 2024
Mar 14, 2025
Jan 30, 2025
Sep 17, 2024

Repository files navigation

SurrealDB Logo

SurrealDB is the ultimate cloud
database for tomorrow's applications

Develop easier.   Build faster.   Scale quicker.


The documentation for SurrealDB, built using Astro.

If you want to contribute, then please read the contributing guidelines.


       

Blog   Github	  LinkedIn   Twitter   Youtube   Dev   Discord   StackOverflow


Getting started with SurrealDB

Visit surrealdb.com/docs to get started with SurrealDB.

Learn SurrealDB

Contributing to the documentation

Please see our contributing guidelines.

Good First Issues

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.

Installation

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 

Development

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

Building

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

Adding a new doc

READ VERY CAREFULLY

When adding a new doc, you MUST update redirect logic
If this does not happen, you'll get endless redirects :D
In: project://aws/viewer-request/index.js#4

File structure

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/ 

Linting

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 change
  • make dev - Run a development server
  • make build - Build the website
  • make preview - Preview a build you made
  • make qc - Check code quality (fmt + lint)
  • make qa - Apply safe code quality suggestions
  • make qau - Apply (un)safe code quality suggestions

About

The documentation for SurrealDB, powered by Docusaurus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MDX 94.7%
  • Astro 3.1%
  • JavaScript 1.0%
  • TypeScript 1.0%
  • Makefile 0.1%
  • SCSS 0.1%