mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Prepare docs for v5.getbootstrap.com
* use v5.getbootstrap.com as the site URL/CNAME * block robots from crawling * specify next npm tag
This commit is contained in:
parent
c28934cb18
commit
723cd8d12b
20
README.md
20
README.md
@ -1,6 +1,6 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://getbootstrap.com/">
|
<a href="https://v5.getbootstrap.com/">
|
||||||
<img src="https://getbootstrap.com/docs/4.5/assets/brand/bootstrap-solid.svg" alt="Bootstrap logo" width="72" height="72">
|
<img src="https://v5.getbootstrap.com/docs/5.0/assets/brand/bootstrap-solid.svg" alt="Bootstrap logo" width="72" height="72">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@ -9,7 +9,7 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
|
Sleek, intuitive, and powerful front-end framework for faster and easier web development.
|
||||||
<br>
|
<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>
|
||||||
<br>
|
<br>
|
||||||
<a href="https://github.com/twbs/bootstrap/issues/new?template=bug.md">Report bug</a>
|
<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:
|
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`
|
- Clone the repo: `git clone https://github.com/twbs/bootstrap.git`
|
||||||
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap`
|
- Install with [npm](https://www.npmjs.com/): `npm install bootstrap@next`
|
||||||
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@4.5.0`
|
- Install with [yarn](https://yarnpkg.com/): `yarn add bootstrap@5.0.0`
|
||||||
- Install with [Composer](https://getcomposer.org/): `composer require twbs/bootstrap:4.5.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`
|
- 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
|
## Status
|
||||||
@ -119,7 +119,7 @@ Have a bug or a feature request? Please first read the [issue guidelines](https:
|
|||||||
|
|
||||||
## Documentation
|
## 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.
|
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
|
### 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.
|
[Previous releases](https://github.com/twbs/bootstrap/releases) and their documentation are also available for download.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
languageCode: "en"
|
languageCode: "en"
|
||||||
title: "Bootstrap"
|
title: "Bootstrap"
|
||||||
baseURL: "https://getbootstrap.com"
|
baseURL: "https://v5.getbootstrap.com"
|
||||||
enableInlineShortcodes: true
|
enableInlineShortcodes: true
|
||||||
|
|
||||||
markup:
|
markup:
|
||||||
|
@ -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):
|
Install Bootstrap in your Node.js powered apps with [the npm package](https://www.npmjs.com/package/bootstrap):
|
||||||
|
|
||||||
{{< highlight sh >}}
|
{{< highlight sh >}}
|
||||||
npm install bootstrap
|
npm install bootstrap@next
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
|
|
||||||
`const bootstrap = require('bootstrap')` or `import bootstrap from 'bootstrap'` will load all of Bootstrap's plugins onto a `bootstrap` object.
|
`const bootstrap = require('bootstrap')` or `import bootstrap from 'bootstrap'` will load all of Bootstrap's plugins onto a `bootstrap` object.
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
- v: "4.5"
|
- v: "4.5"
|
||||||
|
|
||||||
- group: v5.x
|
- 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."
|
description: "Current major release. Last update was v5.0.0-alpha1."
|
||||||
versions:
|
versions:
|
||||||
- v: "5.0"
|
- v: "5.0"
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# www.robotstxt.org
|
# www.robotstxt.org
|
||||||
|
|
||||||
{{- $isProduction := eq hugo.Environment "production" -}}
|
{{- $allowCrawling := false -}}
|
||||||
{{- $isNetlify := eq (getenv "NETLIFY") "true" -}}
|
|
||||||
{{- $allowCrawling := and (not $isNetlify) $isProduction -}}
|
|
||||||
|
|
||||||
{{ if $allowCrawling }}
|
{{ if $allowCrawling }}
|
||||||
# Allow crawling of all content
|
# Allow crawling of all content
|
||||||
|
@ -1 +1 @@
|
|||||||
getbootstrap.com
|
v5.getbootstrap.com
|
||||||
|
Loading…
x
Reference in New Issue
Block a user