From 4c9b6017cdcbcce5eddae2647b5081f400d35050 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Mon, 8 Dec 2025 21:05:18 +0100 Subject: [PATCH 1/6] Improve website workflows --- .github/workflows/check-website.yml | 35 ++++++++++++++++++++++++++++ .github/workflows/deploy-website.yml | 4 ++++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/check-website.yml diff --git a/.github/workflows/check-website.yml b/.github/workflows/check-website.yml new file mode 100644 index 0000000..f0e79d7 --- /dev/null +++ b/.github/workflows/check-website.yml @@ -0,0 +1,35 @@ +name: Check Website + +on: + pull_request: + push: + paths: + - ".github/workflows/check-website.yml" + - "docs/**" + - "pnpm-lock.json" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: 22 + cache: "pnpm" + + - name: Install dependencies + run: pnpm install --filter @fedimod/fires-docs + + - name: Check formatting + run: pnpm --filter @fedimod/fires-docs -r format:check diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 72cbb20..35f3d88 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -2,6 +2,10 @@ name: Deploy Website on: push: + paths: + - ".github/workflows/deploy-website.yml" + - "docs/**" + - "pnpm-lock.json" workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages From 881ba9c6bcf69069773df74feedd3fc43e7b76d5 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Mon, 8 Dec 2025 21:07:17 +0100 Subject: [PATCH 2/6] Fix linting issue in website css --- docs/.vitepress/theme/custom.css | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index f322b94..ada4808 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -661,8 +661,11 @@ p + .custom-block.warning { margin-top: 24px; } -:is(.vp-external-link-icon, .vp-doc a[href*="://"], .vp-doc a[target="_blank"]):not(.no-icon)::after -{ +:is( + .vp-external-link-icon, + .vp-doc a[href*="://"], + .vp-doc a[target="_blank"] + ):not(.no-icon)::after { content: ""; color: inherit; transition: @@ -670,7 +673,10 @@ p + .custom-block.warning { opacity 0.25s; } -:is(.vp-external-link-icon, .vp-doc a[href*="://"], .vp-doc a[target="_blank"]):not(.no-icon):hover::after -{ +:is( + .vp-external-link-icon, + .vp-doc a[href*="://"], + .vp-doc a[target="_blank"] + ):not(.no-icon):hover::after { color: inherit; } From 4ad1080ca0f8b601ab4e06df46caaa939707da93 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Mon, 8 Dec 2025 21:08:00 +0100 Subject: [PATCH 3/6] Add changeset --- .changeset/pink-teams-shave.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/pink-teams-shave.md diff --git a/.changeset/pink-teams-shave.md b/.changeset/pink-teams-shave.md new file mode 100644 index 0000000..b89aae7 --- /dev/null +++ b/.changeset/pink-teams-shave.md @@ -0,0 +1,5 @@ +--- +"@fedimod/fires-docs": patch +--- + +Improve website workflows From 7b235603034a29917267b1f43eb9918af07dde60 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Mon, 8 Dec 2025 21:08:48 +0100 Subject: [PATCH 4/6] Add permissions --- .github/workflows/check-website.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check-website.yml b/.github/workflows/check-website.yml index f0e79d7..7fda792 100644 --- a/.github/workflows/check-website.yml +++ b/.github/workflows/check-website.yml @@ -12,6 +12,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: false +permissions: + contents: read + jobs: check: runs-on: ubuntu-latest From 7bc5dff3dfb38e9f2a9441abcaa2e9bfb93ad3e1 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Mon, 8 Dec 2025 21:12:43 +0100 Subject: [PATCH 5/6] Improve filtering for all workflows --- .github/workflows/check-website.yml | 8 ++++++++ .github/workflows/deploy-website.yml | 2 ++ .github/workflows/test-server.yml | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/.github/workflows/check-website.yml b/.github/workflows/check-website.yml index 7fda792..213c4a9 100644 --- a/.github/workflows/check-website.yml +++ b/.github/workflows/check-website.yml @@ -2,6 +2,11 @@ name: Check Website on: pull_request: + paths: + - ".github/workflows/check-website.yml" + - "docs/**" + - "pnpm-lock.json" + push: paths: - ".github/workflows/check-website.yml" @@ -36,3 +41,6 @@ jobs: - name: Check formatting run: pnpm --filter @fedimod/fires-docs -r format:check + + - name: Check build with VitePress + run: pnpm run --filter @fedimod/fires-docs build diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 35f3d88..146b98b 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -2,6 +2,8 @@ name: Deploy Website on: push: + branches: + - main paths: - ".github/workflows/deploy-website.yml" - "docs/**" diff --git a/.github/workflows/test-server.yml b/.github/workflows/test-server.yml index f971fcc..3911caf 100644 --- a/.github/workflows/test-server.yml +++ b/.github/workflows/test-server.yml @@ -2,11 +2,17 @@ name: Test Reference Server on: pull_request: + paths: + - ".github/workflows/test-server.yml" + - "components/fires-server/**" + - "pnpm-lock.json" + - "Dockerfile" push: paths: - ".github/workflows/test-server.yml" - "components/fires-server/**" - "pnpm-lock.json" + - "Dockerfile" # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. From 4db0ad03f0eeed1628a7d3dcf7eab62659e02bd4 Mon Sep 17 00:00:00 2001 From: Emelia Smith Date: Mon, 8 Dec 2025 21:13:57 +0100 Subject: [PATCH 6/6] Improve filtering for all workflows --- .github/workflows/check-website.yml | 2 ++ .github/workflows/test-server.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/check-website.yml b/.github/workflows/check-website.yml index 213c4a9..3e64444 100644 --- a/.github/workflows/check-website.yml +++ b/.github/workflows/check-website.yml @@ -8,6 +8,8 @@ on: - "pnpm-lock.json" push: + branches: + - main paths: - ".github/workflows/check-website.yml" - "docs/**" diff --git a/.github/workflows/test-server.yml b/.github/workflows/test-server.yml index 3911caf..72b5ac0 100644 --- a/.github/workflows/test-server.yml +++ b/.github/workflows/test-server.yml @@ -8,6 +8,8 @@ on: - "pnpm-lock.json" - "Dockerfile" push: + branches: + - main paths: - ".github/workflows/test-server.yml" - "components/fires-server/**"