Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 04 Jun 13:39

What's Changed

Added

  • doc content kind — a new first-class template kind alongside component and page. Doc templates live at templates/doc/<name>/<name>.twig (prefer styleguide.twig sibling, 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 @doc Twig namespace is auto-registered when templates/doc/ exists (doc templates reference @doc via {% include %} directly — there is no doc_*() helper). The kind is optional: absent templates/doc//api/docs returns [], the DOKUMENTACE sidebar group still shows foundations + overview. New Api\DocsEndpoint class (@internal).
  • DOKUMENTACE sidebar group — collapsible sidebar section grouping Foundations, Overview, and doc entries. Controlled by a new nav.docs i18n key (cs: Dokumentace, en: Documentation). The group is always present in the sidebar; doc entries appear below foundations + overview when templates/doc/ is populated.
  • General responsive front-comment flag — new optional boolean YAML metadata key applicable to component, page, and doc templates (default true). When set to false, 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