|
| 1 | +# AI Runway website |
| 2 | + |
| 3 | +This is the source for the AI Runway documentation site published at |
| 4 | +[**kaito-project.github.io/airunway**](https://kaito-project.github.io/airunway/). |
| 5 | +Built with [Docusaurus](https://docusaurus.io/) 3. |
| 6 | + |
| 7 | +## Content layout |
| 8 | + |
| 9 | +The site renders content from two places: |
| 10 | + |
| 11 | +- `/website/src/pages/` — landing page and other React pages |
| 12 | +- `/docs/*.md` (at the repo root) — every documentation page |
| 13 | + |
| 14 | +The docs plugin is configured with `docs.path: '../docs'` so the markdown |
| 15 | +files double as in-repo docs (viewable on GitHub) and as the website's |
| 16 | +content. **Write docs as plain GitHub-Flavored Markdown.** Docusaurus is set |
| 17 | +to `markdown.format: 'detect'`, which means `.md` files are NOT treated as |
| 18 | +MDX — content like `{name}` or `<pod-name>` renders verbatim. If you want |
| 19 | +JSX, rename the file to `.mdx`. |
| 20 | + |
| 21 | +When you add a new doc, also add it to [`sidebars.js`](./sidebars.js). |
| 22 | + |
| 23 | +## Local development |
| 24 | + |
| 25 | +Requires [Bun](https://bun.sh/) (matches the rest of the repo). |
| 26 | + |
| 27 | +```bash |
| 28 | +bun install # one-time |
| 29 | +bun run start # http://localhost:3000/airunway/ with hot reload |
| 30 | +bun run build # what CI runs; must pass before merge |
| 31 | +bun run serve # serve the production build locally on :3000 |
| 32 | +``` |
| 33 | + |
| 34 | +## Deployment |
| 35 | + |
| 36 | +`.github/workflows/deploy-docs.yml` builds the site and publishes it via the |
| 37 | +GitHub Actions Pages flow (`actions/upload-pages-artifact` → |
| 38 | +`actions/deploy-pages`). The site is deployed on every push to `main` on the |
| 39 | +canonical `kaito-project/airunway` repo. Pull requests and forks build the |
| 40 | +site to verify it compiles, but only the canonical repo deploys. |
| 41 | + |
| 42 | +First-time setup (needs a repository admin): **Settings → Pages → Build and |
| 43 | +deployment → Source = "GitHub Actions"**. No `gh-pages` branch is involved — |
| 44 | +the artifact is served directly from the workflow. |
0 commit comments