mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
chore: enhance documentation workflow and update GitHub Actions
- Added a new script in package.json to start documentation locally. - Updated GitHub Actions workflow to enable concurrent deployments for GitHub Pages and included a step to configure GitHub Pages. These changes improve the documentation development process and streamline deployment to GitHub Pages.
This commit is contained in:
parent
f8b3299c1f
commit
84790de7e7
2 changed files with 6 additions and 2 deletions
5
.github/workflows/docs.yml
vendored
5
.github/workflows/docs.yml
vendored
|
@ -16,7 +16,7 @@ permissions:
|
||||||
# Allow only one concurrent deployment
|
# Allow only one concurrent deployment
|
||||||
concurrency:
|
concurrency:
|
||||||
group: "pages"
|
group: "pages"
|
||||||
cancel-in-progress: false
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -31,6 +31,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Configure GitHub Pages
|
||||||
|
uses: actions/configure-pages@v4
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
"format": "prettier --write resources/",
|
"format": "prettier --write resources/",
|
||||||
"format:check": "prettier --check resources/",
|
"format:check": "prettier --check resources/",
|
||||||
"lint": "eslint . --fix",
|
"lint": "eslint . --fix",
|
||||||
"types": "tsc --noEmit"
|
"types": "tsc --noEmit",
|
||||||
|
"docs": "cd docs && npm run start"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.19.0",
|
"@eslint/js": "^9.19.0",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue