Docusaurus-based documentation site for TagoIO. Content is migrated from https://help.tago.io/portal/en/kb and stored as Markdown with local images and working internal links.
Requirements
- Node.js >= 18
Install and run
npm ci
npm run start- Dev server: http://localhost:3000
Build and preview
npm run build
npm run serveTypecheck
npm run typecheckCode quality (Biome)
npm run biome # check
npm run biome:lint # lint only
npm run biome:format # format only
npm run biome:fix # lint + format (write)- docs/ – Markdown content organized by product areas
- tagoio/
- tagorun/
- tagodeploy/
- tagocore/
- static/ – Static assets
- docs_imagem/ – Local images used by docs (organized by section)
- img/ – Site images (logos, social cards, icons)
- changelog/ – Changelog posts (surfaced via the Blog plugin at /changelog)
- src/ – Docusaurus site code
- components/
- youtube.tsx – YouTube MDX component wrapper
- theme/
- MDXComponents.tsx – Registers custom MDX components (YouTube, Mermaid)
- pages/ – Home and custom pages
- components/
- sidebars.ts – Sidebars and navigation tree
- docusaurus.config.ts – Docusaurus configuration
- .github/workflows/deploy.yml – GitHub Pages deployment workflow
- redirect-mappings.json / url-mappings.json – URL mapping sources
Front matter
---
title: "Page Title"
description: "Short description for SEO and previews"
tags: ["tagoio"]
---Images
- Store under static/docs_imagem/
/ - Reference using absolute paths:

Links
- Prefer relative links within the same area (e.g.,
../services/services-overview) - Cross-area links should use docs paths (e.g.,
/tagoio/widgets/widgets-overview)
Embeds
- YouTube: use the YouTube component registered in MDX:
<YouTube videoId="XXXXXXXXXXX" />
- Mermaid diagrams: use the Mermaid component registered in MDX:
<Mermaid chart={graph LR\n A[Start] --> B{Choice} \n B -->|Yes| C[Do thing] \n B -->|No| D[Stop]} />
- redirect-mappings.json and url-mappings.json provide mapping sources for converting legacy help.tago.io URLs to new docs paths
- Additional automation and helpers live under a local-only infra folder (see AGENTS.md)
GitHub Actions deploys to GitHub Pages on pushes to main
- Workflow: .github/workflows/deploy.yml
- Steps: install → build → upload Pages artifact → deploy
Site URL and base path
- docusaurus.config.ts
- url: https://new-docs.tago-io.com
- baseUrl: "/"
- If deploying under a subpath (https://.github.io//), set baseUrl to "//" before building
Search (Algolia)
- Configured in docusaurus.config.ts
- Update appId, apiKey, and indexName as needed
- npm run start – Start dev server
- npm run build – Build static site to build/
- npm run serve – Serve the static build
- npm run clear – Clear Docusaurus cache
- npm run write-translations – Extract strings for i18n
- npm run write-heading-ids – Generate stable heading IDs
- npm run swizzle – Customize theme components
- npm run typecheck – TypeScript typecheck
- npm run biome – Run Biome checks (lint/format)
- Add or update Markdown files under docs/
- Keep images local and referenced by absolute paths under /docs_imagem
- Validate locally: npm run typecheck, npm run biome, and npm run build
- Do not commit local automation files (infra/ is not tracked in Git)
- MDX component not found: ensure src/theme/MDXComponents.tsx exports the component and paths use the @site alias (e.g.,
@site/src/components/youtube) - Broken links: run link audits via local automation (see AGENTS.md) or search for the path in sidebars.ts and docs/
- Build failures from MD/MDX: normalize headings, code blocks, and links; prefer absolute image paths under /docs_imagem