From 5d6e896ebbf514dfdb1c4cbb22f1f6108afd4adb Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 4 Feb 2019 12:22:02 +0200 Subject: [PATCH] Add a docsref shortcode. This allows for the build to fail if a reference isn't found. --- site/content/docs/4.3/browser-bugs.md | 2 +- site/content/docs/4.3/components/alerts.md | 2 +- .../docs/4.3/components/button-group.md | 2 +- site/content/docs/4.3/components/card.md | 12 ++++++------ site/content/docs/4.3/components/carousel.md | 4 ++-- site/content/docs/4.3/components/collapse.md | 2 +- site/content/docs/4.3/components/dropdowns.md | 6 +++--- site/content/docs/4.3/components/forms.md | 6 +++--- site/content/docs/4.3/components/list-group.md | 4 ++-- .../docs/4.3/components/media-object.md | 2 +- site/content/docs/4.3/components/modal.md | 4 ++-- site/content/docs/4.3/components/navbar.md | 10 +++++----- site/content/docs/4.3/components/navs.md | 8 ++++---- site/content/docs/4.3/components/pagination.md | 2 +- site/content/docs/4.3/components/popovers.md | 6 +++--- site/content/docs/4.3/components/progress.md | 2 +- site/content/docs/4.3/components/scrollspy.md | 4 ++-- site/content/docs/4.3/components/spinners.md | 14 +++++++------- site/content/docs/4.3/components/toasts.md | 4 ++-- site/content/docs/4.3/components/tooltips.md | 4 ++-- site/content/docs/4.3/content/figures.md | 2 +- site/content/docs/4.3/content/images.md | 4 ++-- site/content/docs/4.3/content/reboot.md | 4 ++-- site/content/docs/4.3/content/tables.md | 2 +- site/content/docs/4.3/content/typography.md | 6 +++--- .../content/docs/4.3/examples/album/index.html | 2 +- .../docs/4.3/examples/navbar-bottom/index.html | 2 +- .../docs/4.3/examples/navbar-fixed/index.html | 2 +- .../docs/4.3/examples/navbar-static/index.html | 2 +- .../docs/4.3/examples/navbars/index.html | 4 ++-- .../examples/sticky-footer-navbar/index.html | 2 +- .../docs/4.3/examples/sticky-footer/index.html | 2 +- site/content/docs/4.3/extend/approach.md | 4 ++-- .../4.3/getting-started/browsers-devices.md | 4 ++-- .../docs/4.3/getting-started/contents.md | 6 +++--- .../docs/4.3/getting-started/download.md | 4 ++-- .../docs/4.3/getting-started/introduction.md | 10 +++++----- .../docs/4.3/getting-started/theming.md | 8 ++++---- .../docs/4.3/getting-started/webpack.md | 6 +++--- site/content/docs/4.3/layout/grid.md | 12 ++++++------ .../docs/4.3/layout/utilities-for-layout.md | 10 +++++----- site/content/docs/4.3/migration.md | 18 +++++++++--------- site/content/docs/4.3/utilities/colors.md | 2 +- site/content/docs/4.3/utilities/display.md | 2 +- site/layouts/shortcodes/docsref.html | 1 + 45 files changed, 111 insertions(+), 110 deletions(-) create mode 100644 site/layouts/shortcodes/docsref.html diff --git a/site/content/docs/4.3/browser-bugs.md b/site/content/docs/4.3/browser-bugs.md index 32285844e3..c464f8507d 100644 --- a/site/content/docs/4.3/browser-bugs.md +++ b/site/content/docs/4.3/browser-bugs.md @@ -7,7 +7,7 @@ aliases: "/browser-bugs/" Bootstrap currently works around several outstanding browser bugs in major browsers to deliver the best cross-browser experience possible. Some bugs, like those listed below, cannot be solved by us. -We publicly list browser bugs that are impacting us here, in the hopes of expediting the process of fixing them. For information on Bootstrap's browser compatibility, [see our browser compatibility docs](/docs/{{< param docs_version >}}/getting-started/browsers-devices/#supported-browsers). +We publicly list browser bugs that are impacting us here, in the hopes of expediting the process of fixing them. For information on Bootstrap's browser compatibility, [see our browser compatibility docs]({{< docsref "/getting-started/browsers-devices#supported-browsers" >}}). See also: diff --git a/site/content/docs/4.3/components/alerts.md b/site/content/docs/4.3/components/alerts.md index 8c530d0f5f..ee0cbab1a6 100644 --- a/site/content/docs/4.3/components/alerts.md +++ b/site/content/docs/4.3/components/alerts.md @@ -58,7 +58,7 @@ Alerts can also contain additional HTML elements like headings, paragraphs and d Using the alert JavaScript plugin, it's possible to dismiss any alert inline. Here's how: - Be sure you've loaded the alert plugin, or the compiled Bootstrap JavaScript. -- If you're building our JavaScript from source, it [requires `util.js`](/docs/{{< param docs_version >}}/getting-started/javascript/#util). The compiled version includes this. +- If you're building our JavaScript from source, it [requires `util.js`]({{< docsref "/getting-started/javascript#util" >}}). The compiled version includes this. - Add a dismiss button and the `.alert-dismissible` class, which adds extra padding to the right of the alert and positions the `.close` button. - On the dismiss button, add the `data-dismiss="alert"` attribute, which triggers the JavaScript functionality. Be sure to use the `