v0.4.0
What's Changed
Added
doccontent kind — a new first-class template kind alongsidecomponentandpage. Doc templates live attemplates/doc/<name>/<name>.twig(preferstyleguide.twigsibling, fallback<name>.twig). URL surface:/styleguide/doc/<slug>(SPA),/styleguide/render/doc/<slug>(bare iframe),/styleguide/api/docs(JSON list — same shape as/api/pages). The@docTwig namespace is auto-registered whentemplates/doc/exists (doc templates reference@docvia{% include %}directly — there is nodoc_*()helper). The kind is optional: absenttemplates/doc/→/api/docsreturns[], the DOKUMENTACE sidebar group still shows foundations + overview. NewApi\DocsEndpointclass (@internal).- DOKUMENTACE sidebar group — collapsible sidebar section grouping Foundations, Overview, and doc entries. Controlled by a new
nav.docsi18n key (cs:Dokumentace, en:Documentation). The group is always present in the sidebar; doc entries appear below foundations + overview whentemplates/doc/is populated. - General
responsivefront-comment flag — new optional boolean YAML metadata key applicable to component, page, and doc templates (defaulttrue). When set tofalse, the SPA hides the responsive-width toolbar for that entry, useful for docs or fixed-layout demos where viewport resizing has no meaning.
Pull Requests
- #32 — feat: doc/ content kind + DOKUMENTACE sidebar group + responsive flag
Full Changelog: v0.3.14...v0.4.0