mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
new Documentation page
This commit is contained in:
parent
d0840cc944
commit
4309bfbe67
3 changed files with 50 additions and 4 deletions
|
@ -1,2 +1,30 @@
|
||||||
#docs-components-view
|
#docs-components-view
|
||||||
color: saddlebrown
|
color: saddlebrown
|
||||||
|
|
||||||
|
.main
|
||||||
|
position : relative
|
||||||
|
|
||||||
|
.left
|
||||||
|
bottom: 10em
|
||||||
|
left: 10em
|
||||||
|
overflow-y: scroll
|
||||||
|
overflow-x: hidden
|
||||||
|
position: fixed
|
||||||
|
top: 5em
|
||||||
|
white-space: nowrap
|
||||||
|
width: 20%
|
||||||
|
-webkit-overflow-scrolling: touch
|
||||||
|
|
||||||
|
.right
|
||||||
|
left: 28em
|
||||||
|
bottom: 10em
|
||||||
|
position: fixed
|
||||||
|
overflow-y: scroll
|
||||||
|
overflow-x: hidden
|
||||||
|
right: 10em
|
||||||
|
top: 5em
|
||||||
|
//width: 80%
|
||||||
|
-webkit-overflow-scrolling: touch
|
||||||
|
|
||||||
|
.specialList
|
||||||
|
list-style-type: none
|
|
@ -1,6 +1,23 @@
|
||||||
extends /templates/base
|
extends /templates/base
|
||||||
|
|
||||||
|
|
||||||
block content
|
block content
|
||||||
ul
|
div.main
|
||||||
for component in components
|
div.left
|
||||||
li= component.get('name')
|
ul
|
||||||
|
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}
|
||||||
|
|
||||||
|
div.right
|
||||||
|
ul
|
||||||
|
for component in components
|
||||||
|
each doc in component.attributes.propertyDocumentation
|
||||||
|
li(id="#{component.get('name')}#{doc.name}")
|
||||||
|
| #{doc.name}
|
||||||
|
ul.specialList
|
||||||
|
li=doc.description
|
||||||
|
|
|
@ -18,6 +18,7 @@ module.exports = class UnnamedView extends RootView
|
||||||
|
|
||||||
onLoaded: ->
|
onLoaded: ->
|
||||||
console.log 'we have the components...', (c.get('name') for c in @componentDocs.models)
|
console.log 'we have the components...', (c.get('name') for c in @componentDocs.models)
|
||||||
|
console.log 'we have the attributes...', (c.attributes for c in @componentDocs.models)
|
||||||
super()
|
super()
|
||||||
|
|
||||||
getRenderData: ->
|
getRenderData: ->
|
||||||
|
|
Loading…
Reference in a new issue