]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Docs: restore local dev port to 9001 (#41545)
authorPatrice Chalin <chalin@users.noreply.github.com>
Mon, 16 Jun 2025 21:56:15 +0000 (17:56 -0400)
committerGitHub <noreply@github.com>
Mon, 16 Jun 2025 21:56:15 +0000 (23:56 +0200)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
.github/workflows/docs.yml
README.md
package.json
site/astro.config.ts
site/src/content/docs/getting-started/contribute.mdx

index 8cdf39327909274912442cfc9731f4bf29c1d8a3..d7c88aeb0c6089c368f072eb1fed8f5c757f1dbd 100644 (file)
@@ -47,4 +47,4 @@ jobs:
           paths: _site
           recurse: true
           verbosity: error
-          skip: "^(?!http://localhost)"
+          skip: "^http://localhost"
index ae38dcf7cb75eb683d15e8107f9a73c1b2ee5f7e..d996246bdc284128e6f389df345810a7b2625c05 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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).
 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.
-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/).
 
index 648d18e0dbec7aa56c6491852ecc7a065f3da0c3..7a910005f9402ffec6ee78aaee15251aed87d187 100644 (file)
     "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-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-preview": "astro preview --root site"
+    "astro-preview": "astro preview --root site --port 9001"
   },
   "peerDependencies": {
     "@popperjs/core": "^2.11.8"
index bb79984f2219f91a0db0a7fd5a43769b80bf53c3..400330f4a4cd67dc887aa79eafbb33a8a77d5390 100644 (file)
@@ -9,7 +9,7 @@ const isDev = process.env.NODE_ENV === 'development'
 
 const site = isDev
   ? // In development mode, use the local dev server.
-    'http://localhost:4321'
+    'http://localhost:9001'
   : process.env.DEPLOY_PRIME_URL !== undefined
     ? // If deploying on Netlify, use the `DEPLOY_PRIME_URL` environment variable.
       process.env.DEPLOY_PRIME_URL
index cf3783dfff110dd6f3cade30f33c1fa78ede9e66..e1af5dc2934f1015eb65d0454e05724c641b6b7b 100644 (file)
@@ -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.
 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/).