aboutsummaryrefslogtreecommitdiff
path: root/docs/_layouts/default.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-05-08 21:56:08 -0700
committerMark Otto <[email protected]>2013-05-08 21:56:08 -0700
commitedb733ebc7db2d76bdac2611cbd83c5ae36f4fee (patch)
tree99c8329c1718c0d474344a08122c51846956bf4c /docs/_layouts/default.html
parent88dd9de9bad56b30a12466477a810c78648200c9 (diff)
downloadbootstrap-edb733ebc7db2d76bdac2611cbd83c5ae36f4fee.tar.xz
bootstrap-edb733ebc7db2d76bdac2611cbd83c5ae36f4fee.zip
Super massive docs overhaul
* Bring back the navbar up top * Pull the docs content back into separate pages because a 6.6k line docs file is just crazy * Recenter the page content and bring back affixed side nav (needs work)
Diffstat (limited to 'docs/_layouts/default.html')
-rw-r--r--docs/_layouts/default.html45
1 files changed, 38 insertions, 7 deletions
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index 8015c1587..ae8db92ef 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -5,16 +5,47 @@
{% include header.html %}
<!-- Place anything custom after this. -->
</head>
- <body class="bs-docs-docs" data-spy="scroll" data-target=".bs-docs-sidebar">
+ <body data-spy="scroll" data-target=".bs-docs-sidebar">
- <!-- Docs nav -->
- {% include docs-nav.html %}
+ <!-- Docs master nav -->
+ {% include nav-main.html %}
- <!-- Page content of course! -->
- {{ content }}
+ <!-- Docs page layout -->
+ <div class="container bs-docs-container">
+ <div class="bs-docs-header">
+ <h1>{{ page.title }}</h1>
+ <p class="lead">{{ page.lead }}</p>
+ </div>
- <!-- Main docs footer (social buttons, copyright, etc). -->
- {% include colophon.html %}
+ <div class="row">
+ <div class="col col-lg-3">
+ <div class="bs-docs-sidebar">
+ <ul class="nav">
+ {% if page.slug == "welcome" %}
+ {% include nav-welcome.html %}
+ {% elsif page.slug == "css" %}
+ {% include nav-css.html %}
+ {% elsif page.slug == "components" %}
+ {% include nav-components.html %}
+ {% elsif page.slug == "js" %}
+ {% include nav-javascript.html %}
+ {% endif %}
+ </ul>
+ </div>
+ </div>
+ <div class="col col-lg-9">
+ {{ content }}
+ </div>
+ </div>
+
+ <!-- Quick back to top -->
+ <a href="#welcome" class="bs-docs-top">
+ Back to top
+ </a>
+
+ <!-- Main docs footer (social buttons, copyright, etc). -->
+ {% include colophon.html %}
+ </div>
<!-- JS and analytics only. -->
{% include footer.html %}