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}\" >}}}}