---json
{
"templating": {
"extends": "pages/page.html"
},
"scripts": [
"resources/scripts/docs.js"
]
}
---
[% template styles %]
[% endtemplate %]
[% if util:binary-doc-available($config:app-root || "/" || $path || "/doc/screenshot.png") %]
Screenshot
[% endif %]
[[ upper-case(substring($profile?type, 1, 1)) || substring($profile?type, 2) ]]: [[ $label ]] [[ $profile?version ]]
[[ $abbrev ]]
[% if map:contains($context, "description") %]
[[ $context?description ]]
[% endif %]
[% if map:contains($profile, "depends") %]
Dependencies
[% for $dep in $profile?depends?* %]
-
[[ $dep ]]
[% endfor %]
[% endif %]
[% if exists($profile?features?($abbrev)) %]
Default configuration
[[ serialize($profile?features?($abbrev), map { 'method': 'json', 'indent': true() }) ]]
[% endif %]
[% if map:contains($profile, "defaults") %]
Default settings
[% for $key in map:keys($profile?defaults) %]
-
[[ $key ]]:
[[ $profile?defaults($key) ]]
[% endfor %]
[% endif %]
[% let $files = tu:scan-collection($path || "/resources/odd") %]
[% if exists($files) %]
ODD files provided
[% for $odd in $files %]
-
[[ $odd ]]
[% endfor %]
[% endif %]
[% endlet %]
[% if map:contains($profile, "api") %]
Open API endpoint definitions
[% for $api in $profile?api?* %]
[% if map:contains($api, "spec") %]
-
[[ $api?spec ]]
[% endif %]
[% endfor %]
[% endif %]
[% let $files = tu:scan-collection($path || "/modules", "^.*\.xql$") %]
[% if exists($files) %]
XQuery Modules
[% for $file in $files %]
-
[[ substring-after($file, "profiles/" || $name || "/") ]]
[% endfor %]
[% endif %]
[% endlet %]
[% let $files = tu:scan-collection($path || "/templates") %]
[% if exists($files) %]
HTML Templates
[% for $file in $files %]
-
[[ substring-after($file, "profiles/" || $name || "/") ]]
[% endfor %]
[% endif %]
[% endlet %]
[% let $styles = tu:scan-collection($path || "/resources/css") %]
[% if exists($styles) %]
CSS Styles
[% for $style in $styles %]
-
[[ substring-after($style, "profiles/" || $name || "/") ]]
[% endfor %]
[% endif %]
[% endlet %]
[% let $scripts = tu:scan-collection($path || "/resources/scripts") %]
[% if exists($scripts) %]
Javascript
[% for $script in $scripts %]
-
[[ substring-after($script, "profiles/" || $name || "/") ]]
[% endfor %]
[% endif %]
[% endlet %]
[% if exists($profile?menu?items) %]
Menu items
[% for $item in $profile?menu?items?* %]
-
[[ $item?id ]]:
[[ $item?url ]]
[% endfor %]
[% endif %]
[% let $i18n = tu:scan-collection($path || "/resources/i18n") %]
[% if exists($i18n) %]
Internationalization
[% for $lang in $i18n %]
[% if ends-with($lang, ".json") %]
-
[[ substring-after($lang, "profiles/" || $name || "/") ]]
[% endif %]
[% endfor %]
[% endif %]
[% endlet %]
[% if util:binary-doc-available($config:app-root || "/" || $path || "/doc/README.md") %]
[% endif %]