]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: add the version in npm/yarn commands
authorXhmikosR <xhmikosr@gmail.com>
Fri, 13 May 2022 16:55:29 +0000 (19:55 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 13 May 2022 17:16:05 +0000 (20:16 +0300)
README.md
site/content/docs/5.2/getting-started/download.md
site/layouts/partials/home/masthead-followup.html
site/layouts/partials/home/masthead.html

index 4821c170eeceb78753d59708af6a4ab94022c984..bdbbee0bb7c0a79eac5b80c125b3bcfd5748807a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -48,8 +48,8 @@ Several quick start options are available:
 
 - [Download the latest release](https://github.com/twbs/bootstrap/archive/v5.2.0-beta1.zip)
 - Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
-- Install with [npm](https://www.npmjs.com/): `npm install bootstrap`
-- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap`
+- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@v5.2.0-beta1`
+- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@v5.2.0-beta1`
 - Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.2.0-beta1`
 - Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
 
index 8a4c8f215dc59e21f3f32a7435ed6989c7e1c90f..eeffdc83e5c779cc6636cd26e2d8a60e0d50eaa4 100644 (file)
@@ -59,7 +59,7 @@ Pull in Bootstrap's **source files** into nearly any project with some of the mo
 Install Bootstrap in your Node.js powered apps with [the npm package](https://www.npmjs.com/package/bootstrap):
 
 ```sh
-npm install bootstrap
+npm install bootstrap@{{< param "current_version" >}}
 ```
 
 `const bootstrap = require('bootstrap')` or `import bootstrap from 'bootstrap'` will load all of Bootstrap's plugins onto a `bootstrap` object.
@@ -79,7 +79,7 @@ Bootstrap's `package.json` contains some additional metadata under the following
 Install Bootstrap in your Node.js powered apps with [the yarn package](https://yarnpkg.com/en/package/bootstrap):
 
 ```sh
-yarn add bootstrap
+yarn add bootstrap@{{< param "current_version" >}}
 ```
 
 ### RubyGems
index a57e0f7330b40852a979ef1a34d2a0b61f579aa5..8d4e9796f01e104de7a8439d2601f295718814ba 100644 (file)
@@ -22,7 +22,7 @@
       <p class="pe-lg-5">
         Install Bootstrap’s source Sass and JavaScript files via npm, RubyGems, Composer, or Meteor. Package managed installs don’t include documentation or our full build scripts. You can also <a href="https://github.com/twbs/bootstrap-npm-starter">use our npm template repo</a> to quickly generate a Bootstrap project via npm.
       </p>
-      {{ highlight "npm install bootstrap" "sh" "" }}
+      {{ highlight (printf ("npm install bootstrap@%s") .Site.Params.current_version) "sh" "" }}
       {{ highlight (printf ("gem install bootstrap -v %s") .Site.Params.current_ruby_version) "sh" "" }}
       <p>
         <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/download/">Read our installation docs</a> for more info and additional package managers.
index 9e578a3011736a9be313be0e3b4a5fe8d178c323..4f91c2b07e99974d8d2b79e3682e40ff900682d7 100644 (file)
@@ -12,7 +12,7 @@
       </p>
       <div class="d-flex flex-column flex-md-row align-items-md-stretch justify-content-md-center gap-3 mb-4">
         <div class="d-inline-block v-align-middle fs-5" style="min-width: fit-content;">
-          {{ highlight "npm i bootstrap" "sh" "" }}
+          {{ highlight (printf ("npm install bootstrap@%s") .Site.Params.current_version) "sh" "" }}
         </div>
         <a href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/" class="btn btn-lg bd-btn-lg btn-bd-primary d-flex align-items-center justify-content-center fw-semibold" onclick="ga('send', 'event', 'Jumbotron actions', 'Get started', 'Get started');">
           <svg class="bi me-2" aria-hidden="true"><use xlink:href="#book-half"></use></svg>