typegen: add module tag to modules
This commit is contained in:
parent
2ad0f62947
commit
fb88536039
|
@ -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" -}}
|
||||||
|
|
|
@ -119,6 +119,7 @@ hidetitle = true
|
||||||
let template = format!(
|
let template = format!(
|
||||||
"+++
|
"+++
|
||||||
title = \"{name}\"
|
title = \"{name}\"
|
||||||
|
hidetitle = true
|
||||||
+++
|
+++
|
||||||
|
|
||||||
{{{{< qmlmodule module=\"{name}\" >}}}}
|
{{{{< qmlmodule module=\"{name}\" >}}}}
|
||||||
|
|
Loading…
Reference in a new issue