Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-11-21 16:11:31 +0300
committerGitHub <noreply@github.com>2018-11-21 16:11:31 +0300
commit487bd521e379ebff994ceb16ade1feedd45f0998 (patch)
tree69449df7baf17449488aa33483ad0cd3ab00d263
parentc628921465e606900123b5405db44939fac57206 (diff)
docs: fix path to assets. (#27696)
-rw-r--r--site/_includes/scripts.html2
-rw-r--r--site/_layouts/examples.html2
-rw-r--r--site/docs/4.1/utilities/image-replacement.md12
3 files changed, 10 insertions, 6 deletions
diff --git a/site/_includes/scripts.html b/site/_includes/scripts.html
index 3c2e7fbbc7..79b400bbe2 100644
--- a/site/_includes/scripts.html
+++ b/site/_includes/scripts.html
@@ -1,5 +1,5 @@
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
-<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
+<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
{%- if jekyll.environment == "production" -%}
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
diff --git a/site/_layouts/examples.html b/site/_layouts/examples.html
index bbf9e69ff5..28aa0736c5 100644
--- a/site/_layouts/examples.html
+++ b/site/_layouts/examples.html
@@ -33,7 +33,7 @@
{%- if page.include_js != false -%}
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
- <script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
+ <script>window.jQuery || document.write('<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
{%- if jekyll.environment == "production" -%}
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.cdn.js_bundle_hash }}" crossorigin="anonymous"></script>
diff --git a/site/docs/4.1/utilities/image-replacement.md b/site/docs/4.1/utilities/image-replacement.md
index 0d5a4d30ca..ab092d67f7 100644
--- a/site/docs/4.1/utilities/image-replacement.md
+++ b/site/docs/4.1/utilities/image-replacement.md
@@ -8,6 +8,7 @@ toc: true
{% capture callout %}
##### Warning
+
The `text-hide()` class and mixin has been deprecated as of v4.1. It will be removed entirely in v5.
{% endcapture %}
{% include callout.html content=callout type="warning" %}
@@ -27,7 +28,10 @@ Utilize the `.text-hide` class or mixin to help replace an element's text conten
Use the `.text-hide` class to maintain the accessibility and SEO benefits of heading tags, but want to utilize a `background-image` instead of text.
-{% capture example %}
-<h1 class="text-hide" style="background-image: url('/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>
-{% endcapture %}
-{% include example.html content=example %}
+<div class="bd-example">
+ <h1 class="text-hide" style="background-image: url('{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/brand/bootstrap-solid.svg'); width: 50px; height: 50px;">Bootstrap</h1>
+</div>
+
+{% highlight html %}
+<h1 class="text-hide" style="background-image: url('..');">Bootstrap</h1>
+{% endhighlight %}