2
1
Fork 0

typegen: add module tag to modules

This commit is contained in:
outfoxxed 2024-07-14 19:51:02 -07:00
parent 2ad0f62947
commit fb88536039
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 6 additions and 0 deletions

View file

@ -1,7 +1,12 @@
{{- $modulename := .Get "module" -}} {{- $modulename := .Get "module" -}}
{{- $module := index .Site.Data.modules $modulename -}} {{- $module := index .Site.Data.modules $modulename -}}
<h1>{{ $modulename }}<span class="qmlprops typegray" style="font-weight: normal">[module]</span></h1>
{{- $module.index.description | $.Page.RenderString (dict "display" "block") -}} {{- $module.index.description | $.Page.RenderString (dict "display" "block") -}}
<h3>Types</h3> <h3>Types</h3>
<table> <table>
{{- range $name, $type := $module -}} {{- range $name, $type := $module -}}
{{- if ne $name "index" -}} {{- if ne $name "index" -}}

View file

@ -119,6 +119,7 @@ hidetitle = true
let template = format!( let template = format!(
"+++ "+++
title = \"{name}\" title = \"{name}\"
hidetitle = true
+++ +++
{{{{< qmlmodule module=\"{name}\" >}}}} {{{{< qmlmodule module=\"{name}\" >}}}}