This repository contains the source for the WebSpatial website and its documentation at webspatial.dev/docs. The site is built with Docusaurus and includes Markdown based documentation, example projects and custom React components that power the official WebSpatial docs.
- Node.js 18 or later
- pnpm package manager
Install dependencies and start a local development server:
pnpm install
pnpm startOpen http://localhost:3000 in your browser to preview the site. File changes are hot reloaded.
To create a production build:
pnpm run buildThe generated static site will appear in the build/ directory.
To deploy to GitHub Pages or another static host, run:
pnpm run deploydocs/– Markdown documentationblog/– Blog posts (optional)src/– React components, pages and styles used by the sitestatic/– Static assets served as-isscripts/– Helper scripts (for example syncing docs from the WebSpatial SDK)docusaurus.config.ts– Site configuration
A postinstall hook automatically links a local copy of the WebSpatial SDK if it exists in a sibling directory. This allows the sync-docs script to import additional docs from the SDK repository.
Contributions are welcome! Feel free to open issues or pull requests to improve the documentation or website.