From fb885360390722b354f83d6b5c86ef698cd56439 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 14 Jul 2024 19:51:02 -0700 Subject: [PATCH] typegen: add module tag to modules --- layouts/shortcodes/qmlmodule.html | 5 +++++ typegen/src/main.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/layouts/shortcodes/qmlmodule.html b/layouts/shortcodes/qmlmodule.html index 14ecd22..c28f59d 100644 --- a/layouts/shortcodes/qmlmodule.html +++ b/layouts/shortcodes/qmlmodule.html @@ -1,7 +1,12 @@ {{- $modulename := .Get "module" -}} {{- $module := index .Site.Data.modules $modulename -}} + +

{{ $modulename }}[module]

+ {{- $module.index.description | $.Page.RenderString (dict "display" "block") -}} +

Types

+ {{- range $name, $type := $module -}} {{- if ne $name "index" -}} diff --git a/typegen/src/main.rs b/typegen/src/main.rs index 4906d88..d1736ab 100644 --- a/typegen/src/main.rs +++ b/typegen/src/main.rs @@ -119,6 +119,7 @@ hidetitle = true let template = format!( "+++ title = \"{name}\" +hidetitle = true +++ {{{{< qmlmodule module=\"{name}\" >}}}}