Permalink
Browse files

cheatsheet model updated, rebuilt

  • Loading branch information...
1 parent 7559557 commit 28a8096433f03277e0decf242e7262ce0e6d8bdb @jonschlinkert jonschlinkert committed Mar 3, 2013
Showing with 4,444 additions and 3,136 deletions.
  1. +2 −0 .gitignore
  2. +3,379 −2,473 cheatsheet.html
  3. +0 −1 config.json
  4. +1,025 −631 src/data/cheatsheet.json
  5. +38 −31 src/templates/partials/accordion.hbs
View
2 .gitignore
@@ -11,6 +11,8 @@ pids
logs
results
+src/content/less-tests/
+
npm-debug.log
/node_modules/
*.sublime-project
View
5,852 cheatsheet.html
3,379 additions, 2,473 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
1 config.json
@@ -4,7 +4,6 @@
"helpers": {
"handlebars": "node_modules/assemble/lib/engines/handlebars/helpers/defaultHelpers.js"
},
- "highlight": false,
"prettify": true,
"content": "src/content"
}
View
1,656 src/data/cheatsheet.json
1,025 additions, 631 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
69 src/templates/partials/accordion.hbs
@@ -1,36 +1,43 @@
{{#each rows}}
<div class="{{row-modifier}}">
- {{#each columns}}
- <div class="{{column}}">
- {{#each accordion}}
- <div class="accordion-panel">
- <div class="accordion" id="{{accordion-id}}">
- {{#if wiki-href}}<a href="{{wiki-href}}" class="btn btn-primary btn-mini pull-right">Wiki &raquo;</a>{{/if}}
- <h4 class="accordion-title">{{{accordion-title}}}</h4>
- {{#each accordion-groups}}{{#if accordion-section}} <strong class="accordion-section">{{{accordion-section}}}</strong>
- {{else}}
- <dl class="accordion-group">
- <dd class="accordion-heading">
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#{{../../accordion-id}}" href="#{{../../accordion-id}}-{{../topic-href}}">
- <i class="toggle-chevron"></i>
- <span class="label label-{{topic-label-modifier}} pull-right">{{ topic-label }}</span>
- {{{ topic-name }}}
- </a>
- </dd>
- <dt id="{{../../accordion-id}}-{{../topic-href}}" class="accordion-body collapse">
- <div class="accordion-inner">
- <div class="summary">
- {{{ topic-summary }}}
- </div>
- {{{ topic-description }}}
+ {{#each columns}}
+ <div class="span{{width}}">
+ {{#each accordions}}
- {{> example }}
+ <!-- Accordion panel.
+ ======================================== -->
+ <div class="accordion-panel">
+ <div class="accordion" id="{{accordion-id}}">
+ {{#if wiki-href}}<a href="{{wiki-href}}" class="btn btn-primary btn-mini pull-right">Wiki &raquo;</a>{{/if}}
+ <h4 class="accordion-title">{{{accordion-title}}}</h4>
+ {{#each accordion-groups}}
+ {{#if accordion-section}} <strong class="accordion-section">{{{accordion-section}}}</strong> {{else}}
- </div>
- </dt>
- </dl>{{/if}}{{/each}}
- </div>
- </div>{{/each}}
- </div>{{/each}}
- </div>
+ <!-- Accordion group -->
+ <dl class="accordion-group">
+ <dt class="accordion-heading">
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#{{../../accordion-id}}" href="#{{../../accordion-id}}-{{../topic-href}}">
+ <i class="toggle-chevron"></i>{{#if label}} <span class="label label-{{label-modifier}} pull-right">{{ label }}</span>{{/if}}
+ {{{ topic-name }}}
+ </a>
+ </dt>
+
+ <!-- Accordion group --> {{! concatenate the accordion Id onto the topic href to create a unique Id for definition }}
+ <dd id="{{../../accordion-id}}-{{../topic-href}}" class="accordion-body collapse">
+ <div class="accordion-inner">
+ <div class="topic-summary">
+ {{{ topic-summary }}}
+ </div>
+ {{> example }}
+ </div>
+ </dd>
+ </dl><!-- /accordion-group -->
+ {{/if}}
+ {{/each}}
+ </div>
+ </div><!-- /accordion-panel -->
+ {{/each}}
+ </div> {{! /columns }}
+ {{/each}}
+ </div> {{! /rows }}
{{/each}}

0 comments on commit 28a8096

Please sign in to comment.