v0.9.0
What's Changed
Added
- Documentation can now be written in more than one language: name the directories under
docs/after language codes and JAAD builds one site per language, with a switcher in the header beside the theme toggle by @Kasui92 - Added
translationKey, which pairs a page with its translations when their slugs differ, so a language can translate its file and directory names too by @Kasui92 - Added the
uioption, which replaces any of JAAD's own interface strings per locale; a key left out keeps its English default by @Kasui92 - Added the
localesoption, for the rare tree where directory detection guesses wrong by @Kasui92 - Added
label,order,draft,keywords,author,ogImageandlastUpdatedto page frontmatter, each overriding what the file tree or the page body already supplies by @Kasui92 lastUpdatedis shown under the page, formatted for its language by @Kasui92- Localised pages declare
hreflangalternates,x-defaultandog:locale:alternate, and each language gets its own search index andllms.txtby @Kasui92 - Scaffolded projects now arrive with an
AGENTS.mddescribing the project to coding agents, and aCLAUDE.mdthat defers to it by @Kasui92
Changed
- JAAD no longer brings Tailwind with it. The stylesheet is compiled when the package is published, so installing JAAD adds nothing to your
node_modulesand leaves your Vite configuration alone. A project that relied on JAAD providing Tailwind for its own pages now adds it itself, as thesitetemplate does by @Kasui92 - The documentation stylesheet is wrapped in a cascade layer, so a rule you write on a
.docs-*element now wins where it used to lose by @Kasui92 og:localecarries a territory, as Open Graph requires:en_GBrather thanenby @Kasui92- The opening page now respects
draftand frontmatterorder, which changes which URL the sitemap leaves out by @Kasui92 - The
sitetemplate declares its own Tailwind dependency, and the two templates share their common files by @Kasui92
Fixed
- A preset theme reaches pages outside the documentation again; the 404 page and pages built on the exported
Page.astrorendered in the default palette by @Kasui92 - Structured data roots its breadcrumb in the page's own language instead of the default one by @Kasui92
- The table of contents no longer observes every heading twice on first load, nor leaks an observer per navigation by @Kasui92
x-defaultno longer disappears on a page that has no translation into the default language by @Kasui92- A pinned
localeslist no longer crashes when there is no documentation directory by @Kasui92 create-jaadtreats every spelling of the current directory as--here, including./and an absolute path by @Kasui92
Full Changelog: v0.8.3...v0.9.0