aboutsummaryrefslogtreecommitdiff
path: root/site/content/docs
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2022-12-18 23:32:17 +0200
committerGitHub <[email protected]>2022-12-18 14:32:17 -0700
commite1315d11f2fb9a43b96dd48bf8f9aaf5305372b2 (patch)
treea1f09437ae0d47979c6e157e8dffcd1867a0ca82 /site/content/docs
parent6807008159012b9cf370db87dcd804c4cae3a1b5 (diff)
downloadbootstrap-e1315d11f2fb9a43b96dd48bf8f9aaf5305372b2.tar.xz
bootstrap-e1315d11f2fb9a43b96dd48bf8f9aaf5305372b2.zip
docs: move color-mode script (#37658)
* docs: move color-mode script * Move color-modes.js in static folder * Async load color-modes.js * Switch to DOMContentLoaded * Revert async loading
Diffstat (limited to 'site/content/docs')
-rw-r--r--site/content/docs/5.2/customize/color-modes.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/5.2/customize/color-modes.md b/site/content/docs/5.2/customize/color-modes.md
index 929075cbb..bf1692ae1 100644
--- a/site/content/docs/5.2/customize/color-modes.md
+++ b/site/content/docs/5.2/customize/color-modes.md
@@ -248,7 +248,7 @@ Here's a look at the JavaScript that powers it. Feel free to inspect our own doc
{{< example lang="js" show_preview="false" >}}
{{< js.inline >}}
-{{- readFile (path.Join "site/assets/js/color-modes/index.js") -}}
+{{- readFile (path.Join "site/static/docs" .Site.Params.docs_version "assets/js/color-modes.js") -}}
{{< /js.inline >}}
{{< /example >}}