Permalink
Browse files

Reorganize docs for easier deploys

With the current docs directory setup, I'm making too many mistakes and have to manually address path changes and directory moves on deploy. This makes for a frustrating experience developing locally and shipping releases. With this PR, we're basically back to the same setup from v3—duplicating the dist directory into our docs directory. Not the most ideal, but very straightforward for me as the release manager.
  • Loading branch information...
mdo committed Jun 21, 2018
1 parent 9e126b2 commit 0e920ce3f481a23c00c22c10565463ce58c0aac2
Showing with 171 additions and 186 deletions.
  1. +1 −0 .gitignore
  2. +3 −3 README.md
  3. +2 −20 _config.yml
  4. +0 −9 _includes/favicons.html
  5. +0 −26 _includes/scripts.html
  6. +0 −1 assets/css/docs.min.css.map
  7. +2 −2 build/generate-sri.js
  8. +1 −1 build/workbox.config.json
  9. +1 −1 build/workbox.js
  10. +2 −2 js/tests/index.html
  11. +2 −2 js/tests/karma-bundle.conf.js
  12. +2 −2 js/tests/karma.conf.js
  13. +1 −1 nuget/bootstrap.nuspec
  14. +1 −1 nuget/bootstrap.sass.nuspec
  15. +12 −10 package.json
  16. 0 { → site}/_data/breakpoints.yml
  17. 0 { → site}/_data/browser-bugs.yml
  18. 0 { → site}/_data/browser-features.yml
  19. 0 { → site}/_data/colors.yml
  20. 0 { → site}/_data/examples.yml
  21. 0 { → site}/_data/grays.yml
  22. 0 { → site}/_data/nav.yml
  23. 0 { → site}/_data/theme-colors.yml
  24. 0 { → site}/_data/translations.yml
  25. 0 { → site}/_includes/ads.html
  26. 0 { → site}/_includes/bugify.html
  27. 0 { → site}/_includes/callout-danger-async-methods.md
  28. 0 { → site}/_includes/callout-info-mediaqueries-breakpoints.md
  29. 0 { → site}/_includes/callout-warning-color-assistive-technologies.md
  30. 0 { → site}/_includes/callout.html
  31. 0 { → site}/_includes/docs-navbar.html
  32. 0 { → site}/_includes/docs-sidebar.html
  33. 0 { → site}/_includes/example.html
  34. +9 −0 site/_includes/favicons.html
  35. 0 { → site}/_includes/footer.html
  36. +3 −3 { → site}/_includes/header.html
  37. 0 { → site}/_includes/icons/bootstrap.svg
  38. 0 { → site}/_includes/icons/download.svg
  39. 0 { → site}/_includes/icons/github.svg
  40. 0 { → site}/_includes/icons/import.svg
  41. 0 { → site}/_includes/icons/lightning.svg
  42. 0 { → site}/_includes/icons/menu.svg
  43. 0 { → site}/_includes/icons/slack.svg
  44. 0 { → site}/_includes/icons/twitter.svg
  45. +26 −0 site/_includes/scripts.html
  46. 0 { → site}/_includes/skippy.html
  47. 0 { → site}/_includes/social.html
  48. 0 { → site}/_layouts/default.html
  49. 0 { → site}/_layouts/docs.html
  50. 0 { → site}/_layouts/examples.html
  51. 0 { → site}/_layouts/home.html
  52. 0 { → site}/_layouts/redirect.html
  53. 0 { → site}/_layouts/simple.html
  54. +5 −5 { → site}/docs/4.1/about/brand.md
  55. 0 { → site}/docs/4.1/about/license.md
  56. 0 { → site}/docs/4.1/about/overview.md
  57. 0 { → site}/docs/4.1/about/translations.md
  58. 0 { → site/docs/4.1}/assets/brand/bootstrap-outline.svg
  59. 0 { → site/docs/4.1}/assets/brand/bootstrap-punchout.svg
  60. BIN { → site/docs/4.1}/assets/brand/bootstrap-social-logo.png
  61. BIN { → site/docs/4.1}/assets/brand/bootstrap-social.png
  62. 0 { → site/docs/4.1}/assets/brand/bootstrap-solid.svg
  63. 0 { → site/docs/4.1}/assets/css/docs.min.css
  64. +1 −0 site/docs/4.1/assets/css/docs.min.css.map
  65. BIN { → site/docs/4.1}/assets/img/bootstrap-stack.png
  66. BIN { → site/docs/4.1}/assets/img/bootstrap-themes.png
  67. BIN { → site/docs/4.1}/assets/img/favicons/android-chrome-192x192.png
  68. BIN { → site/docs/4.1}/assets/img/favicons/android-chrome-512x512.png
  69. BIN { → site/docs/4.1}/assets/img/favicons/apple-touch-icon.png
  70. +1 −1 { → site/docs/4.1}/assets/img/favicons/browserconfig.xml
  71. BIN { → site/docs/4.1}/assets/img/favicons/favicon-16x16.png
  72. BIN { → site/docs/4.1}/assets/img/favicons/favicon-32x32.png
  73. +2 −2 { → site/docs/4.1}/assets/img/favicons/manifest.json
  74. BIN { → site/docs/4.1}/assets/img/favicons/mstile-144x144.png
  75. BIN { → site/docs/4.1}/assets/img/favicons/mstile-150x150.png
  76. BIN { → site/docs/4.1}/assets/img/favicons/mstile-310x150.png
  77. BIN { → site/docs/4.1}/assets/img/favicons/mstile-310x310.png
  78. BIN { → site/docs/4.1}/assets/img/favicons/mstile-70x70.png
  79. 0 { → site/docs/4.1}/assets/img/favicons/safari-pinned-tab.svg
  80. +1 −1 { → site/docs/4.1}/assets/js/.eslintrc.json
  81. 0 { → site/docs/4.1}/assets/js/docs.min.js
  82. 0 { → site/docs/4.1}/assets/js/src/application.js
  83. 0 { → site/docs/4.1}/assets/js/src/ie-emulation-modes-warning.js
  84. 0 { → site/docs/4.1}/assets/js/src/pwa.js
  85. 0 { → site/docs/4.1}/assets/js/src/search.js
  86. 0 { → site/docs/4.1}/assets/js/vendor/anchor.min.js
  87. 0 { → site/docs/4.1}/assets/js/vendor/clipboard.min.js
  88. 0 { → site/docs/4.1}/assets/js/vendor/holder.min.js
  89. 0 { → site/docs/4.1}/assets/js/vendor/jquery-slim.min.js
  90. 0 { → site/docs/4.1}/assets/js/vendor/popper.min.js
  91. 0 { → site/docs/4.1}/assets/scss/_ads.scss
  92. 0 { → site/docs/4.1}/assets/scss/_algolia.scss
  93. 0 { → site/docs/4.1}/assets/scss/_anchor.scss
  94. 0 { → site/docs/4.1}/assets/scss/_brand.scss
  95. 0 { → site/docs/4.1}/assets/scss/_browser-bugs.scss
  96. 0 { → site/docs/4.1}/assets/scss/_buttons.scss
  97. 0 { → site/docs/4.1}/assets/scss/_callouts.scss
  98. 0 { → site/docs/4.1}/assets/scss/_clipboard-js.scss
  99. 0 { → site/docs/4.1}/assets/scss/_colors.scss
  100. 0 { → site/docs/4.1}/assets/scss/_component-examples.scss
  101. 0 { → site/docs/4.1}/assets/scss/_content.scss
  102. 0 { → site/docs/4.1}/assets/scss/_examples.scss
  103. 0 { → site/docs/4.1}/assets/scss/_footer.scss
  104. 0 { → site/docs/4.1}/assets/scss/_masthead.scss
  105. 0 { → site/docs/4.1}/assets/scss/_nav.scss
  106. 0 { → site/docs/4.1}/assets/scss/_sidebar.scss
  107. 0 { → site/docs/4.1}/assets/scss/_skiplink.scss
  108. 0 { → site/docs/4.1}/assets/scss/_syntax.scss
  109. 0 { → site/docs/4.1}/assets/scss/_variables.scss
  110. +3 −3 { → site/docs/4.1}/assets/scss/docs.scss
  111. 0 { → site}/docs/4.1/browser-bugs.md
  112. 0 { → site}/docs/4.1/components/alerts.md
  113. 0 { → site}/docs/4.1/components/badge.md
  114. 0 { → site}/docs/4.1/components/breadcrumb.md
  115. 0 { → site}/docs/4.1/components/button-group.md
  116. 0 { → site}/docs/4.1/components/buttons.md
  117. 0 { → site}/docs/4.1/components/card.md
  118. 0 { → site}/docs/4.1/components/carousel.md
  119. 0 { → site}/docs/4.1/components/collapse.md
  120. 0 { → site}/docs/4.1/components/dropdowns.md
  121. 0 { → site}/docs/4.1/components/forms.md
  122. 0 { → site}/docs/4.1/components/input-group.md
  123. 0 { → site}/docs/4.1/components/jumbotron.md
  124. 0 { → site}/docs/4.1/components/list-group.md
  125. 0 { → site}/docs/4.1/components/modal.md
  126. +2 −2 { → site}/docs/4.1/components/navbar.md
  127. 0 { → site}/docs/4.1/components/navs.md
  128. 0 { → site}/docs/4.1/components/pagination.md
  129. 0 { → site}/docs/4.1/components/popovers.md
  130. 0 { → site}/docs/4.1/components/progress.md
  131. 0 { → site}/docs/4.1/components/scrollspy.md
  132. 0 { → site}/docs/4.1/components/tooltips.md
  133. 0 { → site}/docs/4.1/content/code.md
  134. 0 { → site}/docs/4.1/content/figures.md
  135. 0 { → site}/docs/4.1/content/images.md
  136. 0 { → site}/docs/4.1/content/reboot.md
  137. 0 { → site}/docs/4.1/content/tables.md
  138. 0 { → site}/docs/4.1/content/typography.md
  139. 0 { → site}/docs/4.1/examples/.eslintrc.json
  140. 0 { → site}/docs/4.1/examples/.stylelintrc
  141. 0 { → site}/docs/4.1/examples/album/album.css
  142. +5 −5 { → site}/docs/4.1/examples/album/index.html
  143. 0 { → site}/docs/4.1/examples/blog/blog.css
  144. +5 −5 { → site}/docs/4.1/examples/blog/index.html
  145. 0 { → site}/docs/4.1/examples/carousel/carousel.css
  146. +5 −5 { → site}/docs/4.1/examples/carousel/index.html
  147. 0 { → site}/docs/4.1/examples/checkout/form-validation.css
  148. +6 −6 { → site}/docs/4.1/examples/checkout/index.html
  149. 0 { → site}/docs/4.1/examples/cover/cover.css
  150. +4 −4 { → site}/docs/4.1/examples/cover/index.html
  151. 0 { → site}/docs/4.1/examples/dashboard/dashboard.css
  152. +4 −4 { → site}/docs/4.1/examples/dashboard/index.html
  153. 0 { → site}/docs/4.1/examples/floating-labels/floating-labels.css
  154. +2 −2 { → site}/docs/4.1/examples/floating-labels/index.html
  155. 0 { → site}/docs/4.1/examples/grid/grid.css
  156. +1 −1 { → site}/docs/4.1/examples/grid/index.html
  157. 0 { → site}/docs/4.1/examples/index.html
  158. +4 −4 { → site}/docs/4.1/examples/jumbotron/index.html
  159. 0 { → site}/docs/4.1/examples/jumbotron/jumbotron.css
  160. +4 −4 { → site}/docs/4.1/examples/navbar-bottom/index.html
  161. +4 −4 { → site}/docs/4.1/examples/navbar-fixed/index.html
  162. 0 { → site}/docs/4.1/examples/navbar-fixed/navbar-top-fixed.css
  163. +4 −4 { → site}/docs/4.1/examples/navbar-static/index.html
  164. 0 { → site}/docs/4.1/examples/navbar-static/navbar-top.css
  165. +4 −4 { → site}/docs/4.1/examples/navbars/index.html
  166. 0 { → site}/docs/4.1/examples/navbars/navbar.css
  167. +6 −6 { → site}/docs/4.1/examples/offcanvas/index.html
  168. 0 { → site}/docs/4.1/examples/offcanvas/offcanvas.css
  169. 0 { → site}/docs/4.1/examples/offcanvas/offcanvas.js
  170. +6 −6 { → site}/docs/4.1/examples/pricing/index.html
  171. 0 { → site}/docs/4.1/examples/pricing/pricing.css
  172. +5 −5 { → site}/docs/4.1/examples/product/index.html
  173. 0 { → site}/docs/4.1/examples/product/product.css
  174. BIN { → site}/docs/4.1/examples/screenshots/album.png
  175. BIN { → site}/docs/4.1/examples/screenshots/blog.png
  176. BIN { → site}/docs/4.1/examples/screenshots/carousel.png
  177. BIN { → site}/docs/4.1/examples/screenshots/checkout.png
  178. BIN { → site}/docs/4.1/examples/screenshots/cover.png
  179. BIN { → site}/docs/4.1/examples/screenshots/dashboard.png
  180. BIN { → site}/docs/4.1/examples/screenshots/floating-labels.png
  181. BIN { → site}/docs/4.1/examples/screenshots/grid.png
  182. BIN { → site}/docs/4.1/examples/screenshots/jumbotron.png
  183. BIN { → site}/docs/4.1/examples/screenshots/navbar-bottom.png
  184. BIN { → site}/docs/4.1/examples/screenshots/navbar-fixed.png
  185. BIN { → site}/docs/4.1/examples/screenshots/navbar-static.png
  186. BIN { → site}/docs/4.1/examples/screenshots/navbars.png
  187. BIN { → site}/docs/4.1/examples/screenshots/offcanvas.png
  188. BIN { → site}/docs/4.1/examples/screenshots/pricing.png
  189. BIN { → site}/docs/4.1/examples/screenshots/product.png
  190. BIN { → site}/docs/4.1/examples/screenshots/sign-in.png
  191. BIN { → site}/docs/4.1/examples/screenshots/starter-template.png
  192. BIN { → site}/docs/4.1/examples/screenshots/sticky-footer-navbar.png
  193. BIN { → site}/docs/4.1/examples/screenshots/sticky-footer.png
  194. +2 −2 { → site}/docs/4.1/examples/sign-in/index.html
  195. 0 { → site}/docs/4.1/examples/sign-in/signin.css
  196. +4 −4 { → site}/docs/4.1/examples/starter-template/index.html
  197. 0 { → site}/docs/4.1/examples/starter-template/starter-template.css
  198. +4 −4 { → site}/docs/4.1/examples/sticky-footer-navbar/index.html
  199. 0 { → site}/docs/4.1/examples/sticky-footer-navbar/sticky-footer-navbar.css
  200. +1 −1 { → site}/docs/4.1/examples/sticky-footer/index.html
  201. 0 { → site}/docs/4.1/examples/sticky-footer/sticky-footer.css
  202. +4 −4 { → site}/docs/4.1/examples/tooltip-viewport/index.html
  203. 0 { → site}/docs/4.1/examples/tooltip-viewport/tooltip-viewport.css
  204. 0 { → site}/docs/4.1/examples/tooltip-viewport/tooltip-viewport.js
  205. 0 { → site}/docs/4.1/extend/approach.md
  206. 0 { → site}/docs/4.1/extend/icons.md
  207. 0 { → site}/docs/4.1/extend/index.md
  208. 0 { → site}/docs/4.1/getting-started/accessibility.md
  209. 0 { → site}/docs/4.1/getting-started/best-practices.md
  210. 0 { → site}/docs/4.1/getting-started/browsers-devices.md
  211. 0 { → site}/docs/4.1/getting-started/build-tools.md
  212. 0 { → site}/docs/4.1/getting-started/contents.md
  213. 0 { → site}/docs/4.1/getting-started/download.md
  214. 0 { → site}/docs/4.1/getting-started/introduction.md
  215. 0 { → site}/docs/4.1/getting-started/javascript.md
  216. 0 { → site}/docs/4.1/getting-started/theming.md
  217. 0 { → site}/docs/4.1/getting-started/webpack.md
  218. 0 { → site}/docs/4.1/layout/grid.md
  219. 0 { → site}/docs/4.1/layout/media-object.md
  220. 0 { → site}/docs/4.1/layout/overview.md
  221. 0 { → site}/docs/4.1/layout/utilities-for-layout.md
  222. 0 { → site}/docs/4.1/migration.md
  223. 0 { → site}/docs/4.1/utilities/borders.md
  224. 0 { → site}/docs/4.1/utilities/clearfix.md
  225. 0 { → site}/docs/4.1/utilities/close-icon.md
  226. 0 { → site}/docs/4.1/utilities/colors.md
  227. 0 { → site}/docs/4.1/utilities/display.md
  228. 0 { → site}/docs/4.1/utilities/embed.md
  229. 0 { → site}/docs/4.1/utilities/flex.md
  230. 0 { → site}/docs/4.1/utilities/float.md
  231. +1 −1 { → site}/docs/4.1/utilities/image-replacement.md
  232. 0 { → site}/docs/4.1/utilities/position.md
  233. 0 { → site}/docs/4.1/utilities/screenreaders.md
  234. 0 { → site}/docs/4.1/utilities/shadows.md
  235. 0 { → site}/docs/4.1/utilities/sizing.md
  236. 0 { → site}/docs/4.1/utilities/spacing.md
  237. 0 { → site}/docs/4.1/utilities/text.md
  238. 0 { → site}/docs/4.1/utilities/vertical-align.md
  239. 0 { → site}/docs/4.1/utilities/visibility.md
  240. BIN { → site}/favicon.ico
  241. +2 −2 { → site}/index.html
  242. 0 { → site}/robots.txt
  243. +1 −1 { → site}/sw.js
View
@@ -1,6 +1,7 @@
# Ignore docs files
_gh_pages
_site
site/docs/4.1/dist/
# Ignore ruby files
.ruby-version
View
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://getbootstrap.com/">
<img src="https://getbootstrap.com/docs/4.1/assets/brand/bootstrap-solid.svg" alt="Logo" width=72 height=72>
<img src="https://getbootstrap.com/docs/4.1/assets/brand/bootstrap-solid.svg" alt="Bootstrap logo" width=72 height=72>
</a>
<h3 align="center">Bootstrap</h3>
@@ -111,11 +111,11 @@ Have a bug or a feature request? Please first read the [issue guidelines](https:
Bootstrap's documentation, included in this repo in the root directory, is built with [Jekyll](https://jekyllrb.com/) 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 `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/docs/4.1/assets/js/src/search.js` file.
### Running documentation locally
1. Run through the [tooling setup](https://getbootstrap.com/docs/4.0/getting-started/build-tools/#tooling-setup) to install Jekyll (the site builder) and other Ruby dependencies with `bundle install`.
1. Run through the [tooling setup](https://getbootstrap.com/docs/4.1/getting-started/build-tools/#tooling-setup) to install Jekyll (the site builder) and other Ruby dependencies with `bundle install`.
2. Run `npm install` to install Node.js dependencies.
3. Run `npm run test` (or a specific NPM script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
4. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
View
@@ -9,33 +9,15 @@ kramdown:
permalink: pretty
# Server
source: "."
source: "site"
destination: ./_gh_pages
host: 0.0.0.0
port: 9001
baseurl: ""
url: "https://getbootstrap.com"
encoding: UTF-8
exclude:
- .git/
- .github/
- assets/scss/
- build/
- js/
- node_modules/
- nuget/
- scss/
- vendor/
- CODE_OF_CONDUCT.md
- composer.json
- Gemfile
- Gemfile.lock
- package.js
- package.json
- package-lock.json
- README.md
- sache.json
- twbsconfig.yml
- docs/4.1/assets/scss/
plugins:
- jekyll-redirect-from
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
View
@@ -34,11 +34,11 @@ const files = [
configPropertyName: 'js_hash'
},
{
file: 'assets/js/vendor/jquery-slim.min.js',
file: 'site/docs/4.1/assets/js/vendor/jquery-slim.min.js',
configPropertyName: 'jquery_hash'
},
{
file: 'assets/js/vendor/popper.min.js',
file: 'site/docs/4.1/assets/js/vendor/popper.min.js',
configPropertyName: 'popper_hash'
}
]
@@ -3,6 +3,6 @@
"globPatterns": [
"_gh_pages/**/*.{html,css,js,json,png,svg}"
],
"swSrc": "./sw.js",
"swSrc": "./site/sw.js",
"swDest": "./_gh_pages/sw.js"
}
View
@@ -16,7 +16,7 @@ const buildPrefix = '_gh_pages/'
const workboxSWSrcPath = require.resolve('workbox-sw')
const wbFileName = path.basename(workboxSWSrcPath)
const workboxSWDestPath = `${buildPrefix}assets/js/vendor/${wbFileName}`
const workboxSWDestPath = `${buildPrefix}docs/4.1/assets/js/vendor/${wbFileName}`
const workboxSWSrcMapPath = `${workboxSWSrcPath}.map`
const workboxSWDestMapPath = `${workboxSWDestPath}.map`
View
@@ -8,7 +8,7 @@
<!-- jQuery -->
<script>
(function () {
var path = '../../assets/js/vendor/jquery-slim.min.js'
var path = '../../site/docs/4.1/assets/js/vendor/jquery-slim.min.js'
// get jquery param from the query string.
var jQueryVersion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/)
@@ -19,7 +19,7 @@
document.write('<script src="' + path + '"><\/script>')
}())
</script>
<script src="../../assets/js/vendor/popper.min.js"></script>
<script src="../../site/docs/4.1/assets/js/vendor/popper.min.js"></script>
<!-- QUnit -->
<link rel="stylesheet" href="../../node_modules/qunit/qunit/qunit.css" media="screen">
@@ -2,7 +2,7 @@
/* eslint no-process-env: 0 */
module.exports = (config) => {
const jqueryFile = process.env.USE_OLD_JQUERY ? 'https://code.jquery.com/jquery-1.9.1.min.js' : 'assets/js/vendor/jquery-slim.min.js'
const jqueryFile = process.env.USE_OLD_JQUERY ? 'https://code.jquery.com/jquery-1.9.1.min.js' : 'site/docs/4.1/assets/js/vendor/jquery-slim.min.js'
config.set({
basePath: '../..',
@@ -17,7 +17,7 @@ module.exports = (config) => {
// list of files / patterns to load in the browser
files: [
jqueryFile,
'assets/js/vendor/popper.min.js',
'site/docs/4.1/assets/js/vendor/popper.min.js',
'dist/js/bootstrap.js',
'js/tests/unit/*.js'
],
View
@@ -4,7 +4,7 @@ const path = require('path')
const jsCoveragePath = path.resolve(__dirname, '../coverage')
module.exports = (config) => {
const jqueryFile = process.env.USE_OLD_JQUERY ? 'https://code.jquery.com/jquery-1.9.1.min.js' : 'assets/js/vendor/jquery-slim.min.js'
const jqueryFile = process.env.USE_OLD_JQUERY ? 'https://code.jquery.com/jquery-1.9.1.min.js' : 'site/docs/4.1/assets/js/vendor/jquery-slim.min.js'
config.set({
basePath: '../..',
@@ -20,7 +20,7 @@ module.exports = (config) => {
// list of files / patterns to load in the browser
files: [
jqueryFile,
'assets/js/vendor/popper.min.js',
'site/docs/4.1/assets/js/vendor/popper.min.js',
'js/coverage/dist/util.js',
'js/coverage/dist/tooltip.js',
'js/coverage/dist/!(util|index|tooltip).js', // include all of our js/dist files except util.js, index.js and tooltip.js
View
@@ -11,7 +11,7 @@
<summary>Bootstrap framework in CSS. Includes fonts and JavaScript</summary>
<language>en-us</language>
<projectUrl>https://getbootstrap.com/</projectUrl>
<iconUrl>https://getbootstrap.com/assets/img/favicons/apple-touch-icon.png</iconUrl>
<iconUrl>https://getbootstrap.com/docs/4.1/assets/img/favicons/apple-touch-icon.png</iconUrl>
<licenseUrl>https://github.com/twbs/bootstrap/blob/master/LICENSE</licenseUrl>
<copyright>Copyright 2017-2018</copyright>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
@@ -11,7 +11,7 @@
<summary>Bootstrap framework in Sass. Includes fonts and JavaScript</summary>
<language>en-us</language>
<projectUrl>https://getbootstrap.com/</projectUrl>
<iconUrl>https://getbootstrap.com/assets/img/favicons/apple-touch-icon.png</iconUrl>
<iconUrl>https://getbootstrap.com/docs/4.1/assets/img/favicons/apple-touch-icon.png</iconUrl>
<licenseUrl>https://github.com/twbs/bootstrap/blob/master/LICENSE</licenseUrl>
<copyright>Copyright 2017-2018</copyright>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
View
@@ -21,23 +21,25 @@
"http-server": "http-server --silent -p 3000",
"bundlesize": "bundlesize",
"check-broken-links": "npm-run-all --parallel --race \"http-server -- _gh_pages/\" blc",
"css": "npm-run-all --parallel css-lint* css-compile* --sequential css-prefix* css-minify*",
"css": "npm-run-all --parallel css-lint* css-compile* --sequential css-prefix* css-minify* css-copy",
"css-main": "npm-run-all --parallel css-lint css-compile --sequential css-prefix css-minify",
"css-docs": "npm-run-all --parallel css-lint-docs css-compile-docs --sequential css-prefix-docs css-minify-docs",
"css-compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap.scss dist/css/bootstrap.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-grid.scss dist/css/bootstrap-grid.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-reboot.scss dist/css/bootstrap-reboot.css",
"css-compile-docs": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 assets/scss/docs.scss assets/css/docs.min.css",
"css-compile-docs": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 site/docs/4.1/assets/scss/docs.scss site/docs/4.1/assets/css/docs.min.css",
"css-copy": "shx mkdir -p site/docs/4.1/dist/ && shx cp -r dist/css/ site/docs/4.1/dist/",
"css-lint": "stylelint --syntax scss \"scss/**/*.scss\"",
"css-lint-docs": "stylelint --syntax scss \"assets/scss/*.scss\" && stylelint \"docs/**/*.css\"",
"css-lint-vars": "node build/lint-vars.js scss/ assets/scss/",
"css-lint-docs": "stylelint --syntax scss \"site/docs/4.1/assets/scss/*.scss\" && stylelint \"docs/**/*.css\"",
"css-lint-vars": "node build/lint-vars.js scss/ site/docs/4.1/assets/scss/",
"css-prefix": "postcss --config build/postcss.config.js --replace \"dist/css/*.css\" \"!dist/css/*.min.css\"",
"css-prefix-docs": "postcss --config build/postcss.config.js --replace \"assets/css/docs.min.css\" \"docs/**/*.css\"",
"css-prefix-docs": "postcss --config build/postcss.config.js --replace \"site/docs/4.1/assets/css/docs.min.css\" \"docs/**/*.css\"",
"css-minify": "cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap.min.css dist/css/bootstrap.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap-grid.min.css dist/css/bootstrap-grid.css && cleancss --level 1 --source-map --source-map-inline-sources --output dist/css/bootstrap-reboot.min.css dist/css/bootstrap-reboot.css",
"css-minify-docs": "cleancss --level 1 --source-map --source-map-inline-sources --output assets/css/docs.min.css assets/css/docs.min.css",
"js": "npm-run-all js-lint* js-compile js-minify",
"css-minify-docs": "cleancss --level 1 --source-map --source-map-inline-sources --output site/docs/4.1/assets/css/docs.min.css site/docs/4.1/assets/css/docs.min.css",
"js": "npm-run-all js-lint* js-compile js-minify js-copy",
"js-copy": "shx mkdir -p site/docs/4.1/dist/ && shx cp -r dist/js/ site/docs/4.1/dist/",
"js-main": "npm-run-all js-lint js-compile js-minify",
"js-docs": "npm-run-all js-lint-docs js-minify-docs",
"js-lint": "eslint js/src js/tests build/",
"js-lint-docs": "eslint assets/js/ docs/ sw.js",
"js-lint-docs": "eslint site/docs/4.1/assets/js/ site/sw.js",
"js-compile": "npm-run-all --parallel js-compile-*",
"js-compile-standalone": "rollup --environment BUNDLE:false --config build/rollup.config.js --sourcemap",
"js-compile-bundle": "rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap",
@@ -46,7 +48,7 @@
"js-minify": "npm-run-all --parallel js-minify-*",
"js-minify-standalone": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.js.map,includeSources,url=bootstrap.min.js.map\" --output dist/js/bootstrap.min.js dist/js/bootstrap.js",
"js-minify-bundle": "uglifyjs --compress typeofs=false --mangle --comments \"/^!/\" --source-map \"content=dist/js/bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map\" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js",
"js-minify-docs": "uglifyjs --mangle --comments \"/^!/\" --output assets/js/docs.min.js assets/js/vendor/anchor.min.js assets/js/vendor/clipboard.min.js assets/js/vendor/holder.min.js \"assets/js/src/*.js\"",
"js-minify-docs": "uglifyjs --mangle --comments \"/^!/\" --output site/docs/4.1/assets/js/docs.min.js site/docs/4.1/assets/js/vendor/anchor.min.js site/docs/4.1/assets/js/vendor/clipboard.min.js site/docs/4.1/assets/js/vendor/holder.min.js \"site/docs/4.1/assets/js/src/*.js\"",
"js-test": "npm-run-all js-test-karma*",
"js-test-karma": "karma start js/tests/karma.conf.js",
"js-test-karma-old": "cross-env USE_OLD_JQUERY=true npm run js-test-karma",
@@ -64,7 +66,7 @@
"docs-lint-vnu-jar": "node build/vnu-jar.js",
"docs-serve": "bundle exec jekyll serve",
"docs-workbox-precache": "node build/workbox.js",
"maintenance-dependencies": "ncu -a -x jquery && npm update && bundle update && shx echo \"Manually update assets/js/vendor/*, js/tests/vendor/* and .travis.yml\"",
"maintenance-dependencies": "ncu -a -x jquery && npm update && bundle update && shx echo \"Manually update site/docs/4.1/assets/js/vendor/*, js/tests/vendor/* and .travis.yml\"",
"release-sri": "node build/generate-sri.js",
"release-version": "node build/change-version.js",
"release-zip": "cd dist/ && zip -r9 bootstrap-$npm_package_version-dist.zip * && shx mv bootstrap-$npm_package_version-dist.zip ..",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,9 @@
<!-- Favicons -->
<link rel="apple-touch-icon" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
<link rel="icon" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
<link rel="icon" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
<link rel="manifest" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/favicons/manifest.json">
<link rel="mask-icon" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/favicons/safari-pinned-tab.svg" color="#563d7c">
<link rel="icon" href="{{ site.baseurl }}/favicon.ico">
<meta name="msapplication-config" content="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/img/favicons/browserconfig.xml">
<meta name="theme-color" content="#563d7c">
File renamed without changes.
@@ -14,16 +14,16 @@
<!-- Bootstrap core CSS -->
{% if site.github %}
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
<link href="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/css/bootstrap.min.css" rel="stylesheet" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
{% else %}
<link href="{{ site.baseurl }}/dist/css/bootstrap.css" rel="stylesheet">
<link href="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/css/bootstrap.css" rel="stylesheet">
{% endif %}
<!-- Documentation extras -->
{% if page.layout == "docs" %}
<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet">
{% endif %}
<link href="{{ site.baseurl }}/assets/css/docs.min.css" rel="stylesheet">
<link href="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/css/docs.min.css" rel="stylesheet">
{% include favicons.html %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,26 @@
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/popper.min.js"{% if site.github %} integrity="{{ site.cdn.popper_hash }}" crossorigin="anonymous"{% endif %}></script>
{%- if site.github -%}
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.min.js" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
{%- else -%}
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/dist/js/bootstrap.js"></script>
{%- endif -%}
{%- if page.layout == "docs" -%}
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
{%- endif -%}
{%- if site.github -%}
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/docs.min.js"></script>
{%- else -%}
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/anchor.min.js"></script>
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/clipboard.min.js"></script>
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/vendor/holder.min.js"></script>
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/src/application.js"></script>
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/src/search.js"></script>
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/src/ie-emulation-modes-warning.js"></script>
<script src="{{ site.baseurl }}/docs/{{ site.docs_version }}/assets/js/src/pwa.js"></script>
{%- endif -%}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.

0 comments on commit 0e920ce

Please sign in to comment.