typegen: add module tag to modules
This commit is contained in:
parent
2ad0f62947
commit
fb88536039
|
@ -1,7 +1,12 @@
|
|||
{{- $modulename := .Get "module" -}}
|
||||
{{- $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") -}}
|
||||
|
||||
<h3>Types</h3>
|
||||
|
||||
<table>
|
||||
{{- range $name, $type := $module -}}
|
||||
{{- if ne $name "index" -}}
|
||||
|
|
|
@ -119,6 +119,7 @@ hidetitle = true
|
|||
let template = format!(
|
||||
"+++
|
||||
title = \"{name}\"
|
||||
hidetitle = true
|
||||
+++
|
||||
|
||||
{{{{< qmlmodule module=\"{name}\" >}}}}
|
||||
|
|
Loading…
Reference in a new issue