v0.8.0
What's Changed
Added
- Added
@lancher-dev/jaad/layouts/Page.astro, a public layout that puts the documentation header and footer around a page of your own by @Kasui92
Changed
docsis now the defaultcreate-jaadtemplate, and--templateis optional everywhere, including non-interactive environments by @Kasui92- The scaffolder now copies its templates from real files instead of building them in code, so generated projects arrive formatted by @Kasui92
- Documentation now covers the theme contract for custom layouts, the shapes behind
navigation, the conditions that disable page shortcuts, and the fact thatastrooptions apply only through@lancher-dev/jaad/siteby @Kasui92 - The official site now answers an unknown URL with its own not found page by @Kasui92
Removed
- Removed
@lancher-dev/jaad/layouts/Base.astro, deprecated in JAAD 0.7 by @Kasui92
Fixed
- The opening documentation page takes its title from frontmatter again, instead of falling back to the first heading by @Kasui92
- Repeated headings on a page now get the same numbered anchors as the rendered output, so every table of contents entry points at its own heading by @Kasui92
--jaad-sidebar-widthnow moves the content gutters with it, and a widened sidebar is no longer pushed off the screen by @Kasui92- Image alt text no longer reaches the search index or the generated page descriptions by @Kasui92
- Bundled layouts, routes and themes resolve in projects whose path contains spaces by @Kasui92
--here --template sitenow stops instead of adding a landing page beside a JAAD configuration it did not write by @Kasui92create-jaad .is treated as--hereby @Kasui92create-jaadexits non-zero when it is cancelled or cannot write the project by @Kasui92create-jaadreads manifests that begin with a byte order mark, and treats a directory holding only.gitas empty by @Kasui92- Printed next steps quote paths that contain spaces by @Kasui92
- The site theme switcher exposes its state to assistive technology by @Kasui92
Upgrade Notes
- Replace
@lancher-dev/jaad/layouts/Base.astroimports with@lancher-dev/jaad/layouts/Page.astro.Base.astroforwarded every prop to that layout, so nothing else about the page changes. --templateis no longer required in non-interactive environments and defaults todocs. Existing--template docsand--template siteinvocations keep working.--here --template siteagainst a project that already has ajaad.config.*now stops with an error and writes nothing. The landing page needsrouteBase: "/docs", which only the project can set, so add both by hand.
Full Changelog: v0.7.1...v0.8.0