mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +02:00
Merge branch 'main' into xmr/docs-sass
This commit is contained in:
@@ -131,7 +131,7 @@ Within the download you'll find the following directories and files, logically g
|
|||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
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
|
## Bugs and feature requests
|
||||||
|
@@ -47,6 +47,7 @@
|
|||||||
--docsearch-muted-color: var(--bs-secondary-color);
|
--docsearch-muted-color: var(--bs-secondary-color);
|
||||||
--docsearch-hit-shadow: none;
|
--docsearch-hit-shadow: none;
|
||||||
|
|
||||||
|
position: fixed;
|
||||||
z-index: 2000; // Make sure to be over all components showcased in the documentation
|
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.
|
cursor: auto; // Needed because of [role="button"] in Algolia search modal. Remove once https://github.com/algolia/docsearch/issues/1370 is tackled.
|
||||||
|
|
||||||
|
@@ -158,7 +158,7 @@
|
|||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
{{- if eq hugo.Environment "production" -}}
|
{{- if hugo.IsProduction -}}
|
||||||
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }}></script>
|
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }}></script>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
<li class="mb-2"><a href="{{ .Site.Params.github_org }}/bootstrap/tree/v4-dev" target="_blank" rel="noopener">Bootstrap 4</a></li>
|
<li class="mb-2"><a href="{{ .Site.Params.github_org }}/bootstrap/tree/v4-dev" target="_blank" rel="noopener">Bootstrap 4</a></li>
|
||||||
<li class="mb-2"><a href="{{ .Site.Params.github_org }}/icons" target="_blank" rel="noopener">Icons</a></li>
|
<li class="mb-2"><a href="{{ .Site.Params.github_org }}/icons" target="_blank" rel="noopener">Icons</a></li>
|
||||||
<li class="mb-2"><a href="{{ .Site.Params.github_org }}/rfs" target="_blank" rel="noopener">RFS</a></li>
|
<li class="mb-2"><a href="{{ .Site.Params.github_org }}/rfs" target="_blank" rel="noopener">RFS</a></li>
|
||||||
<li class="mb-2"><a href="{{ .Site.Params.github_org }}/examples/" target="_blank" rel="noopener">Examples repo</a></li>
|
<li class="mb-2"><a href="{{ .Site.Params.github_org }}/examples" target="_blank" rel="noopener">Examples repo</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6 col-lg-2 mb-3">
|
<div class="col-6 col-lg-2 mb-3">
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{{ if eq hugo.Environment "production" -}}
|
{{ if hugo.IsProduction -}}
|
||||||
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }}></script>
|
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }}></script>
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
{{- $targetDocsJSPath := path.Join "/docs" .Site.Params.docs_version "assets/js/docs.js" -}}
|
{{- $targetDocsJSPath := path.Join "/docs" .Site.Params.docs_version "assets/js/docs.js" -}}
|
||||||
{{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}}
|
{{- $docsJs := append $js $vendor | resources.Concat $targetDocsJSPath -}}
|
||||||
|
|
||||||
{{- if eq hugo.Environment "production" -}}
|
{{- if hugo.IsProduction -}}
|
||||||
{{- $docsJs = $docsJs | resources.Minify -}}
|
{{- $docsJs = $docsJs | resources.Minify -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3">
|
||||||
|
|
||||||
{{ if eq hugo.Environment "production" -}}
|
{{ if hugo.IsProduction -}}
|
||||||
{{ if eq .Page.Params.direction "rtl" -}}
|
{{ if eq .Page.Params.direction "rtl" -}}
|
||||||
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.rtl.min.css" rel="stylesheet" {{ printf "integrity=%q" .Site.Params.cdn.css_rtl_hash | safeHTMLAttr }}>
|
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.rtl.min.css" rel="stylesheet" {{ printf "integrity=%q" .Site.Params.cdn.css_rtl_hash | safeHTMLAttr }}>
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
{{- $sassOptions := dict "transpiler" "dartsass" "targetPath" $targetDocsCssPath "outputStyle" "expanded" -}}
|
{{- $sassOptions := dict "transpiler" "dartsass" "targetPath" $targetDocsCssPath "outputStyle" "expanded" -}}
|
||||||
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
|
{{- $postcssOptions := dict "use" "autoprefixer" "noMap" true -}}
|
||||||
|
|
||||||
{{ if eq hugo.Environment "production" -}}
|
{{ if hugo.IsProduction -}}
|
||||||
{{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}}
|
{{- $sassOptions = merge $sassOptions (dict "outputStyle" "compressed") -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
@@ -1,8 +1,7 @@
|
|||||||
# www.robotstxt.org
|
# www.robotstxt.org
|
||||||
|
|
||||||
{{- $isProduction := eq hugo.Environment "production" -}}
|
|
||||||
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
|
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
|
||||||
{{- $allowCrawling := and (not $isNetlify) $isProduction -}}
|
{{- $allowCrawling := and (not $isNetlify) hugo.IsProduction -}}
|
||||||
|
|
||||||
{{ if $allowCrawling }}
|
{{ if $allowCrawling }}
|
||||||
# Allow crawling of all content
|
# Allow crawling of all content
|
||||||
|
Reference in New Issue
Block a user