From 816d11ecaee31ea4074d51b34119803274c1525e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 7 Mar 2024 06:50:52 +0200 Subject: [PATCH 1/4] README.md: fix source-maps link after 953b4b6 (#39748) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bbcf216cca..a270067ac9 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ Within the download you'll find the following directories and files, logically g ``` -We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [Source maps](https://developer.chrome.com/docs/devtools/) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/docs/v2/). +We provide compiled CSS and JS (`bootstrap.*`), as well as compiled and minified CSS and JS (`bootstrap.min.*`). [Source maps](https://web.dev/articles/source-maps) (`bootstrap.*.map`) are available for use with certain browsers' developer tools. Bundled JS files (`bootstrap.bundle.js` and minified `bootstrap.bundle.min.js`) include [Popper](https://popper.js.org/docs/v2/). ## Bugs and feature requests From f54befa74b3d8de86c65a9bb07e2815ce2985deb Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 7 Mar 2024 16:11:00 +0200 Subject: [PATCH 2/4] footer: remove unneeded trailing slash (#39757) --- site/layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/layouts/partials/footer.html b/site/layouts/partials/footer.html index 421b70ec8d..562489e50c 100644 --- a/site/layouts/partials/footer.html +++ b/site/layouts/partials/footer.html @@ -41,7 +41,7 @@
  • Bootstrap 4
  • Icons
  • RFS
  • -
  • Examples repo
  • +
  • Examples repo
  • From f545964f8f7446a889b9226d865807d58b7fb8cb Mon Sep 17 00:00:00 2001 From: Louis-Maxime Piton Date: Fri, 8 Mar 2024 09:04:12 +0100 Subject: [PATCH 3/4] Docs: fix position of search modal to avoid interface blocking at small breakpoints (#39739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Julien Déramond --- site/assets/scss/_search.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/site/assets/scss/_search.scss b/site/assets/scss/_search.scss index ca1e5b060c..592d65f98f 100644 --- a/site/assets/scss/_search.scss +++ b/site/assets/scss/_search.scss @@ -47,6 +47,7 @@ --docsearch-muted-color: var(--bs-secondary-color); --docsearch-hit-shadow: none; + position: fixed; z-index: 2000; // Make sure to be over all components showcased in the documentation cursor: auto; // Needed because of [role="button"] in Algolia search modal. Remove once https://github.com/algolia/docsearch/issues/1370 is tackled. From 930740afbc87931475df4785c9e13e0818e8af66 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 8 Mar 2024 12:41:17 +0200 Subject: [PATCH 4/4] Switch to using `hugo.IsProduction` (#39763) --- site/layouts/_default/examples.html | 2 +- site/layouts/partials/scripts.html | 4 ++-- site/layouts/partials/stylesheet.html | 4 ++-- site/layouts/robots.txt | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index 19aad368d6..3b048a9d44 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -158,7 +158,7 @@ {{ .Content }} - {{- if eq hugo.Environment "production" -}} + {{- if hugo.IsProduction -}} {{- else -}} diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html index facb7d384a..046f659a94 100644 --- a/site/layouts/partials/scripts.html +++ b/site/layouts/partials/scripts.html @@ -1,4 +1,4 @@ -{{ if eq hugo.Environment "production" -}} +{{ if hugo.IsProduction -}} {{ else -}} @@ -15,7 +15,7 @@ {{- $targetDocsJSPath := path.Join "/docs" .Site.Params.docs_version "assets/js/docs.js" -}} {{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}} -{{- if eq hugo.Environment "production" -}} +{{- if hugo.IsProduction -}} {{- $docsJs = $docsJs | resources.Minify -}} {{- end }} diff --git a/site/layouts/partials/stylesheet.html b/site/layouts/partials/stylesheet.html index d07f9a5f29..f675d72125 100644 --- a/site/layouts/partials/stylesheet.html +++ b/site/layouts/partials/stylesheet.html @@ -1,6 +1,6 @@ -{{ if eq hugo.Environment "production" -}} +{{ if hugo.IsProduction -}} {{ if eq .Page.Params.direction "rtl" -}} {{- else -}} @@ -15,7 +15,7 @@ {{- $sassOptions := dict "targetPath" $targetDocsCssPath "outputStyle" "expanded" "precision" 6 -}} {{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}} -{{ if eq hugo.Environment "production" -}} +{{ if hugo.IsProduction -}} {{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}} {{- end -}} diff --git a/site/layouts/robots.txt b/site/layouts/robots.txt index 271b4f1b7b..bafd23893d 100644 --- a/site/layouts/robots.txt +++ b/site/layouts/robots.txt @@ -1,8 +1,7 @@ # www.robotstxt.org -{{- $isProduction := eq hugo.Environment "production" -}} {{- $isNetlify := eq (getenv "NETLIFY") "true" -}} -{{- $allowCrawling := and (not $isNetlify) $isProduction -}} +{{- $allowCrawling := and (not $isNetlify) hugo.IsProduction -}} {{ if $allowCrawling }} # Allow crawling of all content