Switch to Hugo
This commit includes all the needed workarounds and most changes from the main branch for everything to work, like: * removing empty lines in raw HTML that break output * read .browserslistrc, CSS variables from disk instead of duplicating it * using Hugo mounts * using Hugo for the docs CSS/JS * move ToC Sass code to a separate file while adapting it for Hugo Thus, this patch makes our npm scripts faster since lint runs on one step and there's no separate docs assets processing.
1
site/static/CNAME
Normal file
@@ -0,0 +1 @@
|
||||
getbootstrap.com
|
5
site/static/docs/4.5/assets/brand/bootstrap-outline.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="#fff" viewBox="0 180 612 612" focusable="false" role="img">
|
||||
<title>Bootstrap</title>
|
||||
<path d="M510 186c25.5 0 49.6 10 67.8 28.2S606 256.5 606 282v408c0 25.5-10 49.6-28.2 67.8S535.5 786 510 786H102c-25.5 0-49.6-10-67.8-28.2S6 715.5 6 690V282c0-25.5 10-49.6 28.2-67.8S76.5 186 102 186h408m0-6H102C45.9 180 0 225.9 0 282v408c0 56.1 45.9 102 102 102h408c56.1 0 102-45.9 102-102V282c0-56.1-45.9-102-102-102z"/>
|
||||
<path d="M166.3 313h173.5c32 0 57.7 7.3 77 22s29 36.8 29 66.5c0 18-4.4 33.4-13.2 46.2-8.8 12.8-21.4 22.8-37.8 29.8v1c22 4.7 38.7 15.1 50 31.2 11.3 16.2 17 36.4 17 60.8 0 14-2.5 27.1-7.5 39.2-5 12.2-12.8 22.7-23.5 31.5s-24.3 15.8-41 21-36.5 7.8-59.5 7.8h-164V313zm62.5 149.5h102c15 0 27.5-4.2 37.5-12.8s15-20.8 15-36.8c0-18-4.5-30.7-13.5-38s-22-11-39-11h-102v98.6zm0 156.5h110.5c19 0 33.8-4.9 44.2-14.8 10.5-9.8 15.8-23.8 15.8-41.8 0-17.7-5.2-31.2-15.8-40.8s-25.2-14.2-44.2-14.2H228.8V619z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 957 B |
5
site/static/docs/4.5/assets/brand/bootstrap-punchout.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" fill="#fff" viewBox="0 180 612 612" focusable="false" role="img">
|
||||
<title>Bootstrap</title>
|
||||
<path d="M383.5 521.8c-10.5-9.5-25.2-14.2-44.2-14.2H228.8V619h110.5c19 0 33.8-4.9 44.2-14.8 10.5-9.8 15.8-23.8 15.8-41.8-.1-17.6-5.3-31.2-15.8-40.6zm-15.3-72c10-8.5 15-20.8 15-36.8 0-18-4.5-30.7-13.5-38s-22-11-39-11h-102v98.5h102c15 0 27.5-4.3 37.5-12.7z"/>
|
||||
<path d="M510 180H102C45.9 180 0 225.9 0 282v408c0 56.1 45.9 102 102 102h408c56.1 0 102-45.9 102-102V282c0-56.1-45.9-102-102-102zm-55.8 429.8c-5 12.2-12.8 22.7-23.5 31.5s-24.3 15.8-41 21-36.5 7.8-59.5 7.8h-164V313h173.5c32 0 57.7 7.3 77 22s29 36.8 29 66.5c0 18-4.4 33.4-13.2 46.2-8.8 12.8-21.4 22.8-37.8 29.8v1c22 4.7 38.7 15.1 50 31.2 11.3 16.2 17 36.4 17 60.8 0 14-2.5 27.1-7.5 39.3z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 791 B |
BIN
site/static/docs/4.5/assets/brand/bootstrap-social-logo.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
site/static/docs/4.5/assets/brand/bootstrap-social.png
Normal file
After Width: | Height: | Size: 226 KiB |
5
site/static/docs/4.5/assets/brand/bootstrap-solid.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 612 612" focusable="false" role="img">
|
||||
<title>Bootstrap</title>
|
||||
<path fill="#563d7c" d="M612 510c0 56.1-45.9 102-102 102H102C45.9 612 0 566.1 0 510V102C0 45.9 45.9 0 102 0h408c56.1 0 102 45.9 102 102v408z"/>
|
||||
<path fill="#fff" d="M166.3 133h173.5c32 0 57.7 7.3 77 22s29 36.8 29 66.5c0 18-4.4 33.4-13.2 46.2-8.8 12.8-21.4 22.8-37.8 29.8v1c22 4.7 38.7 15.1 50 31.2 11.3 16.2 17 36.4 17 60.8 0 14-2.5 27.1-7.5 39.2-5 12.2-12.8 22.7-23.5 31.5s-24.3 15.8-41 21-36.5 7.8-59.5 7.8h-164V133zm62.5 149.5h102c15 0 27.5-4.2 37.5-12.8s15-20.8 15-36.8c0-18-4.5-30.7-13.5-38s-22-11-39-11h-102v98.6zm0 156.5h110.5c19 0 33.8-4.9 44.2-14.8 10.5-9.8 15.8-23.8 15.8-41.8 0-17.7-5.2-31.2-15.8-40.8s-25.2-14.2-44.2-14.2H228.8V439z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 778 B |
BIN
site/static/docs/4.5/assets/img/bootstrap-icons.png
Normal file
After Width: | Height: | Size: 40 KiB |
BIN
site/static/docs/4.5/assets/img/bootstrap-icons@2x.png
Normal file
After Width: | Height: | Size: 123 KiB |
BIN
site/static/docs/4.5/assets/img/bootstrap-themes-collage.png
Normal file
After Width: | Height: | Size: 73 KiB |
BIN
site/static/docs/4.5/assets/img/bootstrap-themes-collage@2x.png
Normal file
After Width: | Height: | Size: 239 KiB |
BIN
site/static/docs/4.5/assets/img/bootstrap-themes.png
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
site/static/docs/4.5/assets/img/bootstrap-themes@2x.png
Normal file
After Width: | Height: | Size: 272 KiB |
BIN
site/static/docs/4.5/assets/img/examples/album.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
site/static/docs/4.5/assets/img/examples/album@2x.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
site/static/docs/4.5/assets/img/examples/blog.png
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
site/static/docs/4.5/assets/img/examples/blog@2x.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
site/static/docs/4.5/assets/img/examples/carousel.png
Normal file
After Width: | Height: | Size: 21 KiB |
BIN
site/static/docs/4.5/assets/img/examples/carousel@2x.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
site/static/docs/4.5/assets/img/examples/checkout.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
site/static/docs/4.5/assets/img/examples/checkout@2x.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
site/static/docs/4.5/assets/img/examples/cover.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
BIN
site/static/docs/4.5/assets/img/examples/cover@2x.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
site/static/docs/4.5/assets/img/examples/dashboard.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
site/static/docs/4.5/assets/img/examples/dashboard@2x.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
site/static/docs/4.5/assets/img/examples/floating-labels.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
site/static/docs/4.5/assets/img/examples/floating-labels@2x.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
site/static/docs/4.5/assets/img/examples/grid.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
site/static/docs/4.5/assets/img/examples/grid@2x.png
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
site/static/docs/4.5/assets/img/examples/jumbotron.png
Normal file
After Width: | Height: | Size: 31 KiB |
BIN
site/static/docs/4.5/assets/img/examples/jumbotron@2x.png
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
site/static/docs/4.5/assets/img/examples/navbar-bottom.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
site/static/docs/4.5/assets/img/examples/navbar-bottom@2x.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
site/static/docs/4.5/assets/img/examples/navbar-fixed.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
site/static/docs/4.5/assets/img/examples/navbar-fixed@2x.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
site/static/docs/4.5/assets/img/examples/navbar-static.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
site/static/docs/4.5/assets/img/examples/navbar-static@2x.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
site/static/docs/4.5/assets/img/examples/navbars.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
site/static/docs/4.5/assets/img/examples/navbars@2x.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
site/static/docs/4.5/assets/img/examples/offcanvas.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
site/static/docs/4.5/assets/img/examples/offcanvas@2x.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
site/static/docs/4.5/assets/img/examples/pricing.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
site/static/docs/4.5/assets/img/examples/pricing@2x.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
site/static/docs/4.5/assets/img/examples/product.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
site/static/docs/4.5/assets/img/examples/product@2x.png
Normal file
After Width: | Height: | Size: 27 KiB |
BIN
site/static/docs/4.5/assets/img/examples/sign-in.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
site/static/docs/4.5/assets/img/examples/sign-in@2x.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
site/static/docs/4.5/assets/img/examples/starter-template.png
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
site/static/docs/4.5/assets/img/examples/starter-template@2x.png
Normal file
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 16 KiB |
BIN
site/static/docs/4.5/assets/img/examples/sticky-footer.png
Normal file
After Width: | Height: | Size: 8.0 KiB |
BIN
site/static/docs/4.5/assets/img/examples/sticky-footer@2x.png
Normal file
After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 4.2 KiB |
BIN
site/static/docs/4.5/assets/img/favicons/apple-touch-icon.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="mstile-150x150.png"/>
|
||||
<TileColor>#563d7c</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
BIN
site/static/docs/4.5/assets/img/favicons/favicon-16x16.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
site/static/docs/4.5/assets/img/favicons/favicon-32x32.png
Normal file
After Width: | Height: | Size: 491 B |
BIN
site/static/docs/4.5/assets/img/favicons/favicon.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |
20
site/static/docs/4.5/assets/img/favicons/manifest.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "Bootstrap",
|
||||
"short_name": "Bootstrap",
|
||||
"icons": [
|
||||
{
|
||||
"src": "android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"start_url": "/?utm_source=a2hs",
|
||||
"theme_color": "#563d7c",
|
||||
"background_color": "#563d7c",
|
||||
"display": "standalone"
|
||||
}
|
BIN
site/static/docs/4.5/assets/img/favicons/mstile-144x144.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
site/static/docs/4.5/assets/img/favicons/mstile-150x150.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
site/static/docs/4.5/assets/img/favicons/mstile-310x150.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
site/static/docs/4.5/assets/img/favicons/mstile-310x310.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
site/static/docs/4.5/assets/img/favicons/mstile-70x70.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,4 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="933.333" height="933.333" version="1" viewBox="0 0 700 700">
|
||||
<path d="M104.5.7C89.2 2.6 77.4 6.2 63.8 13.2 41.7 24.5 24.5 41.7 13.2 63.8 7.5 75.1 4.8 82.3 2.3 94 .6 102.1.5 114.3.5 350s.1 247.9 1.8 256c2.5 11.7 5.2 18.9 10.9 30.2 11.3 22.1 28.5 39.3 50.6 50.6 11.3 5.7 18.5 8.4 30.2 10.9 8.1 1.7 20.3 1.8 256 1.8s247.9-.1 256-1.8c11.7-2.5 18.9-5.2 30.2-10.9 22.1-11.3 39.3-28.5 50.6-50.6 5.7-11.3 8.4-18.5 10.9-30.2 1.7-8.1 1.8-20.3 1.8-256s-.1-247.9-1.8-256c-2.5-11.7-5.2-18.9-10.9-30.2C670.9 32.6 642.9 11 607 2.4 599.9.7 587.2.6 353.5.4 218.2.3 106.2.5 104.5.7zm315.3 153.6c47.4 9 75.3 30.5 85.6 65.9 5.1 17.8 5.6 43.1 1.1 60.3-2 7.5-7.9 20.3-12.2 26.4-8 11.3-21.9 22.8-36 30-3.5 1.7-6.3 3.5-6.3 3.9 0 .5 2.3 1.4 5.1 2 2.8.7 8.5 2.6 12.7 4.3 37.2 14.8 58.1 50.4 58.2 99 0 28.6-9 53.9-25.7 71.8-18.8 20.3-45.2 32.9-83.3 39.8-8.5 1.5-20.9 1.7-119.2 2l-109.8.4V151.9l110.8.4c95.5.3 111.8.6 119 2z"/>
|
||||
<path d="M262 266.5v56.6l65.3-.4c57.2-.3 65.9-.5 70.7-2 15.8-4.8 28.7-14.9 34.4-27.1 4.4-9.2 5.6-15.3 5.6-28.4-.1-25.1-7.5-39.8-24.3-47.7-14.1-6.7-14.2-6.7-86.4-7.2l-65.3-.5v56.7zm0 171.5v64.1l71.3-.3c69.8-.3 71.4-.4 79-2.6 11.4-3.2 19.2-7.7 27.2-15.7 12.1-12 16.8-24.9 16.8-46 0-20.8-5.1-34.3-17.3-45.9-7.9-7.4-15.8-11.6-28.1-14.7-8.1-2.1-10.5-2.2-78.6-2.6l-70.3-.5V438z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
2
site/static/docs/4.5/assets/js/vendor/jquery.slim.min.js
vendored
Normal file
27
site/static/sw.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
|
||||
// IT'S ALL JUST JUNK FOR OUR DOCS!
|
||||
// ++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
(function () {
|
||||
'use strict'
|
||||
|
||||
if ('serviceWorker' in navigator) {
|
||||
window.addEventListener('load', function () {
|
||||
navigator.serviceWorker.getRegistrations().then(function (registrations) {
|
||||
for (var registration of registrations) {
|
||||
registration.unregister()
|
||||
.then(function () {
|
||||
return self.clients.matchAll()
|
||||
})
|
||||
.then(function (clients) {
|
||||
clients.forEach(function (client) {
|
||||
if (client.url && 'navigate' in client) {
|
||||
client.navigate(client.url)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}())
|