From 2d07383e32b7ad9ebad43e85ebdeb891dd0d105c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julien=20D=C3=A9ramond?=
Date: Thu, 16 Dec 2021 09:20:48 +0100
Subject: docs: Use param to set Bootstrap version in Contents page (#35556)
---
site/content/docs/5.1/getting-started/contents.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'site/content/docs/5.1/getting-started')
diff --git a/site/content/docs/5.1/getting-started/contents.md b/site/content/docs/5.1/getting-started/contents.md
index 4e86d5592..07f6bdb98 100644
--- a/site/content/docs/5.1/getting-started/contents.md
+++ b/site/content/docs/5.1/getting-started/contents.md
@@ -171,7 +171,7 @@ bootstrap/
├── site/
│ └──content/
│ └── docs/
-│ └── 5.1/
+│ └── {{< param docs_version >}}/
│ └── examples/
├── js/
└── scss/
--
cgit v1.2.3
From d581737f784d144a961d61248d42f59440159571 Mon Sep 17 00:00:00 2001
From: XhmikosR
Date: Tue, 11 Jan 2022 11:17:12 +0200
Subject: Update cspell config (#35647)
* specify the files to scan in the config
* enable `useGitignore` option
* remove a few unneeded suppressions
---
site/content/docs/5.1/getting-started/rtl.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'site/content/docs/5.1/getting-started')
diff --git a/site/content/docs/5.1/getting-started/rtl.md b/site/content/docs/5.1/getting-started/rtl.md
index b1a0534cf..19d9d4141 100644
--- a/site/content/docs/5.1/getting-started/rtl.md
+++ b/site/content/docs/5.1/getting-started/rtl.md
@@ -111,7 +111,7 @@ dt {
In the case you're using a custom font, be aware that not all fonts support the non-Latin alphabet. To switch from Pan-European to Arabic family, you may need to use `/*rtl:insert: {value}*/` in your font stack to modify the names of font families.
-For example, to switch from `Helvetica Neue Webfont` for LTR to `Helvetica Neue Arabic` for RTL, your Sass code look like this:
+For example, to switch from `Helvetica Neue` font for LTR to `Helvetica Neue Arabic` for RTL, your Sass code could look like this:
```scss
$font-family-sans-serif:
--
cgit v1.2.3
From d16088d5d1ec2de56a301fbb8e1a227ae7eb5ece Mon Sep 17 00:00:00 2001
From: Mark Otto
Date: Fri, 11 Mar 2022 11:29:52 -0800
Subject: Redesign the "Added in" badges in the docs (#35980)
Co-authored-by: XhmikosR
---
site/content/docs/5.1/getting-started/introduction.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'site/content/docs/5.1/getting-started')
diff --git a/site/content/docs/5.1/getting-started/introduction.md b/site/content/docs/5.1/getting-started/introduction.md
index b2fe767d7..6bc972bee 100644
--- a/site/content/docs/5.1/getting-started/introduction.md
+++ b/site/content/docs/5.1/getting-started/introduction.md
@@ -1,7 +1,7 @@
---
layout: docs
title: Introduction
-description: Get started with Bootstrap, the world's most popular framework for building responsive, mobile-first sites, with jsDelivr and a template starter page.
+description: Get started with Bootstrap via CDN and a template starter page.
group: getting-started
aliases:
- "/docs/5.1/getting-started/"
--
cgit v1.2.3
From a9a89debc7535a1c5857ced28c1002a2f682889f Mon Sep 17 00:00:00 2001
From: Mark Otto
Date: Mon, 14 Mar 2022 00:38:04 -0700
Subject: Rewrite docs tables in Markdown with table shortcode (#31337)
Co-authored-by: XhmikosR
Co-authored-by: GeoSot
---
.../docs/5.1/getting-started/browsers-devices.md | 69 +++------------
site/content/docs/5.1/getting-started/contents.md | 99 +++-------------------
.../content/docs/5.1/getting-started/contribute.md | 54 ++----------
3 files changed, 35 insertions(+), 187 deletions(-)
(limited to 'site/content/docs/5.1/getting-started')
diff --git a/site/content/docs/5.1/getting-started/browsers-devices.md b/site/content/docs/5.1/getting-started/browsers-devices.md
index bdda154a3..41885feaa 100644
--- a/site/content/docs/5.1/getting-started/browsers-devices.md
+++ b/site/content/docs/5.1/getting-started/browsers-devices.md
@@ -26,68 +26,23 @@ We use [Autoprefixer](https://github.com/postcss/autoprefixer) to handle intende
Generally speaking, Bootstrap supports the latest versions of each major platform's default browsers. Note that proxy browsers (such as Opera Mini, Opera Mobile's Turbo mode, UC Browser Mini, Amazon Silk) are not supported.
-
-
-
- |
- Chrome |
- Firefox |
- Safari |
- Android Browser & WebView |
-
-
-
-
- | Android |
- Supported |
- Supported |
- — |
- v6.0+ |
-
-
- | iOS |
- Supported |
- Supported |
- Supported |
- — |
-
-
-
+{{< bs-table "table" >}}
+| | Chrome | Firefox | Safari | Android Browser & WebView |
+| --- | --- | --- | --- | --- |
+| **Android** | Supported | Supported | — | v6.0+ |
+| **Windows** | Supported | Supported | Supported | — |
+{{< /bs-table >}}
### Desktop browsers
Similarly, the latest versions of most desktop browsers are supported.
-
-
-
- |
- Chrome |
- Firefox |
- Microsoft Edge |
- Opera |
- Safari |
-
-
-
-
- | Mac |
- Supported |
- Supported |
- Supported |
- Supported |
- Supported |
-
-
- | Windows |
- Supported |
- Supported |
- Supported |
- Supported |
- — |
-
-
-
+{{< bs-table "table" >}}
+| | Chrome | Firefox | Microsoft Edge | Opera | Safari |
+| --- | --- | --- | --- | --- | --- |
+| **Mac** | Supported | Supported | Supported | Supported | Supported |
+| **Windows** | Supported | Supported | Supported | Supported | — |
+{{< /bs-table >}}
For Firefox, in addition to the latest normal stable release, we also support the latest [Extended Support Release (ESR)](https://www.mozilla.org/en-US/firefox/enterprise/) version of Firefox.
diff --git a/site/content/docs/5.1/getting-started/contents.md b/site/content/docs/5.1/getting-started/contents.md
index 07f6bdb98..b9b92506c 100644
--- a/site/content/docs/5.1/getting-started/contents.md
+++ b/site/content/docs/5.1/getting-started/contents.md
@@ -68,96 +68,25 @@ This is the most basic form of Bootstrap: precompiled files for quick drop-in us
Bootstrap includes a handful of options for including some or all of our compiled CSS.
-
-
-
- | CSS files |
- Layout |
- Content |
- Components |
- Utilities |
-
-
-
-
- |
- bootstrap.css
- bootstrap.rtl.css
- bootstrap.min.css
- bootstrap.rtl.min.css
- |
- Included |
- Included |
- Included |
- Included |
-
-
- |
- bootstrap-grid.css
- bootstrap-grid.rtl.css
- bootstrap-grid.min.css
- bootstrap-grid.rtl.min.css
- |
- }}">Only grid system |
- — |
- — |
- }}">Only flex utilities |
-
-
- |
- bootstrap-utilities.css
- bootstrap-utilities.rtl.css
- bootstrap-utilities.min.css
- bootstrap-utilities.rtl.min.css
- |
- — |
- — |
- — |
- Included |
-
-
- |
- bootstrap-reboot.css
- bootstrap-reboot.rtl.css
- bootstrap-reboot.min.css
- bootstrap-reboot.rtl.min.css
- |
- — |
- }}">Only Reboot |
- — |
- — |
-
-
-
+{{< bs-table "table" >}}
+| CSS files | Layout | Content | Components | Utilities |
+| --- | --- | --- | --- | --- |
+| `bootstrap.css`
`bootstrap.min.css`
`bootstrap.rtl.css`
`bootstrap.rtl.min.css` | Included | Included | Included | Included |
+| `bootstrap-grid.css`
`bootstrap-grid.rtl.css`
`bootstrap-grid.min.css`
`bootstrap-grid.rtl.min.css` | [Only grid system]({{< docsref "/layout/grid" >}}) | — | — | [Only flex utilities]({{< docsref "/utilities/flex" >}}) |
+| `bootstrap-utilities.css`
`bootstrap-utilities.rtl.css`
`bootstrap-utilities.min.css`
`bootstrap-utilities.rtl.min.css` | — | — | — | Included |
+| `bootstrap-reboot.css`
`bootstrap-reboot.rtl.css`
`bootstrap-reboot.min.css`
`bootstrap-reboot.rtl.min.css` | [Only Reboot]({{< docsref "/content/reboot" >}}) | — | — | [Only flex utilities]({{< docsref "/utilities/flex" >}}) |
+{{< /bs-table >}}
## JS files
Similarly, we have options for including some or all of our compiled JavaScript.
-
-
-
- | JS files |
- Popper |
-
-
-
-
- |
- bootstrap.bundle.js
- bootstrap.bundle.min.js
- |
- Included |
-
-
- |
- bootstrap.js
- bootstrap.min.js
- |
- — |
-
-
-
+{{< bs-table "table" >}}
+| JS Files | Popper |
+| --- | --- |
+| `bootstrap.bundle.js`
`bootstrap.bundle.min.js`
| Included |
+| `bootstrap.js`
`bootstrap.min.js`
| – |
+{{< /bs-table >}}
## Bootstrap source code
diff --git a/site/content/docs/5.1/getting-started/contribute.md b/site/content/docs/5.1/getting-started/contribute.md
index 337bb2a43..67fe67f94 100644
--- a/site/content/docs/5.1/getting-started/contribute.md
+++ b/site/content/docs/5.1/getting-started/contribute.md
@@ -23,48 +23,14 @@ When completed, you'll be able to run the various commands provided from the com
Our [package.json]({{< param repo >}}/blob/v{{< param current_version >}}/package.json) includes numerous tasks for developing the project. Run `npm run` to see all the npm scripts in your terminal. **Primary tasks include:**
-
-
-
- | Task |
- Description |
-
-
-
-
-
- npm start
- |
-
- Compiles CSS and JavaScript, builds the documentation, and starts a local server.
- |
-
-
-
- npm run dist
- |
-
- Creates the dist/ directory with compiled files. Requires Sass, Autoprefixer, and terser.
- |
-
-
-
- npm test
- |
-
- Runs tests locally after running npm run dist
- |
-
-
-
- npm run docs-serve
- |
-
- Builds and runs the documentation locally.
- |
-
-
-
+{{< bs-table >}}
+| Task | Description |
+| --- | --- |
+| `npm start` | Compiles CSS and JavaScript, builds the documentation, and starts a local server. |
+| `npm run dist` | Creates the `dist/` directory with compiled files. Uses [Sass](https://sass-lang.com/), [Autoprefixer](https://github.com/postcss/autoprefixer), and [terser](https://github.com/terser/terser). |
+| `npm test` | Runs tests locally after running `npm run dist` |
+| `npm run docs-serve` | Builds and runs the documentation locally. |
+{{< /bs-table >}}
{{< callout info >}}
{{< partial "callout-info-npm-starter.md" >}}
@@ -78,7 +44,7 @@ Dart Sass uses a rounding precision of 10 and for efficiency reasons does not al
## Autoprefixer
-Bootstrap uses [Autoprefixer][autoprefixer] (included in our build process) to automatically add vendor prefixes to some CSS properties at build time. Doing so saves us time and code by allowing us to write key parts of our CSS a single time while eliminating the need for vendor mixins like those found in v3.
+Bootstrap uses [Autoprefixer](https://github.com/postcss/autoprefixer) (included in our build process) to automatically add vendor prefixes to some CSS properties at build time. Doing so saves us time and code by allowing us to write key parts of our CSS a single time while eliminating the need for vendor mixins like those found in v3.
We maintain the list of browsers supported through Autoprefixer in a separate file within our GitHub repository. See [.browserslistrc]({{< param repo >}}/blob/v{{< param current_version >}}/.browserslistrc) for details.
@@ -99,5 +65,3 @@ Learn more about using Hugo by reading its [documentation](https://gohugo.io/doc
## Troubleshooting
Should you encounter problems with installing dependencies, uninstall all previous dependency versions (global and local). Then, rerun `npm install`.
-
-[autoprefixer]: https://github.com/postcss/autoprefixer
--
cgit v1.2.3
From 5b31463e35bc9af18fabb30f76186c0e77ea2b99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julien=20D=C3=A9ramond?=
Date: Wed, 6 Apr 2022 15:42:05 +0200
Subject: Doc: Reorder alphabetically lists of components
---
site/content/docs/5.1/getting-started/introduction.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'site/content/docs/5.1/getting-started')
diff --git a/site/content/docs/5.1/getting-started/introduction.md b/site/content/docs/5.1/getting-started/introduction.md
index 6bc972bee..e12ea9687 100644
--- a/site/content/docs/5.1/getting-started/introduction.md
+++ b/site/content/docs/5.1/getting-started/introduction.md
@@ -62,9 +62,9 @@ Curious which components explicitly require our JavaScript and Popper? Click the
- Modals for displaying, positioning, and scroll behavior
- Navbar for extending our Collapse plugin to implement responsive behavior
- Offcanvases for displaying, positioning, and scroll behavior
+- Scrollspy for scroll behavior and navigation updates
- Toasts for displaying and dismissing
- Tooltips and popovers for displaying and positioning (also requires [Popper](https://popper.js.org/))
-- Scrollspy for scroll behavior and navigation updates
{{< /markdown >}}
--
cgit v1.2.3
From 1fed10dfb15aeb6c09b9c7f81ffe9214186ff48a Mon Sep 17 00:00:00 2001
From: Anthony Perez <43166263+anthonypz@users.noreply.github.com>
Date: Wed, 16 Mar 2022 13:51:52 -0700
Subject: Update parcel.md
Following the Parcel v1 installation guide seems to install the latest version of Parcel (v2), which makes several instructions in this guide throw errors. Therefore, I have updated the guide to work with version 2 of Parcel.
Change Details:
1) Update the URL to point to the latest doc pages.
2) Use the `type="module"` HTML attribute to reference a module [migration](https://parceljs.org/getting-started/migration/#code-changes)
3) The `--out-dir ` CLI parameter has been changed to `--dist-dir ` [CLI](https://parceljs.org/features/cli/#parameters)
4) For a reason I'm unsure of, `--experimental-scope-hoisting` throws the following error: `error: unknown option '--experimental-scope-hoisting'`, so I removed it to get the build to work.
---
site/content/docs/5.1/getting-started/parcel.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'site/content/docs/5.1/getting-started')
diff --git a/site/content/docs/5.1/getting-started/parcel.md b/site/content/docs/5.1/getting-started/parcel.md
index 23aab0054..fe5d9da32 100644
--- a/site/content/docs/5.1/getting-started/parcel.md
+++ b/site/content/docs/5.1/getting-started/parcel.md
@@ -8,7 +8,7 @@ toc: true
## Install Parcel
-Install [Parcel Bundler](https://en.parceljs.org/getting_started.html).
+Install [Parcel Bundler](https://parceljs.org/getting-started/webapp/).
## Install Bootstrap
@@ -65,7 +65,7 @@ Include `src/index.js` before the closing `
-
+