Source for the IBM Granite documentation site at https://www.ibm.com/granite/docs, built with Docusaurus 3 and published via GitHub Pages.
Every merge to main triggers CI, which builds and deploys the site automatically. There is no staging branch or versioning — main is always the live site.
- Node.js 20 or later
npm installnpm startThe site is available at http://localhost:3000/granite/docs/.
npm run buildA production build is written to build/.
- Pages live under
granite/docs/as.mdxfiles. - To add a page: create an
.mdxfile in the right directory, then add it tosidebars.ts. - To update a page: edit the existing
.mdxfile directly.
Each page should have a title and description in its frontmatter:
---
title: "My Page"
description: "What this page covers."
---The following components are available in MDX files:
| Component | Purpose |
|---|---|
<Card title="..." href="..." icon="..."> |
Linked card |
<CardGroup cols={2}> |
Grid container for cards |
<Accordion title="..."> |
Collapsible section |
<AccordionGroup> |
Container for accordions |
For simple callouts, prefer native Docusaurus admonitions:
:::note
This is a note.
:::
:::warning
This is a warning.
:::- Create a branch:
git checkout -b feature/my-change - Make your changes and test locally with
npm start - Open a PR against
main
PRs require at least one maintainer approval and a passing CI build before merging.