From 3e76d6565603fafa2c85ad81d7b6345c4e279c72 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 28 May 2017 22:50:57 -0700 Subject: Rearrange all the docs to allow for a docs/major.minor/ setup --- _includes/ads.html | 1 + _includes/callout-danger-async-methods.md | 7 +++ ...callout-warning-color-assistive-technologies.md | 5 ++ _includes/footer.html | 57 +++++++++++++++++++ _includes/header.html | 38 +++++++++++++ _includes/icons/bootstrap.svg | 1 + _includes/icons/github.svg | 1 + _includes/icons/menu.svg | 1 + _includes/icons/slack.svg | 1 + _includes/icons/twitter.svg | 1 + _includes/nav-docs.html | 57 +++++++++++++++++++ _includes/nav-home.html | 65 ++++++++++++++++++++++ _includes/page-headers.html | 46 +++++++++++++++ _includes/social.html | 31 +++++++++++ 14 files changed, 312 insertions(+) create mode 100644 _includes/ads.html create mode 100644 _includes/callout-danger-async-methods.md create mode 100644 _includes/callout-warning-color-assistive-technologies.md create mode 100644 _includes/footer.html create mode 100644 _includes/header.html create mode 100644 _includes/icons/bootstrap.svg create mode 100644 _includes/icons/github.svg create mode 100644 _includes/icons/menu.svg create mode 100644 _includes/icons/slack.svg create mode 100644 _includes/icons/twitter.svg create mode 100644 _includes/nav-docs.html create mode 100644 _includes/nav-home.html create mode 100644 _includes/page-headers.html create mode 100644 _includes/social.html (limited to '_includes') diff --git a/_includes/ads.html b/_includes/ads.html new file mode 100644 index 000000000..662b62971 --- /dev/null +++ b/_includes/ads.html @@ -0,0 +1 @@ + diff --git a/_includes/callout-danger-async-methods.md b/_includes/callout-danger-async-methods.md new file mode 100644 index 000000000..f7a76aa4d --- /dev/null +++ b/_includes/callout-danger-async-methods.md @@ -0,0 +1,7 @@ +{% callout danger %} +#### Asynchronous methods and transitions + +All API methods are **asynchronous** and start a **transition**. They returns to the caller as soon as the transition is started but **before it ends**. In addition, a method call on a **transitioning component will be ignored**. + +[See our Javascript documentation for more informations.]({{ site.baseurl }}/getting-started/javascript/#content) +{% endcallout %} diff --git a/_includes/callout-warning-color-assistive-technologies.md b/_includes/callout-warning-color-assistive-technologies.md new file mode 100644 index 000000000..b92a1c341 --- /dev/null +++ b/_includes/callout-warning-color-assistive-technologies.md @@ -0,0 +1,5 @@ +{% callout warning %} +#### Conveying meaning to assistive technologies + +Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the `.sr-only` class. +{% endcallout %} \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 000000000..4747abf24 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,57 @@ + + + + + + + +{% if site.github %} + +{% else %} + +{% endif %} + +{% if site.github %} + +{% else %} + + + + +{% endif %} + + + + + +{% if page.layout == "docs" %} + + +{% endif %} + + diff --git a/_includes/header.html b/_includes/header.html new file mode 100644 index 000000000..fd9a9a28c --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,38 @@ + + + + + {% if page.title %} + {{ page.title }} · {{ site.title }} + {% else %} + {{ site.title }} · {{ site.description }} + {% endif %} + + +{% include social.html %} + + +{% if site.github %} + +{% else %} + +{% endif %} + + +{% if page.layout == "docs" %} + +{% endif %} + + + + + + + diff --git a/_includes/icons/bootstrap.svg b/_includes/icons/bootstrap.svg new file mode 100644 index 000000000..997182408 --- /dev/null +++ b/_includes/icons/bootstrap.svg @@ -0,0 +1 @@ + diff --git a/_includes/icons/github.svg b/_includes/icons/github.svg new file mode 100644 index 000000000..b582b78f3 --- /dev/null +++ b/_includes/icons/github.svg @@ -0,0 +1 @@ +GitHub diff --git a/_includes/icons/menu.svg b/_includes/icons/menu.svg new file mode 100644 index 000000000..883713c19 --- /dev/null +++ b/_includes/icons/menu.svg @@ -0,0 +1 @@ + diff --git a/_includes/icons/slack.svg b/_includes/icons/slack.svg new file mode 100644 index 000000000..1631260f7 --- /dev/null +++ b/_includes/icons/slack.svg @@ -0,0 +1 @@ +Slack diff --git a/_includes/icons/twitter.svg b/_includes/icons/twitter.svg new file mode 100644 index 000000000..0265e9767 --- /dev/null +++ b/_includes/icons/twitter.svg @@ -0,0 +1 @@ +Twitter diff --git a/_includes/nav-docs.html b/_includes/nav-docs.html new file mode 100644 index 000000000..71ea14f7d --- /dev/null +++ b/_includes/nav-docs.html @@ -0,0 +1,57 @@ + + + diff --git a/_includes/nav-home.html b/_includes/nav-home.html new file mode 100644 index 000000000..56b1b080c --- /dev/null +++ b/_includes/nav-home.html @@ -0,0 +1,65 @@ + diff --git a/_includes/page-headers.html b/_includes/page-headers.html new file mode 100644 index 000000000..50b59a982 --- /dev/null +++ b/_includes/page-headers.html @@ -0,0 +1,46 @@ +{% if page.group == "getting-started" %} +

Getting started

+

+ An overview of Bootstrap, including how to download and use it, some basic templates and examples, and more. +

+{% elsif page.group == "layout" %} +

Layout

+

+ Options for structuring your pages with Bootstrap, including global styles, required scaffolding, grid system, and more. +

+{% elsif page.group == "content" %} +

Content

+

+ Styles for displaying content with some of the most commonly used HTML elements, including normalization, typography, images, tables, and more. +

+{% elsif page.group == "components" %} +

Components

+

+ Over a dozen reusable components built to provide buttons, dropdowns, input groups, navigation, alerts, and much more. +

+{% elsif page.group == "utilities" %} +

Utilities

+

+ Bootstrap includes dozens of utilities—classes with a single purpose to reduce the frequency of highly repetitive declarations. +

+{% elsif page.group == "javascript" %} +

JavaScript plugins

+

+ Bring Bootstrap's components to life with over a dozen custom jQuery plugins. Easily include them all, or one by one. +

+{% elsif page.group == "about" %} +

About

+

+ Learn about the project's history, meet the maintaining teams, and find out how to use the Bootstrap brand. +

+{% elsif page.group == "migration" %} +

Migration

+

+ 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. +

+{% elsif page.group == "browser-bugs" %} +

Wall of browser bugs

+

+ A list of the browser bugs that Bootstrap is currently grappling with. +

+{% endif %} diff --git a/_includes/social.html b/_includes/social.html new file mode 100644 index 000000000..c488ea610 --- /dev/null +++ b/_includes/social.html @@ -0,0 +1,31 @@ + + + + +{% if page.title %} + + + + +{% else %} + + + + +{% endif %} + + +{% if page.title %} + + + +{% else %} + + + +{% endif %} + + + + + -- cgit v1.2.3