Skip to content

Commit 35ddc84

Browse files
committed
revamp all the things
1 parent b3f30bb commit 35ddc84

File tree

9 files changed

+238
-158
lines changed

9 files changed

+238
-158
lines changed

docs/_includes/footer.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<!-- Footer
22
================================================== -->
33
<footer class="bs-docs-footer" role="contentinfo">
4-
<div class="container">
4+
<div class="bs-docs-container">
55
{% include social-buttons.html %}
66

7-
<p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
8-
<p>Maintained by the <a href="https://github.com/twbs?tab=members">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</p>
9-
<p>Code licensed under <a href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
7+
<p>Designed and built with all the love in the world by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>. Maintained by the <a href="https://github.com/twbs?tab=members">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>. Code licensed under <a href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
108
<ul class="bs-docs-footer-links muted">
119
<li>Currently v{{ site.current_version }}</li>
1210
<li>&middot;</li>

docs/_includes/nav/docs.html

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<div id="top"></div>
2+
3+
<div class="bs-docs-sidebar">
4+
<a href="../" class="bs-docs-sidebar-brand">Bootstrap</a>
5+
6+
<div class="bs-docs-toc">
7+
<div class="bs-docs-toc-item{% if page.slug == "getting-started" %} active{% endif %}">
8+
<a class="bs-docs-toc-link" href="../getting-started">Getting started</a>
9+
{% if page.slug == "getting-started" %}
10+
<ul class="nav bs-docs-sidenav">
11+
{% include nav/getting-started.html %}
12+
</ul>
13+
{% endif %}
14+
</div>
15+
<div class="bs-docs-toc-item{% if page.slug == "css" %} active{% endif %}">
16+
<a class="bs-docs-toc-link" href="../css">CSS</a>
17+
{% if page.slug == "css" %}
18+
<ul class="nav bs-docs-sidenav">
19+
{% include nav/css.html %}
20+
</ul>
21+
{% endif %}
22+
</div>
23+
<div class="bs-docs-toc-item{% if page.slug == "components" %} active{% endif %}">
24+
<a class="bs-docs-toc-link" href="../components">Components</a>
25+
{% if page.slug == "components" %}
26+
<ul class="nav bs-docs-sidenav">
27+
{% include nav/components.html %}
28+
</ul>
29+
{% endif %}
30+
</div>
31+
<div class="bs-docs-toc-item{% if page.slug == "js" %} active{% endif %}">
32+
<a class="bs-docs-toc-link" href="../javascript">JavaScript</a>
33+
{% if page.slug == "js" %}
34+
<ul class="nav bs-docs-sidenav">
35+
{% include nav/javascript.html %}
36+
</ul>
37+
{% endif %}
38+
</div>
39+
<div class="bs-docs-toc-item{% if page.slug == "customize" %} active{% endif %}">
40+
<a class="bs-docs-toc-link" href="../customize">Customize</a>
41+
{% if page.slug == "customize" %}
42+
<ul class="nav bs-docs-sidenav">
43+
{% include nav/customize.html %}
44+
</ul>
45+
{% endif %}
46+
</div>
47+
<div class="bs-docs-toc-item{% if page.slug == "js" %} active{% endif %}">
48+
<a class="bs-docs-toc-link" href="../about">About</a>
49+
{% if page.slug == "js" %}
50+
<ul class="nav bs-docs-sidenav">
51+
{% include nav/about.html %}
52+
</ul>
53+
{% endif %}
54+
</div>
55+
<div class="bs-docs-toc-item{% if page.slug == "migration" %} active{% endif %}">
56+
<a class="bs-docs-toc-link" href="../migration">Migrating to v3.x</a>
57+
{% if page.slug == "migration" %}
58+
<ul class="nav bs-docs-sidenav">
59+
{% include nav/migration.html %}
60+
</ul>
61+
{% endif %}
62+
</div>
63+
</div>
64+
</div>

docs/_includes/nav/main.html renamed to docs/_includes/nav/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<header class="navbar navbar-static-top bs-docs-nav" id="top" role="banner">
1+
<header class="navbar navbar-inverse navbar-static-top bs-docs-nav" id="top" role="banner">
22
<div class="container">
33
<div class="navbar-header">
44
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">

docs/_layouts/default.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,26 @@
44
<!-- Meta, title, CSS, favicons, etc. -->
55
{% include header.html %}
66
</head>
7-
<body>
7+
<body class="bs-docs">
88
<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
99

10-
<!-- Docs master nav -->
11-
{% include nav/main.html %}
10+
{% include nav/docs.html %}
1211

13-
<!-- Docs page layout -->
1412
<div class="bs-docs-header" id="content">
15-
<div class="container">
13+
<div class="bs-docs-container">
1614
<h1>{{ page.title }}</h1>
1715
<p>{{ page.lead }}</p>
1816
{% include ads.html %}
1917
</div>
2018
</div>
2119

22-
<div class="container bs-docs-container">
20+
<div class="bs-docs-container">
2321

24-
<div class="row">
25-
<div class="col-md-9" role="main">
22+
<!-- <div class="row"> -->
23+
<!-- <div class="col-md-9" role="main"> -->
2624
{{ content }}
27-
</div>
28-
<div class="col-md-3">
25+
<!-- </div> -->
26+
<!-- <div class="col-md-3">
2927
<div class="bs-docs-sidebar hidden-print" role="complementary">
3028
<ul class="nav bs-docs-sidenav">
3129
{% if page.slug == "getting-started" %}
@@ -49,7 +47,8 @@ <h1>{{ page.title }}</h1>
4947
</a>
5048
</div>
5149
</div>
52-
</div>
50+
-->
51+
<!-- </div> -->
5352

5453
</div>
5554

docs/_layouts/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a class="sr-only sr-only-focusable" href="#content">Skip to main content</a>
99

1010
<!-- Docs master nav -->
11-
{% include nav/main.html %}
11+
{% include nav/home.html %}
1212

1313
<!-- Page content of course! -->
1414
{{ content }}

docs/assets/css/docs.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)