This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
UnitsML.org is the official website for the UnitsML project — an authoritative mechanism for encoding scientific units of measure. The site is built with VitePress, deployed to GitHub Pages.
Content is authored in Markdown (.md files). Blog posts can optionally use AsciiDoc by adding asciidoc: true to frontmatter (a Vite plugin converts the body via asciidoctor.js).
# Install dependencies
npm install
# Local dev server (hot reload)
npm run dev
# Production build
npm run build
# Preview production build locally
npm run preview- VitePress static site generator with custom theme extending the default VitePress theme.
- Brand colors: navy
#2d2c69, teal#30dfc0, blue#57a0fe— defined in.vitepress/theme/custom.css. - Custom Vue components in
.vitepress/theme/components/:HomePage.vue— landing page with hero, stats, ecosystem diagram, how-it-works steps, software cards, features, schema CTAEcosystemDiagram.vue— interactive SVG diagram showing UnitsML components and relationshipsTimelineSection.vue— collapsible history timeline (1998–2022) with people and organizationsPeopleGrid.vue— contributor cards with roles, affiliations, and erasFAQAccordion.vue— grouped FAQ with collapsible accordion (General, Integration, UnitsDB)BlogIndex.vue— blog listing with card layoutBlogByline.vue— author/date byline for blog posts
- Data layer in
.vitepress/data/projects.ts— software project definitions used by HomePage and Software page. - Blog post loader in
.vitepress/posts.data.ts— uses VitePresscreateContentLoaderto indexblog/*.md. - AsciiDoc plugin in
.vitepress/plugins/asciidoc.ts— Vite plugin that converts.mdfiles withasciidoc: truefrontmatter through asciidoctor.js. - Public assets in
public/— favicons, logos (symbol.svg,logo-text.svg),ref-docs/(PDFs).
.github/workflows/build_deploy.yml— Node 24 + VitePress build, deploys to GitHub Pages on push tomain..github/workflows/links.yml— lychee link checker against the built site.lychee.toml— link checker configuration with exclusions.
index.md— Home page (uses<HomePage />component)about.md— Rich about page with ecosystem diagram, governance, timeline, people grid, organizationsfaq.md— FAQ with accordion componentprivacy.md,tos.md— standalone pagesbrand.md— Brand & press assets page (logos inpublic/brand/, brand colors, usage guidelines)software/index.md— Software listing with ecosystem diagram and project cardssoftware/schemas.md,software/unitsdb.md,software/unitsml-ruby.md— individual software pagesspecs/guidelines.md— specifications pageblog/index.md— Blog listing (uses<BlogIndex />component)blog/*.md— individual blog posts (frontmatter: title, date, authors, description)