A documentation website for the MetaCall project, built with Docusaurus v3. This repository contains the full documentation source, components, custom MDX, UI enhancements, and CI/CD workflows for automatic preview deployments.
This project requires Node.js ≥ 20 (CI uses Node 22).
npm installOr with CI-friendly clean install:
npm cinpm run dev # Start Docusaurus dev server
npm start # Alias for dev
npm run build # Build static site
npm run serve # Serve build locallynpm run lint # Lint code with ESLint
npm run lint:fix # Lint + fix
npm run format # Check formatting with Prettier
npm run format:fix # Auto-format
npm run clear # Clear Docusaurus cache
npm run swizzle # Swizzle theme components
npm run write-translations
npm run write-heading-idsThis repository uses a GitHub Actions workflow with three jobs:
- Runs on every push to
masterand every PR. - Installs dependencies, lints, formats, injects correct
baseUrl, and builds the site. - Stores the build as an artifact.
- For PRs, a preview is automatically deployed to GitHub Pages under:
https://<owner>.github.io/<repo>/pr-<PR_NUMBER>/
- A sticky PR comment is automatically added with the preview URL.
- When a PR is closed, its preview directory is removed from the
gh-pagesbranch.
We welcome contributions from both internal maintainers and external contributors. Because of GitHub permissions limitations, the preview workflow differs slightly depending on who you are.
You can contribute normally:
- Fork or create a branch directly in the main repo.
- Open a Pull Request to
master. - A preview deployment will automatically appear in your PR.
No additional actions required.
You can still get PR preview deployments, but you must use this workflow:
- Fork the repository.
- Make your changes in your fork.
- Create a Pull Request inside your own fork (fork → fork). This PR will generate its own PR preview site.
- Then create a new Pull Request to the main repository (fork → upstream).
- In that PR, include a link to the PR in your fork.
This allows maintainers to:
- View your exact changes
- Access your preview deployment
- Safely review contributions without requiring additional permissions
- Use
npm run devfor instant hot reload. - If docs are not updating, try:
npm run clear- Follow ESLint + Prettier rules (CI enforces them).
This project is licensed under the Apache License 2.0. You can find the full license text here: ➡️ LICENSE