lektor-website/models/doc-page.ini

64 lines
1.3 KiB
INI

[model]
name = Documentation Page
label = {{ this.title }}
[children]
model = doc-page
order_by = sort_key, title
[fields.title]
label = Title
type = string
size = large
[fields.summary]
label = Summary
type = string
width = 1/2
[fields.sort_key]
label = Sort key
type = sort_key
width = 1/4
[fields.allow_comments]
label = Allow Comments
type = boolean
default = yes
checkbox_label = Show comment box
width = 1/4
[fields.type]
label = Technical Type
type = select
description = Of what general type this doc page is. If not set, it's a normal doc page.
choices = class, function, method, property, operator, filter, cmdlet, event, type, sysfield
choice_labels = Class, Function, Method, Property, Operator, Filter, Commandlet, Event, Field Type, System Field
width = 1/2
[fields.module]
label = Module
type = string
description = Identifies the module a class or function is contained in.
choices = class, function, method
choice_labels = Class, Function, Method
width = 1/2
[fields.signature]
label = Signature
type = string
description = An optional signature for a type.
[fields.template_var]
label = Template Variable
type = string
description = An optional template variable if it exists there as such.
[fields.version_added]
label = Added in version
type = string
[fields.body]
label = Body
type = markdown