Skip to content

v0.9.0

Choose a tag to compare

@Kasui92 Kasui92 released this 13 Sep 13:54
· 4 commits to main since this release
e0110ee

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 ui option, which replaces any of JAAD's own interface strings per locale; a key left out keeps its English default by @Kasui92
  • Added the locales option, for the rare tree where directory detection guesses wrong by @Kasui92
  • Added label, order, draft, keywords, author, ogImage and lastUpdated to page frontmatter, each overriding what the file tree or the page body already supplies by @Kasui92
  • lastUpdated is shown under the page, formatted for its language by @Kasui92
  • Localised pages declare hreflang alternates, x-default and og:locale:alternate, and each language gets its own search index and llms.txt by @Kasui92
  • Scaffolded projects now arrive with an AGENTS.md describing the project to coding agents, and a CLAUDE.md that 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_modules and leaves your Vite configuration alone. A project that relied on JAAD providing Tailwind for its own pages now adds it itself, as the site template 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:locale carries a territory, as Open Graph requires: en_GB rather than en by @Kasui92
  • The opening page now respects draft and frontmatter order, which changes which URL the sitemap leaves out by @Kasui92
  • The site template 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.astro rendered 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-default no longer disappears on a page that has no translation into the default language by @Kasui92
  • A pinned locales list no longer crashes when there is no documentation directory by @Kasui92
  • create-jaad treats every spelling of the current directory as --here, including ./ and an absolute path by @Kasui92

Full Changelog: v0.8.3...v0.9.0