Skip to content

Latest commit

Β 

History

History
77 lines (58 loc) Β· 1.73 KB

File metadata and controls

77 lines (58 loc) Β· 1.73 KB

ONQL Documentation

This folder is a Docusaurus 3 site that powers the public ONQL docs.

Run locally

cd docs
npm install
npm start

The dev server runs on http://localhost:3000 with hot reload.

Build for production

npm run build

Static output goes to build/. Drop it on any static host.

Deploy

GitHub Pages

GIT_USER=<your-github-username> npm run deploy

Cloudflare Pages / Netlify / Vercel

Point at the repo, set:

  • Build command: npm run build
  • Build output directory: build
  • Base directory: docs

Folder structure

docs/
β”œβ”€β”€ docs/                  ← markdown content (the actual docs)
β”‚   β”œβ”€β”€ intro.md
β”‚   β”œβ”€β”€ getting-started/
β”‚   β”œβ”€β”€ tour/
β”‚   β”œβ”€β”€ concepts/
β”‚   β”‚   β”œβ”€β”€ protocol/
β”‚   β”‚   β”œβ”€β”€ relationships/
β”‚   β”‚   └── query-execution/
β”‚   β”œβ”€β”€ language/
β”‚   β”‚   β”œβ”€β”€ filters/
β”‚   β”‚   β”œβ”€β”€ projections/
β”‚   β”‚   └── aggregates/
β”‚   β”œβ”€β”€ cookbook/
β”‚   β”œβ”€β”€ reference/
β”‚   β”œβ”€β”€ deployment/
β”‚   └── contributing.md
β”œβ”€β”€ sidebars.js            ← navigation tree
β”œβ”€β”€ docusaurus.config.js   ← site config
β”œβ”€β”€ src/
β”‚   └── css/
β”‚       └── custom.css     ← theme overrides
β”œβ”€β”€ babel.config.js
β”œβ”€β”€ package.json
└── README.md              ← you are here

Contributing

See docs/contributing.md for the guide. TL;DR:

  1. Find or create the right .md file.
  2. Add it to sidebars.js if it's new.
  3. Open a PR.

Every page has an "Edit this page" link that takes you straight to the file on GitHub for one-click typo fixes.