Skip to content

Commit fed0d8a

Browse files
committed
restore page headers, use partial and page frontmatter to organize it
1 parent be3f8d9 commit fed0d8a

58 files changed

Lines changed: 167 additions & 33 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/_data/nav.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,25 +50,25 @@
5050
- title: Carousel
5151
- title: Utilities
5252

53-
- title: Examples
54-
pages:
55-
- title: Starter template
56-
- title: Grid
57-
- title: Jumbotron
58-
- title: Narrow jumbotron
59-
- title: Navbar
60-
- title: Navbar top
61-
- title: Navbar top fixed
62-
- title: Cover
63-
- title: Album
64-
- title: Carousel
65-
- title: Blog
66-
- title: Dashboard
67-
- title: Sign-in page
68-
- title: Justified nav
69-
- title: Sticky footer
70-
- title: Sticky footer with navbar
71-
- title: Offcanvas
53+
# - title: Examples
54+
# pages:
55+
# - title: Starter template
56+
# - title: Grid
57+
# - title: Jumbotron
58+
# - title: Narrow jumbotron
59+
# - title: Navbar
60+
# - title: Navbar top
61+
# - title: Navbar top fixed
62+
# - title: Cover
63+
# - title: Album
64+
# - title: Carousel
65+
# - title: Blog
66+
# - title: Dashboard
67+
# - title: Sign-in page
68+
# - title: Justified nav
69+
# - title: Sticky footer
70+
# - title: Sticky footer with navbar
71+
# - title: Offcanvas
7272

7373
# - title: Extend
7474
# pages:

docs/_includes/page-headers.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{% if page.group == "getting-started" %}
2+
<h1>Getting started</h1>
3+
<p class="lead">
4+
An overview of Bootstrap, how to download and use, basic templates and examples, and more.
5+
</p>
6+
{% elsif page.group == "layout" %}
7+
<h1>Layout</h1>
8+
<p class="lead">
9+
Options for structuring your pages with Bootstrap, including global styles, required scaffolding, grid system, and more.
10+
</p>
11+
{% elsif page.group == "components" %}
12+
<h1>Components</h1>
13+
<p class="lead">
14+
Over a dozen reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
15+
</p>
16+
{% elsif page.group == "javascript" %}
17+
<h1>JavaScript plugins</h1>
18+
<p class="lead">
19+
Bring Bootstrap's components to life with over a dozen custom jQuery plugins. Easily include them all, or one by one.
20+
</p>
21+
{% elsif page.group == "about" %}
22+
<h1>About</h1>
23+
<p class="lead">
24+
Learn about the project's history, meet the maintaining teams, and find out how to use the Bootstrap brand.
25+
</p>
26+
{% elsif page.group == "migration" %}
27+
<h1>Migration</h1>
28+
<p class="lead">
29+
Guidance on how to upgrade from Bootstrap v3.x to v4.x with emphasis on major changes, what's new, and what's been removed.
30+
</p>
31+
{% endif %}

docs/_layouts/page.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
layout: default
33
---
44

5+
<div class="bd-pageheader">
6+
<div class="container">
7+
{% include ads.html %}
8+
{% include page-headers.html %}
9+
</div>
10+
</div>
11+
512
<div class="container">
613
<div class="row">
714
<div class="col-sm-3 col-sm-push-9 bd-sidebar">
815
{% include nav-docs.html %}
916
</div>
1017
<div class="col-sm-9 col-sm-pull-3 bd-content">
11-
{% include ads.html %}
1218
<h1 class="bd-title">{{ page.title }}</h1>
1319
{{ content }}
1420
</div>

docs/about/brand.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: page
33
title: Brand guidelines
4+
group: about
45
---
56

67
Have a need for Bootstrap's brand resources? Great! We have only a few guidelines we follow, and in turn ask you to follow as well. These guidelines were inspired by MailChimp's [Brand Assets](http://mailchimp.com/about/brand-assets/).

docs/about/history.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
layout: page
33
title: History
4+
group: about
45
---
56

67
Originally created by a designer and a developer at Twitter, Bootstrap has become one of the most popular front-end frameworks and open source projects in the world.
78

89
Bootstrap was created at Twitter in mid-2010 by [@mdo](https://twitter.com/mdo) and [@fat](https://twitter.com/fat). Prior to being an open-sourced framework, Bootstrap was known as _Twitter Blueprint_. A few months into development, Twitter held its [first Hack Week](https://blog.twitter.com/2010/hack-week) and the project exploded as developers of all skill levels jumped in without any external guidance. It served as the style guide for internal tools development at the company for over a year before its public release, and continues to do so today.
910

10-
Originally [released](https://blog.twitter.com/2011/bootstrap-twitter) on [<time datetime="2011-08-19 11:25">Friday, August 19, 2011</time>](https://twitter.com/mdo/statuses/104620039650557952), we've since had over [twenty releases](https://github.com/twbs/bootstrap/releases), including two major rewrites with v2 and v3. With Bootstrap 2, we added responsive functionality to the entire framework as an optional stylesheet. Building on that with Bootstrap 3, we rewrote the library once more to make it responsive by default with a mobile first approach.
11+
Originally [released](https://blog.twitter.com/2011/bootstrap-twitter) on [<time datetime="2011-08-19 11:25">Friday, August 19, 2011</time>](https://twitter.com/mdo/statuses/104620039650557952), we've since had over [twenty releases](https://github.com/twbs/bootstrap/releases), including two major rewrites with v2 and v3. With Bootstrap 2, we added responsive functionality to the entire framework as an optional stylesheet. Building on that with Bootstrap 3, we rewrote the library once more to make it responsive by default with a mobile first approach.

docs/about/license.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: page
33
title: License FAQs
4+
group: about
45
---
56

67
Bootstrap is released under the MIT license and is copyright {{ site.time | date: "%Y" }} Twitter. Boiled down to smaller chunks, it can be described with the following conditions.

docs/about/team.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: page
33
title: Team
4+
group: about
45
---
56

67
Bootstrap is maintained by the founding team and a small group of invaluable core contributors, with the massive support and involvement of our community.

docs/about/translations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: page
33
title: Translations
4+
group: about
45
---
56

67
Community members have translated Bootstrap's documentation into various languages. None are officially supported and they may not always be up to date.

docs/assets/css/docs.min.css

Lines changed: 23 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/css/docs.min.css.map

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)