The IdeGYM presentation & architecture site — a Docusaurus (TypeScript, classic preset) project. It doubles as a live presentation surface: the hero is an interactive, clickable architecture diagram that drills down from a system overview to per-component pages to the source on GitHub.
Everything here is self-contained — the entire Node toolchain lives in website/;
nothing is added to the repository root.
Published at https://jetbrains-research.github.io/idegym/.
- Node.js >= 20 and npm (the only tools needed).
cd website
npm install # first time only
npm start # dev server with hot reload at http://localhost:3000/idegym/The site is served under the
/idegym/base path in dev and in production, so local URLs look likehttp://localhost:3000/idegym/architecture.
npm run build # outputs static HTML to website/build/ — FAILS on any broken link
npm run serve # serve the built site locally to verifynpm run build is the gate: it throws on broken internal links and bad Markdown links,
so a green build means the navigation is sound.
website/
├── docs/
│ ├── overview/ # concepts, data-flow (the plain-language + lifecycle layers)
│ ├── architecture/ # index.md = ★ interactive diagram, + one page per component
│ ├── deployment.md
│ ├── api.mdx # hub linking the embedded Redoc API specs
│ └── reference/ # the developer reference guides (secondary nav)
├── src/
│ ├── pages/index.tsx # custom landing page
│ └── css/custom.css # JetBrains-orange, dark-mode-first theme
├── static/openapi/ # committed orchestrator.json + server.json (rendered by Redoc)
├── scripts/gen_openapi.py # regenerates the OpenAPI schemas from the FastAPI apps
├── docusaurus.config.ts
└── sidebars.ts
The centerpiece is docs/architecture/index.md. It uses
@docusaurus/theme-mermaid with
click NodeId "url" directives so nodes navigate (drill-down). Two conventions matter:
- Mermaid click URLs include the base path — e.g.
/idegym/architecture/orchestrator. Mermaid emits a raw<a href>that the browser resolves against the domain root, so the/idegym/prefix is required (and works the same in dev and prod). - Markdown / JSX links do not — use
/architecture/orchestrator(or a Docusaurus<Link>); Docusaurus adds the base path and validates the link at build time. - Clickable nodes require
securityLevel: 'loose'(set indocusaurus.config.ts).
docs/api.mdx embeds two OpenAPI specs via redocusaurus.
The committed schemas in static/openapi/ are generated from the live FastAPI routers:
# from the repo root, using the project's Python venv (uv sync first)
python website/scripts/gen_openapi.py website/static/openapiThis rebuilds orchestrator.json and server.json. Commit them when the APIs change.
Pushes to main that touch website/** trigger
.github/workflows/docs.yml, which builds the site and
publishes it via the official actions/deploy-pages flow. Enable it once in the repo
settings: Settings → Pages → Build and deployment → Source = "GitHub Actions".
This workflow is independent of ci.yml / lint.yml / publish.yml and never runs the
Python test matrix.
Built to project well: dark mode by default, large headings, diagrams legible on a beamer.
- Full-screen the browser and confirm dark mode (toggle is top-right).
- Landing (
/) — the one-liner: "GitHub Codespaces for RL training and agent eval, at scale." Click a node in the headline diagram to jump in. /overview/concepts— name the parts in plain language (client, orchestrator, server pod, image, plugin, reward, watcher)./overview/data-flow— walk the lifecycle: define → build → provision → use → evaluate → cleanup. The sequence diagram shows the RL inner loop./architecture— the money slide. Click Orchestrator → show its sub-diagram → click a node to open the source on GitHub. Back, then click Server Pod, then Plugins./api— open the orchestrator Redoc to show the real, generated API surface./deployment— close on how it runs (Kubernetes, Helm, gVisor, snapshots).
Tip: use the browser back button between architecture pages — every diagram node and "view source" link is a real navigation, so the talk is fully click-driven.