mirror of https://github.com/twbs/bootstrap.git
Docs: restore local dev port to 9001 (#41545)
BrowserStack / browserstack (push) Waiting to run
Details
Bundlewatch / bundlewatch (push) Waiting to run
Details
CodeQL / Analyze (push) Waiting to run
Details
cspell / cspell (push) Waiting to run
Details
CSS / css (push) Waiting to run
Details
Docs / docs (push) Waiting to run
Details
JS Tests / JS Tests (push) Waiting to run
Details
Lint / lint (push) Waiting to run
Details
CSS (node-sass) / css (push) Waiting to run
Details
Release notes / update_release_draft (push) Waiting to run
Details
BrowserStack / browserstack (push) Waiting to run
Details
Bundlewatch / bundlewatch (push) Waiting to run
Details
CodeQL / Analyze (push) Waiting to run
Details
cspell / cspell (push) Waiting to run
Details
CSS / css (push) Waiting to run
Details
Docs / docs (push) Waiting to run
Details
JS Tests / JS Tests (push) Waiting to run
Details
Lint / lint (push) Waiting to run
Details
CSS (node-sass) / css (push) Waiting to run
Details
Release notes / update_release_draft (push) Waiting to run
Details
Co-authored-by: Julien Déramond <juderamond@gmail.com>
This commit is contained in:
parent
d83f33af3a
commit
e6eb77a442
|
@ -47,4 +47,4 @@ jobs:
|
||||||
paths: _site
|
paths: _site
|
||||||
recurse: true
|
recurse: true
|
||||||
verbosity: error
|
verbosity: error
|
||||||
skip: "^(?!http://localhost)"
|
skip: "^http://localhost"
|
||||||
|
|
|
@ -151,7 +151,7 @@ Documentation search is powered by [Algolia's DocSearch](https://docsearch.algol
|
||||||
1. Run `npm install` to install the Node.js dependencies, including Astro (the site builder).
|
1. Run `npm install` to install the Node.js dependencies, including Astro (the site builder).
|
||||||
2. Run `npm run test` (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
|
2. Run `npm run test` (or a specific npm script) to rebuild distributed CSS and JavaScript files, as well as our docs assets.
|
||||||
3. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
|
3. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
|
||||||
4. Open `http://localhost:9001/` in your browser, and voilà.
|
4. Open <http://localhost:9001> in your browser, and voilà.
|
||||||
|
|
||||||
Learn more about using Astro by reading its [documentation](https://docs.astro.build/en/getting-started/).
|
Learn more about using Astro by reading its [documentation](https://docs.astro.build/en/getting-started/).
|
||||||
|
|
||||||
|
|
|
@ -100,9 +100,9 @@
|
||||||
"watch-css-test": "nodemon --watch scss/ --ext scss,js --exec \"npm run css-test\"",
|
"watch-css-test": "nodemon --watch scss/ --ext scss,js --exec \"npm run css-test\"",
|
||||||
"watch-js-main": "nodemon --watch js/src/ --ext js --exec \"npm-run-all js-lint js-compile\"",
|
"watch-js-main": "nodemon --watch js/src/ --ext js --exec \"npm-run-all js-lint js-compile\"",
|
||||||
"watch-js-docs": "nodemon --watch site/src/assets/ --ext js --exec \"npm run js-lint\"",
|
"watch-js-docs": "nodemon --watch site/src/assets/ --ext js --exec \"npm run js-lint\"",
|
||||||
"astro-dev": "astro dev --root site",
|
"astro-dev": "astro dev --root site --port 9001",
|
||||||
"astro-build": "astro build --root site && rm -rf _site && cp -r site/dist _site",
|
"astro-build": "astro build --root site && rm -rf _site && cp -r site/dist _site",
|
||||||
"astro-preview": "astro preview --root site"
|
"astro-preview": "astro preview --root site --port 9001"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@popperjs/core": "^2.11.8"
|
"@popperjs/core": "^2.11.8"
|
||||||
|
|
|
@ -9,7 +9,7 @@ const isDev = process.env.NODE_ENV === 'development'
|
||||||
|
|
||||||
const site = isDev
|
const site = isDev
|
||||||
? // In development mode, use the local dev server.
|
? // In development mode, use the local dev server.
|
||||||
'http://localhost:4321'
|
'http://localhost:9001'
|
||||||
: process.env.DEPLOY_PRIME_URL !== undefined
|
: process.env.DEPLOY_PRIME_URL !== undefined
|
||||||
? // If deploying on Netlify, use the `DEPLOY_PRIME_URL` environment variable.
|
? // If deploying on Netlify, use the `DEPLOY_PRIME_URL` environment variable.
|
||||||
process.env.DEPLOY_PRIME_URL
|
process.env.DEPLOY_PRIME_URL
|
||||||
|
|
|
@ -56,7 +56,7 @@ Running our documentation locally requires the use of Astro. Astro is a modern s
|
||||||
|
|
||||||
1. Run through the [tooling setup](#tooling-setup) above to install all dependencies.
|
1. Run through the [tooling setup](#tooling-setup) above to install all dependencies.
|
||||||
2. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
|
2. From the root `/bootstrap` directory, run `npm run docs-serve` in the command line.
|
||||||
3. Open `http://localhost:4321/` in your browser, and voilà.
|
3. Open http://localhost:9001 in your browser, and voilà.
|
||||||
|
|
||||||
Learn more about using Astro by reading its [documentation](https://docs.astro.build/en/getting-started/).
|
Learn more about using Astro by reading its [documentation](https://docs.astro.build/en/getting-started/).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue