From 568553394d0a8b34668a75c9839a0f1f426469b2 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 6 Oct 2019 21:10:46 +0200 Subject: theme: Switch to docsy theme --- .../vendor/bootstrap/site/_includes/ads.html | 1 + .../vendor/bootstrap/site/_includes/bugify.html | 42 +++++++++++++++ .../site/_includes/callout-danger-async-methods.md | 8 +++ .../callout-info-mediaqueries-breakpoints.md | 4 ++ ...callout-warning-color-assistive-technologies.md | 6 +++ .../vendor/bootstrap/site/_includes/callout.html | 9 ++++ .../bootstrap/site/_includes/docs-navbar.html | 62 ++++++++++++++++++++++ .../bootstrap/site/_includes/docs-sidebar.html | 57 ++++++++++++++++++++ .../vendor/bootstrap/site/_includes/example.html | 23 ++++++++ .../vendor/bootstrap/site/_includes/favicons.html | 9 ++++ .../vendor/bootstrap/site/_includes/footer.html | 12 +++++ .../vendor/bootstrap/site/_includes/header.html | 37 +++++++++++++ .../bootstrap/site/_includes/icons/bootstrap.svg | 1 + .../bootstrap/site/_includes/icons/download.svg | 1 + .../bootstrap/site/_includes/icons/github.svg | 1 + .../bootstrap/site/_includes/icons/import.svg | 1 + .../bootstrap/site/_includes/icons/lightning.svg | 1 + .../vendor/bootstrap/site/_includes/icons/menu.svg | 1 + .../bootstrap/site/_includes/icons/slack.svg | 1 + .../bootstrap/site/_includes/icons/twitter.svg | 1 + .../vendor/bootstrap/site/_includes/scripts.html | 26 +++++++++ .../vendor/bootstrap/site/_includes/skippy.html | 5 ++ .../vendor/bootstrap/site/_includes/social.html | 18 +++++++ 23 files changed, 327 insertions(+) create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/ads.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/bugify.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/callout-danger-async-methods.md create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/callout-info-mediaqueries-breakpoints.md create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/callout-warning-color-assistive-technologies.md create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/callout.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/docs-navbar.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/docs-sidebar.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/example.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/favicons.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/footer.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/header.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/icons/bootstrap.svg create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/icons/download.svg create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/icons/github.svg create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/icons/import.svg create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/icons/lightning.svg create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/icons/menu.svg create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/icons/slack.svg create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/icons/twitter.svg create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/scripts.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/skippy.html create mode 100644 themes/docsy/assets/vendor/bootstrap/site/_includes/social.html (limited to 'themes/docsy/assets/vendor/bootstrap/site/_includes') diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/ads.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/ads.html new file mode 100644 index 0000000..bbb9671 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/ads.html @@ -0,0 +1 @@ + diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/bugify.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/bugify.html new file mode 100644 index 0000000..6a02bd2 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/bugify.html @@ -0,0 +1,42 @@ +{%- comment -%} +Usage: {% include bugify.html content=text %}, +where content is a string that contains a bug reference name and id. +e.g. Bootstrap#19984 +{%- endcomment -%} + +{%- assign words = include.content | split: " " -%} + +{%- for word in words -%} + {% if word contains "#" %} + {% if word contains "," %}{% assign separator = true %}{% else %}{% assign separator = false %}{% endif %} + {%- assign data = word | split: "#" -%} + {%- assign bug_cat = data[0] | strip_newlines -%} + {%- assign bug_id = data[1] | strip_newlines | remove: "," -%} + + {%- case bug_cat -%} + {%- when "Bootstrap" -%} + #{{ bug_id }} + {%- when "Edge" -%} + Edge issue #{{ bug_id }} + {%- when "A11yUserVoice" -%} + Microsoft A11y UserVoice idea #{{ bug_id }} + {%- when "UserVoice" -%} + Edge UserVoice idea #{{ bug_id }} + {%- when "Mozilla" -%} + Mozilla bug #{{ bug_id }} + {%- when "Chromium" -%} + Chromium issue #{{ bug_id }} + {%- when "WebKit" -%} + WebKit bug #{{ bug_id }} + {%- when "Safari" -%} + Apple Safari Radar #{{ bug_id }} + {%- when "Normalize" -%} + Normalize #{{ bug_id }} + {%- else -%} + parse error + {%- endcase -%}{% if separator %}, {% endif %} + + {% else %} + {{ word }} + {%- endif -%} +{%- endfor -%} diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-danger-async-methods.md b/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-danger-async-methods.md new file mode 100644 index 0000000..ca35e0b --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-danger-async-methods.md @@ -0,0 +1,8 @@ +{% capture callout %} +#### Asynchronous methods and transitions + +All API methods are **asynchronous** and start a **transition**. They return 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 information.]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/javascript/) +{% endcapture %} +{% include callout.html content=callout type="danger" %} diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-info-mediaqueries-breakpoints.md b/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-info-mediaqueries-breakpoints.md new file mode 100644 index 0000000..d3988ce --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-info-mediaqueries-breakpoints.md @@ -0,0 +1,4 @@ +{% capture callout %} +Note that since browsers do not currently support [range context queries](https://www.w3.org/TR/mediaqueries-4/#range-context), we work around the limitations of [`min-` and `max-` prefixes](https://www.w3.org/TR/mediaqueries-4/#mq-min-max) and viewports with fractional widths (which can occur under certain conditions on high-dpi devices, for instance) by using values with higher precision for these comparisons. +{% endcapture %} +{% include callout.html content=callout type="info" %} diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-warning-color-assistive-technologies.md b/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-warning-color-assistive-technologies.md new file mode 100644 index 0000000..98214eb --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/callout-warning-color-assistive-technologies.md @@ -0,0 +1,6 @@ +{% capture callout %} +##### 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. +{% endcapture %} +{% include callout.html content=callout type="warning" %} diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/callout.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/callout.html new file mode 100644 index 0000000..ff9450d --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/callout.html @@ -0,0 +1,9 @@ +{%- comment -%} +Usage: {% include callout.html content=callout type="type" %}, +where content is a capture with the content +and type is one of: info (default), danger, warning +{%- endcomment -%} +{%- assign css_class = include.type | default: "info" -%} +
+ {{- include.content | markdownify -}} +
diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/docs-navbar.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/docs-navbar.html new file mode 100644 index 0000000..cb442bd --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/docs-navbar.html @@ -0,0 +1,62 @@ + diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/docs-sidebar.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/docs-sidebar.html new file mode 100644 index 0000000..61edd8e --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/docs-sidebar.html @@ -0,0 +1,57 @@ + + + diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/example.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/example.html new file mode 100644 index 0000000..24d1262 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/example.html @@ -0,0 +1,23 @@ +{%- comment -%} +Usage: {% include example.html content=markup %}, +where content is a capture with the HTML content +id - null (default) +class - "bd-example" (default) +optional: hide_preview - disabled (default) +optional: hide_markup - disabled (default) +{%- endcomment -%} + +{%- assign preview_id = include.id -%} +{%- assign preview_class = include.class -%} + +{%- if include.hide_preview == null -%} + + {{- include.content -}} + +{%- endif -%} + +{%- if include.hide_markup == null -%} + {%- highlight html -%} + {{- include.content | replace: 'data-src="holder.js', 'src="...' -}} + {%- endhighlight -%} +{%- endif -%} diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/favicons.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/favicons.html new file mode 100644 index 0000000..df4c15e --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/favicons.html @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/footer.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/footer.html new file mode 100644 index 0000000..8e16577 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/footer.html @@ -0,0 +1,12 @@ + diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/header.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/header.html new file mode 100644 index 0000000..b92a579 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/header.html @@ -0,0 +1,37 @@ + + + + + + + + {%- if page.title -%} + {{ page.title | smartify }} · {{ site.title | smartify }} + {%- else -%} + {{ site.title | smartify }} · {{ site.description | smartify }} + {%- endif -%} + + + +{% if site.github %} + +{% else %} + +{% endif %} + + +{% if page.layout == "docs" %} + +{% endif %} + + +{% include favicons.html %} + +{% include social.html %} + + + diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/bootstrap.svg b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/bootstrap.svg new file mode 100644 index 0000000..816028b --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/bootstrap.svg @@ -0,0 +1 @@ +Bootstrap diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/download.svg b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/download.svg new file mode 100644 index 0000000..aa5f3f1 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/download.svg @@ -0,0 +1 @@ +Download icon diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/github.svg b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/github.svg new file mode 100644 index 0000000..5d6ad18 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/github.svg @@ -0,0 +1 @@ +GitHub diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/import.svg b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/import.svg new file mode 100644 index 0000000..0a9dbb2 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/import.svg @@ -0,0 +1 @@ +Import icon diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/lightning.svg b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/lightning.svg new file mode 100644 index 0000000..be6f475 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/lightning.svg @@ -0,0 +1 @@ +Lightning icon diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/menu.svg b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/menu.svg new file mode 100644 index 0000000..03e15dc --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/menu.svg @@ -0,0 +1 @@ +Menu diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/slack.svg b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/slack.svg new file mode 100644 index 0000000..3927fa4 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/slack.svg @@ -0,0 +1 @@ +Slack diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/twitter.svg b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/twitter.svg new file mode 100644 index 0000000..450c393 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/icons/twitter.svg @@ -0,0 +1 @@ +Twitter diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/scripts.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/scripts.html new file mode 100644 index 0000000..92c6d01 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/scripts.html @@ -0,0 +1,26 @@ + + + + + +{%- if site.github -%} + +{%- else -%} + +{%- endif -%} + +{%- if page.layout == "docs" -%} + +{%- endif -%} + +{%- if site.github -%} + +{%- else -%} + + + + + + + +{%- endif -%} diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/skippy.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/skippy.html new file mode 100644 index 0000000..2c73089 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/skippy.html @@ -0,0 +1,5 @@ + +
+ Skip to main content +
+
diff --git a/themes/docsy/assets/vendor/bootstrap/site/_includes/social.html b/themes/docsy/assets/vendor/bootstrap/site/_includes/social.html new file mode 100644 index 0000000..277ee23 --- /dev/null +++ b/themes/docsy/assets/vendor/bootstrap/site/_includes/social.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + -- cgit v1.2.3