aboutsummaryrefslogtreecommitdiff
path: root/docs/build
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-03-10 11:23:47 -0800
committerMark Otto <[email protected]>2012-03-10 11:23:47 -0800
commitc414e57dccf0d0177f42df10d2f36f79581563d6 (patch)
tree59b7fdd5f757789f8d4ea58456b6b450efb337b0 /docs/build
parent305374ab1a49a1bdfbab0e52a2be218fc42f3cc0 (diff)
parent1562381114ce1ce5dc06d311ddb6d1e0f2048a1f (diff)
downloadbootstrap-c414e57dccf0d0177f42df10d2f36f79581563d6.tar.xz
bootstrap-c414e57dccf0d0177f42df10d2f36f79581563d6.zip
Merge branch '2.0.2-wip' of github.com:twitter/bootstrap into 2.0.2-wip
Conflicts: docs/assets/bootstrap.zip
Diffstat (limited to 'docs/build')
-rw-r--r--docs/build/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/build/index.js b/docs/build/index.js
index 5321fa750..1a9cb387c 100644
--- a/docs/build/index.js
+++ b/docs/build/index.js
@@ -2,6 +2,7 @@
var hogan = require('hogan.js')
, fs = require('fs')
, prod = process.argv[2] == 'production'
+ , title = 'Bootstrap'
var layout, pages
@@ -23,6 +24,16 @@ pages.forEach(function (name) {
context[name.replace(/\.mustache$/, '')] = 'active'
context._i = true
context.production = prod
+ context.title = name
+ .replace(/\.mustache/, '')
+ .replace(/\-.*/, '')
+ .replace(/(.)/, function ($1) { return $1.toUpperCase() })
+
+ if (context.title == 'Index') {
+ context.title = title
+ } else {
+ context.title += ' ยท ' + title
+ }
page = hogan.compile(page, { sectionTags: [{o:'_i', c:'i'}] })
page = layout.render(context, {