codecombat/app/templates/docs/components.jade

34 lines
1.1 KiB
Text
Raw Normal View History

extends /templates/base
2014-07-09 16:01:53 -04:00
block content
.row
.col-xs-3.index-column.nano
ul.nav.nav-list.list-group.nano-content
for component in components
2014-07-14 14:18:17 -04:00
a.doc-name(href="##{component.get('name')}")
li= component.get('name')
ul
each doc in component.attributes.propertyDocumentation
a(href="##{component.get('name')}#{doc.name}")
li
| #{doc.name}
.col-xs-9.documentation-column.nano
ul.nano-content
for component in components
2014-07-14 14:18:17 -04:00
li(id="#{component.get('name')}")
| #{component.get('name')}
ul
li.doc-description
| #{component.get('description')}
ul
each doc in component.attributes.propertyDocumentation
li(id="#{component.get('name')}#{doc.name}")
| #{doc.name}
ul.specialList
2014-07-17 12:11:23 -04:00
if doc.description[language]
li!=marked(doc.description[language])
2014-07-16 20:18:06 -04:00
else
li!=marked(doc.description)