diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index d98f645..a5e08d3 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,9 +1,17 @@ +import type { Theme } from 'vitepress' import DefaultTheme from 'vitepress/theme' import './vars.css' import './overrides.css' import 'uno.css' -export default { - ...DefaultTheme, +const config: Theme = { + extends: DefaultTheme, + enhanceApp({ app }) { + app.config.globalProperties.$spec = { + version: '2.0', + } + }, } + +export default config diff --git a/docs/index.md b/docs/index.md index 360bdc7..31dde45 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,6 +1,6 @@ --- layout: home - +titleTemplate: Token-Oriented Object Notation hero: name: TOON text: Token-Oriented Object Notation diff --git a/docs/public/favicon.ico b/docs/public/favicon.ico index 59180c4..f02b984 100644 Binary files a/docs/public/favicon.ico and b/docs/public/favicon.ico differ diff --git a/docs/public/favicon.svg b/docs/public/favicon.svg index d3d13d1..29afc2c 100644 --- a/docs/public/favicon.svg +++ b/docs/public/favicon.svg @@ -1 +1 @@ - + diff --git a/docs/reference/spec.md b/docs/reference/spec.md index 2638eb2..55721cd 100644 --- a/docs/reference/spec.md +++ b/docs/reference/spec.md @@ -9,7 +9,7 @@ You don't need this page to *use* TOON. It's mainly for implementers and contrib ## Current Version -**Spec v2.0** (2025-11-10) is the current stable version. +**Spec v{{ $spec.version }}** (2025-11-10) is the current stable version. ## Guided Tour of the Spec @@ -127,7 +127,7 @@ Validators should verify: ## Versioning The spec uses semantic versioning (major.minor): -- **Major version** (e.g., v2.0): Breaking changes, incompatible with previous versions +- **Major version** (e.g., v{{ $spec.version }}): Breaking changes, incompatible with previous versions - **Minor version** (e.g., v1.5 → v1.6): Clarifications, additional requirements, or backward-compatible additions See [Appendix D: Document Changelog](https://github.com/toon-format/spec/blob/main/SPEC.md#appendix-d-document-changelog-informative) for detailed version history.