Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2018-06-21 07:31:38 +0300
committerMark Otto <otto@github.com>2018-07-12 09:30:46 +0300
commit0e920ce3f481a23c00c22c10565463ce58c0aac2 (patch)
treeb66e8c4bf2244d3b71d7f2e6f2376ae528f6bd93 /build
parent9e126b26a863505b048bc927c6c6f731d42d2ba4 (diff)
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.
Diffstat (limited to 'build')
-rw-r--r--build/generate-sri.js4
-rw-r--r--build/workbox.config.json2
-rw-r--r--build/workbox.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/build/generate-sri.js b/build/generate-sri.js
index f6790e4404..10936e8a1b 100644
--- a/build/generate-sri.js
+++ b/build/generate-sri.js
@@ -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'
}
]
diff --git a/build/workbox.config.json b/build/workbox.config.json
index 0dcfadac70..a649431ed7 100644
--- a/build/workbox.config.json
+++ b/build/workbox.config.json
@@ -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"
}
diff --git a/build/workbox.js b/build/workbox.js
index 1aa6a608a8..3a7ba450a8 100644
--- a/build/workbox.js
+++ b/build/workbox.js
@@ -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`