Skip to content

Commit 977c366

Browse files
authored
Rename _gh_pages to _site. (#33129)
1 parent 48a95f7 commit 977c366

9 files changed

+10
-10
lines changed

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**/*.min.js
22
**/dist/
33
**/vendor/
4-
/_gh_pages/
4+
/_site/
55
/js/coverage/
66
/site/static/sw.js

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Ignore docs files
2-
/_gh_pages/
2+
/_site/
33
# Hugo resources folder
44
/resources/
55

.stylelintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**/*.min.css
22
**/dist/
33
**/vendor/
4-
/_gh_pages/
4+
/_site/
55
/js/coverage/

build/change-version.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function main(args) {
9090
const newVersion = args[1]
9191
const EXCLUDED_DIRS = new Set([
9292
'.git',
93-
'_gh_pages',
93+
'_site',
9494
'node_modules',
9595
'resources'
9696
])

build/ship.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ npm run release
4747
printf "\n%s=======================================================%s" "$magenta" "$end"
4848
printf "\n%sCopy it over...%s" "$magenta" "$end"
4949
printf "\n%s=======================================================\n%s" "$magenta" "$end"
50-
cp -rf _gh_pages/. ../bs-docs/
50+
cp -rf _site/. ../bs-docs/
5151
printf "\nDone!\n"
5252

5353
printf "\n%s=======================================================%s" "$green" "$end"

build/vnu-jar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ childProcess.exec('java -version', (error, stdout, stderr) => {
4949
'--no-langdetect',
5050
'--Werror',
5151
`--filterpattern "${ignores}"`,
52-
'_gh_pages/',
52+
'_site/',
5353
'js/tests/'
5454
]
5555

build/zip-examples.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const pkg = require('../package.json')
1616

1717
const versionShort = pkg.config.version_short
1818
const distFolder = `bootstrap-${pkg.version}-examples`
19-
const rootDocsDir = '_gh_pages'
19+
const rootDocsDir = '_site'
2020
const docsDir = `${rootDocsDir}/docs/${versionShort}/`
2121

2222
// these are the files we need in the examples

config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ enableRobotsTXT: true
2020
metaDataFormat: "yaml"
2121
disableKinds: ["404", "taxonomy", "taxonomyTerm", "RSS"]
2222

23-
publishDir: "_gh_pages"
23+
publishDir: "_site"
2424

2525
module:
2626
mounts:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757
"docs": "npm-run-all docs-build docs-lint",
5858
"docs-build": "hugo --cleanDestinationDir",
5959
"docs-compile": "npm run docs-build",
60-
"docs-linkinator": "linkinator _gh_pages --recurse --skip \"^(?!http://localhost)\" --verbosity error",
60+
"docs-linkinator": "linkinator _site --recurse --skip \"^(?!http://localhost)\" --verbosity error",
6161
"docs-vnu": "node build/vnu-jar.js",
6262
"docs-lint": "npm-run-all --parallel docs-vnu docs-linkinator",
6363
"docs-serve": "hugo server --port 9001 --disableFastRender",
64-
"docs-serve-only": "npx sirv-cli _gh_pages --port 9001",
64+
"docs-serve-only": "npx sirv-cli _site --port 9001",
6565
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
6666
"update-deps": "ncu -u -x karma-browserstack-launcher,terser && npm update && echo Manually update site/assets/js/vendor",
6767
"release": "npm-run-all dist release-sri docs-build release-zip*",

0 commit comments

Comments
 (0)