]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Revert v5.getbootstrap.com changes
authorXhmikosR <xhmikosr@gmail.com>
Tue, 24 Nov 2020 19:05:11 +0000 (21:05 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 7 Dec 2020 16:18:16 +0000 (18:18 +0200)
README.md
config.yml
site/assets/js/search.js
site/data/docs-versions.yml
site/layouts/robots.txt
site/static/CNAME

index ceefe97dd73f1292804130a1bdc495ac9b8b2dec..8a470260a50b52c5c59d41291fa0517c3b83627d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 <p align="center">
-  <a href="https://v5.getbootstrap.com/">
-    <img src="https://v5.getbootstrap.com/docs/5.0/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
+  <a href="https://getbootstrap.com/">
+    <img src="https://getbootstrap.com/docs/5.0/assets/brand/bootstrap-logo-shadow.png" alt="Bootstrap logo" width="200" height="165">
   </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://v5.getbootstrap.com/docs/5.0/"><strong>Explore Bootstrap docs »</strong></a>
+  <a href="https://getbootstrap.com/docs/5.0/"><strong>Explore Bootstrap docs »</strong></a>
   <br>
   <br>
   <a href="https://github.com/twbs/bootstrap/issues/new?template=bug_report.md">Report bug</a>
@@ -53,7 +53,7 @@ Several quick start options are available:
 - Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:5.0.0-beta1`
 - Install with [NuGet](https://www.nuget.org/): CSS: `Install-Package bootstrap` Sass: `Install-Package bootstrap.sass`
 
-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.
+Read the [Getting started page](https://getbootstrap.com/docs/5.0/getting-started/introduction/) for information on the framework contents, templates and examples, and more.
 
 
 ## Status
@@ -141,7 +141,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://v5.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://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/search.js`.
 
@@ -156,7 +156,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://v5.getbootstrap.com/docs/versions/>.
+You can find all our previous releases docs on <https://getbootstrap.com/docs/versions/>.
 
 [Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
 
index 504d33350a334862fabf5c1ab5f420fbf0831772..5ec8d73651ed61b6fdaf0fa4a79a17ee5667a274 100644 (file)
@@ -1,6 +1,6 @@
 languageCode:           "en"
 title:                  "Bootstrap"
-baseURL:                "https://v5.getbootstrap.com"
+baseURL:                "https://getbootstrap.com"
 enableInlineShortcodes: true
 
 markup:
index e198eddb32992f6da92785c67e8c1ce20b0508af..d88263d3f3ac3982725982711ed454b472fc2beb 100644 (file)
@@ -29,7 +29,7 @@
     },
     transformData: function (hits) {
       return hits.map(function (hit) {
-        var liveUrl = 'https://v5.getbootstrap.com/'
+        var liveUrl = 'https://getbootstrap.com/'
 
         hit.url = window.location.origin.startsWith(liveUrl) ?
           // On production, return the result as is
index c10c7c8fb8ff5c1df8f22e7932753532ca1daa57..5ddde79a02f8c777a65a7adc27d9c85087d4134e 100644 (file)
@@ -46,7 +46,7 @@
     - v: "4.5"
 
 - group: v5.x
-  baseurl: "https://v5.getbootstrap.com/docs"
+  baseurl: "https://getbootstrap.com/docs"
   description: "Current major release. Last update was v5.0.0-beta1."
   versions:
     - v: "5.0"
index 79dddec829462a017cf9236341a14c63a62f9f2c..271b4f1b7b4275649d408879edca9723c10621b2 100644 (file)
@@ -1,6 +1,8 @@
 # www.robotstxt.org
 
-{{- $allowCrawling := false -}}
+{{- $isProduction := eq hugo.Environment "production" -}}
+{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
+{{- $allowCrawling := and (not $isNetlify) $isProduction -}}
 
 {{ if $allowCrawling }}
 # Allow crawling of all content
index cc5f2f034ac4cb97c1699cdabd4fb3311c231051..52c853392c25d3a670446641f4b44b22770b3bbe 100644 (file)
@@ -1 +1 @@
-v5.getbootstrap.com
+getbootstrap.com