mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-29 22:30:46 -04:00
docs page update
This commit is contained in:
parent
9f76745fc2
commit
c579742955
3 changed files with 28 additions and 13 deletions
app
|
@ -3,16 +3,23 @@
|
|||
|
||||
.row
|
||||
|
||||
|
||||
|
||||
.index-column, .documentation-column
|
||||
overflow-y: scroll
|
||||
overflow-x: hidden
|
||||
min-height: 600px
|
||||
|
||||
> ul
|
||||
padding: 0px 20px 20px 20px
|
||||
|
||||
.doc-name
|
||||
color: rgb(139, 69, 19)
|
||||
|
||||
|
||||
.documentation-column
|
||||
|
||||
.specialList
|
||||
list-style-type: none
|
||||
|
||||
.doc-description
|
||||
list-style-type: none
|
||||
|
|
|
@ -6,18 +6,25 @@ block content
|
|||
.col-xs-3.index-column.nano
|
||||
ul.nav.nav-list.list-group.nano-content
|
||||
for component in components
|
||||
li= component.get('name')
|
||||
ul
|
||||
each doc in component.attributes.propertyDocumentation
|
||||
a(href="##{component.get('name')}#{doc.name}")
|
||||
li
|
||||
| #{doc.name}
|
||||
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
|
||||
each doc in component.attributes.propertyDocumentation
|
||||
li(id="#{component.get('name')}#{doc.name}")
|
||||
| #{doc.name}
|
||||
ul.specialList
|
||||
li=doc.description
|
||||
|
||||
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
|
||||
li!=marked(doc.description)
|
||||
|
|
@ -24,4 +24,5 @@ module.exports = class UnnamedView extends RootView
|
|||
getRenderData: ->
|
||||
c = super()
|
||||
c.components = @componentDocs.models
|
||||
c.marked = marked
|
||||
c
|
||||
|
|
Loading…
Add table
Reference in a new issue