Skip to content

Commit 2e69eb6

Browse files
committed
Enable clean docs URLs and update deploy actions to Node 24
- Set cleanUrls so doc pages drop the .html suffix (works on GitHub Pages) - Bump deploy-docs actions to the Node 24 majors ahead of the Node 20 runner removal (checkout v6, setup-node v6, configure-pages v6, upload-pages-artifact v5, deploy-pages v5)
1 parent 2cc765e commit 2e69eb6

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v6
2727
with:
2828
fetch-depth: 0
2929

3030
- name: Setup Node
31-
uses: actions/setup-node@v4
31+
uses: actions/setup-node@v6
3232
with:
3333
node-version: 20
3434
cache: npm
3535
cache-dependency-path: docs/package-lock.json
3636

3737
- name: Setup Pages
38-
uses: actions/configure-pages@v5
38+
uses: actions/configure-pages@v6
3939

4040
- name: Install dependencies
4141
run: npm ci
@@ -46,7 +46,7 @@ jobs:
4646
working-directory: docs
4747

4848
- name: Upload artifact
49-
uses: actions/upload-pages-artifact@v3
49+
uses: actions/upload-pages-artifact@v5
5050
with:
5151
path: docs/.vitepress/dist
5252

@@ -59,4 +59,4 @@ jobs:
5959
steps:
6060
- name: Deploy to GitHub Pages
6161
id: deployment
62-
uses: actions/deploy-pages@v4
62+
uses: actions/deploy-pages@v5

docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default defineConfig({
44
title: 'cakephp-ide-helper',
55
description: 'Annotations, meta files, code-completion, and Illuminator tasks for CakePHP — boost IDE and static analyzer support.',
66
base: '/cakephp-ide-helper/',
7+
cleanUrls: true,
78
head: [
89
['link', { rel: 'icon', href: '/cakephp-ide-helper/favicon.svg', type: 'image/svg+xml' }],
910
],

0 commit comments

Comments
 (0)