aboutsummaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2018-07-30 01:46:27 +0300
committerMark Otto <[email protected]>2018-09-02 13:57:25 -0700
commit97801a7a2d0d6b64fefb0e3d855b3dc4d335f71c (patch)
tree9195028ba33e02fe8d8b257e62a20e1faadfdcae /site
parenta3e45d8ced63369ad6bd29ce45d919b77412a99b (diff)
downloadbootstrap-97801a7a2d0d6b64fefb0e3d855b3dc4d335f71c.tar.xz
bootstrap-97801a7a2d0d6b64fefb0e3d855b3dc4d335f71c.zip
Add new docs Versions page.
Diffstat (limited to 'site')
-rw-r--r--site/_data/docs-versions.yml41
-rw-r--r--site/_includes/docs-navbar.html2
-rw-r--r--site/_layouts/simple.html9
-rw-r--r--site/docs/versions.html38
4 files changed, 82 insertions, 8 deletions
diff --git a/site/_data/docs-versions.yml b/site/_data/docs-versions.yml
new file mode 100644
index 000000000..e5078145f
--- /dev/null
+++ b/site/_data/docs-versions.yml
@@ -0,0 +1,41 @@
+- group: v1.x
+ baseurl: https://getbootstrap.com
+ description: Every minor and patch release from v1 is listed below.
+ versions:
+ - v: 1.0.0
+ - v: 1.1.0
+ - v: 1.1.1
+ - v: 1.2.0
+ - v: 1.3.0
+ - v: 1.4.0
+
+- group: v2.x
+ baseurl: https://getbootstrap.com
+ description: Every minor and patch release from v2 is listed below.
+ versions:
+ - v: 2.0.0
+ - v: 2.0.1
+ - v: 2.0.2
+ - v: 2.0.3
+ - v: 2.0.4
+ - v: 2.1.0
+ - v: 2.1.1
+ - v: 2.2.0
+ - v: 2.2.1
+ - v: 2.2.2
+ - v: 2.3.0
+ - v: 2.3.1
+ - v: 2.3.2
+
+- group: v3.x
+ baseurl: https://getbootstrap.com/docs
+ description: Single docs site for our previous major release. Last update was v3.3.7.
+ versions:
+ - v: 3.3
+
+- group: v4.x
+ baseurl: https://getbootstrap.com/docs
+ description: Current major release with two minor releases. Last update was v4.1.3.
+ versions:
+ - v: 4.0
+ - v: 4.1
diff --git a/site/_includes/docs-navbar.html b/site/_includes/docs-navbar.html
index cb442bd53..27af7ae8f 100644
--- a/site/_includes/docs-navbar.html
+++ b/site/_includes/docs-navbar.html
@@ -38,6 +38,8 @@
<a class="dropdown-item" href="https://v4-alpha.getbootstrap.com/">v4 Alpha 6</a>
<a class="dropdown-item" href="https://getbootstrap.com/docs/3.3/">v3.3.7</a>
<a class="dropdown-item" href="https://getbootstrap.com/2.3.2/">v2.3.2</a>
+ <div class="dropdown-divider"></div>
+ <a class="dropdown-item" href="https://getbootstrap.com/docs/versions/">All versions</a>
</div>
</li>
diff --git a/site/_layouts/simple.html b/site/_layouts/simple.html
index dfd9afd16..5e7112684 100644
--- a/site/_layouts/simple.html
+++ b/site/_layouts/simple.html
@@ -2,11 +2,4 @@
layout: default
---
-<div class="container my-5">
- <main class="bd-content" role="main">
- <h1 class="bd-title" id="content">{{ page.title | smartify }}</h1>
- <p class="bd-lead">{{ page.description | smartify }}</p>
- {% include ads.html %}
- {{ content }}
- </main>
-</div>
+{{ content }}
diff --git a/site/docs/versions.html b/site/docs/versions.html
new file mode 100644
index 000000000..c7754cce5
--- /dev/null
+++ b/site/docs/versions.html
@@ -0,0 +1,38 @@
+---
+layout: simple
+title: Versions
+description: An appendix of hosted documentation for nearly every release of Bootstrap, from v1 through v4.
+---
+
+<header class="d-flex flex-column flex-md-row align-items-md-center p-5 bg-light">
+ <div class="pt-md-3 pb-md-4">
+ <h1 class="bd-title mt-0">{{ page.title | smartify }}</h1>
+ <p class="bd-lead">{{ page.description | smartify }}</p>
+ </div>
+ {% include ads.html %}
+</header>
+
+<main class="bd-content p-5">
+ <div class="row">
+ {% for release in site.data.docs-versions %}
+ <div class="col-md">
+ <h1>{{ release.group }}</h1>
+ <p>{{ release.description }}</p>
+ {% for version in release.versions %}
+ {% if forloop.first %}<div class="list-group">{% endif %}
+ {% if version.v == site.docs_version %}
+ <a class="list-group-item list-group-item-action py-2 text-primary d-flex justify-content-between align-items-center" href="{{ release.baseurl }}/{{ version.v }}/">
+ {{ version.v }}
+ <span class="badge badge-primary">Latest</span>
+ </a>
+ {% else %}
+ <a class="list-group-item list-group-item-action py-2 text-primary" href="{{ release.baseurl }}/{{ version.v }}/">
+ {{ version.v }}
+ </a>
+ {% endif %}
+ {% if forloop.last %}</div>{% endif %}
+ {% endfor %}
+ </div>
+ {% endfor %}
+ </div>
+</main>