mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-28 10:24:19 +01:00
Rename _gh_pages to _site. (#33129)
This commit is contained in:
parent
6692d1ed47
commit
cf70a58149
@ -1,6 +1,6 @@
|
|||||||
**/*.min.js
|
**/*.min.js
|
||||||
**/dist/
|
**/dist/
|
||||||
**/vendor/
|
**/vendor/
|
||||||
/_gh_pages/
|
/_site/
|
||||||
/js/coverage/
|
/js/coverage/
|
||||||
/site/static/sw.js
|
/site/static/sw.js
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
# Ignore docs files
|
# Ignore docs files
|
||||||
/_gh_pages/
|
/_site/
|
||||||
# Hugo folders
|
# Hugo folders
|
||||||
/resources/
|
/resources/
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
**/*.min.css
|
**/*.min.css
|
||||||
**/dist/
|
**/dist/
|
||||||
**/vendor/
|
**/vendor/
|
||||||
/_gh_pages/
|
/_site/
|
||||||
/js/coverage/
|
/js/coverage/
|
||||||
|
@ -88,7 +88,7 @@ function main(args) {
|
|||||||
const newVersion = args[1]
|
const newVersion = args[1]
|
||||||
const EXCLUDED_DIRS = new Set([
|
const EXCLUDED_DIRS = new Set([
|
||||||
'.git',
|
'.git',
|
||||||
'_gh_pages',
|
'_site',
|
||||||
'node_modules',
|
'node_modules',
|
||||||
'resources'
|
'resources'
|
||||||
])
|
])
|
||||||
|
@ -47,7 +47,7 @@ npm run release
|
|||||||
printf "\n%s=======================================================%s" "$magenta" "$end"
|
printf "\n%s=======================================================%s" "$magenta" "$end"
|
||||||
printf "\n%sCopy it over...%s" "$magenta" "$end"
|
printf "\n%sCopy it over...%s" "$magenta" "$end"
|
||||||
printf "\n%s=======================================================\n%s" "$magenta" "$end"
|
printf "\n%s=======================================================\n%s" "$magenta" "$end"
|
||||||
cp -rf _gh_pages/. ../bs-docs/
|
cp -rf _site/. ../bs-docs/
|
||||||
printf "\nDone!\n"
|
printf "\nDone!\n"
|
||||||
|
|
||||||
printf "\n%s=======================================================%s" "$green" "$end"
|
printf "\n%s=======================================================%s" "$green" "$end"
|
||||||
|
@ -48,7 +48,7 @@ childProcess.exec('java -version', (error, stdout, stderr) => {
|
|||||||
'--no-langdetect',
|
'--no-langdetect',
|
||||||
'--Werror',
|
'--Werror',
|
||||||
`--filterpattern "${ignores}"`,
|
`--filterpattern "${ignores}"`,
|
||||||
'_gh_pages/',
|
'_site/',
|
||||||
'js/tests/'
|
'js/tests/'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ const pkg = require('../package.json')
|
|||||||
|
|
||||||
const versionShort = pkg.config.version_short
|
const versionShort = pkg.config.version_short
|
||||||
const distFolder = `bootstrap-${pkg.version}-examples`
|
const distFolder = `bootstrap-${pkg.version}-examples`
|
||||||
const rootDocsDir = '_gh_pages'
|
const rootDocsDir = '_site'
|
||||||
const docsDir = `${rootDocsDir}/docs/${versionShort}/`
|
const docsDir = `${rootDocsDir}/docs/${versionShort}/`
|
||||||
|
|
||||||
// these are the files we need in the examples
|
// these are the files we need in the examples
|
||||||
|
@ -20,7 +20,7 @@ enableRobotsTXT: true
|
|||||||
metaDataFormat: "yaml"
|
metaDataFormat: "yaml"
|
||||||
disableKinds: ["404", "taxonomy", "taxonomyTerm", "RSS"]
|
disableKinds: ["404", "taxonomy", "taxonomyTerm", "RSS"]
|
||||||
|
|
||||||
publishDir: "_gh_pages"
|
publishDir: "_site"
|
||||||
|
|
||||||
module:
|
module:
|
||||||
mounts:
|
mounts:
|
||||||
|
@ -52,11 +52,11 @@
|
|||||||
"docs": "npm-run-all docs-build docs-lint",
|
"docs": "npm-run-all docs-build docs-lint",
|
||||||
"docs-build": "hugo --cleanDestinationDir",
|
"docs-build": "hugo --cleanDestinationDir",
|
||||||
"docs-compile": "npm run docs-build",
|
"docs-compile": "npm run docs-build",
|
||||||
"docs-linkinator": "linkinator _gh_pages --recurse --skip \"^(?!http://localhost)\" --verbosity error",
|
"docs-linkinator": "linkinator _site --recurse --skip \"^(?!http://localhost)\" --verbosity error",
|
||||||
"docs-vnu": "node build/vnu-jar.js",
|
"docs-vnu": "node build/vnu-jar.js",
|
||||||
"docs-lint": "npm-run-all --parallel docs-vnu docs-linkinator",
|
"docs-lint": "npm-run-all --parallel docs-vnu docs-linkinator",
|
||||||
"docs-serve": "hugo server --port 9001 --disableFastRender",
|
"docs-serve": "hugo server --port 9001 --disableFastRender",
|
||||||
"docs-serve-only": "npx sirv-cli _gh_pages --port 9001",
|
"docs-serve-only": "npx sirv-cli _site --port 9001",
|
||||||
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
|
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
|
||||||
"update-deps": "ncu -u -x \"jquery,karma-browserstack-launcher,sinon,terser\" && npm update && echo Manually update site/assets/js/vendor",
|
"update-deps": "ncu -u -x \"jquery,karma-browserstack-launcher,sinon,terser\" && npm update && echo Manually update site/assets/js/vendor",
|
||||||
"release": "npm-run-all dist release-sri docs-build release-zip*",
|
"release": "npm-run-all dist release-sri docs-build release-zip*",
|
||||||
|
Loading…
Reference in New Issue
Block a user