diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-06-16 21:17:28 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-06-16 22:02:03 +0300 |
commit | 723cd8d12bdd48f389234b5fc40c3b1789807b4d (patch) | |
tree | beb9cff0c8ecd8ee6f64a14e20ca01af1438d830 | |
parent | c28934cb1871d6b6bd6a866660493a1137de17c6 (diff) |
Prepare docs for v5.getbootstrap.com
* use v5.getbootstrap.com as the site URL/CNAME
* block robots from crawling
* specify next npm tag
-rw-r--r-- | README.md | 20 | ||||
-rw-r--r-- | config.yml | 2 | ||||
-rw-r--r-- | site/content/docs/5.0/getting-started/download.md | 2 | ||||
-rw-r--r-- | site/data/docs-versions.yml | 2 | ||||
-rw-r--r-- | site/layouts/robots.txt | 4 | ||||
-rw-r--r-- | site/static/CNAME | 2 |
6 files changed, 15 insertions, 17 deletions
@@ -1,6 +1,6 @@ <p align="center"> - <a href="https://getbootstrap.com/"> - <img src="https://getbootstrap.com/docs/4.5/assets/brand/bootstrap-solid.svg" alt="Bootstrap logo" width="72" height="72"> + <a href="https://v5.getbootstrap.com/"> + <img src="https://v5.getbootstrap.com/docs/5.0/assets/brand/bootstrap-solid.svg" alt="Bootstrap logo" width="72" height="72"> </a> </p> @@ -9,7 +9,7 @@ <p align="center"> Sleek, intuitive, and powerful front-end framework for faster and easier web development. <br> - <a href="https://getbootstrap.com/docs/4.5/"><strong>Explore Bootstrap docs »</strong></a> + <a href="https://v5.getbootstrap.com/docs/5.0/"><strong>Explore Bootstrap docs »</strong></a> <br> <br> <a href="https://github.com/twbs/bootstrap/issues/new?template=bug.md">Report bug</a> @@ -41,14 +41,14 @@ Several quick start options are available: -- [Download the latest release.](https://github.com/twbs/bootstrap/archive/v4.5.0.zip) +- [Download the latest release.](https://github.com/twbs/bootstrap/archive/v5.0.0.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@4.5.0` -- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:4.5.0` +- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@next` +- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@5.0.0` +- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.0.0` - Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass` -Read the [Getting started page](https://getbootstrap.com/docs/4.5/getting-started/introduction/) for information on the framework contents, templates and examples, and more. +Read the [Getting started page](https://v5.getbootstrap.com/docs/5.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more. ## Status @@ -119,7 +119,7 @@ Have a bug or a feature request? Please first read the [issue guidelines](https: ## Documentation -Bootstrap's documentation, included in this repo in the root directory, is built with [Hugo](https://gohugo.io/) and publicly hosted on GitHub Pages at <https://getbootstrap.com/>. The docs may also be run locally. +Bootstrap's documentation, included in this repo in the root directory, is built with [Hugo](https://gohugo.io/) and publicly hosted on GitHub Pages at <https://v5.getbootstrap.com/>. The docs may also be run locally. Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `site/assets/js/src/search.js` file. @@ -134,7 +134,7 @@ Learn more about using Hugo by reading its [documentation](https://gohugo.io/doc ### Documentation for previous releases -You can find all our previous releases docs on <https://getbootstrap.com/docs/versions/>. +You can find all our previous releases docs on <https://v5.getbootstrap.com/docs/versions/>. [Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download. diff --git a/config.yml b/config.yml index 2fe5d2150b..77be964614 100644 --- a/config.yml +++ b/config.yml @@ -1,6 +1,6 @@ languageCode: "en" title: "Bootstrap" -baseURL: "https://getbootstrap.com" +baseURL: "https://v5.getbootstrap.com" enableInlineShortcodes: true markup: diff --git a/site/content/docs/5.0/getting-started/download.md b/site/content/docs/5.0/getting-started/download.md index 767a34fb0f..62001e4cd5 100644 --- a/site/content/docs/5.0/getting-started/download.md +++ b/site/content/docs/5.0/getting-started/download.md @@ -58,7 +58,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): {{< highlight sh >}} -npm install bootstrap +npm install bootstrap@next {{< /highlight >}} `const bootstrap = require('bootstrap')` or `import bootstrap from 'bootstrap'` will load all of Bootstrap's plugins onto a `bootstrap` object. diff --git a/site/data/docs-versions.yml b/site/data/docs-versions.yml index c5325c7f4d..bebbf16f43 100644 --- a/site/data/docs-versions.yml +++ b/site/data/docs-versions.yml @@ -46,7 +46,7 @@ - v: "4.5" - group: v5.x - baseurl: "https://getbootstrap.com/docs" + baseurl: "https://v5.getbootstrap.com/docs" description: "Current major release. Last update was v5.0.0-alpha1." versions: - v: "5.0" diff --git a/site/layouts/robots.txt b/site/layouts/robots.txt index 271b4f1b7b..79dddec829 100644 --- a/site/layouts/robots.txt +++ b/site/layouts/robots.txt @@ -1,8 +1,6 @@ # www.robotstxt.org -{{- $isProduction := eq hugo.Environment "production" -}} -{{- $isNetlify := eq (getenv "NETLIFY") "true" -}} -{{- $allowCrawling := and (not $isNetlify) $isProduction -}} +{{- $allowCrawling := false -}} {{ if $allowCrawling }} # Allow crawling of all content diff --git a/site/static/CNAME b/site/static/CNAME index 52c853392c..cc5f2f034a 100644 --- a/site/static/CNAME +++ b/site/static/CNAME @@ -1 +1 @@ -getbootstrap.com +v5.getbootstrap.com |