Skip to content

Commit 5a5b8c1

Browse files
authored
docs: Update rules and GitHub Actions (#1724)
Removed 'New' badge from h1-require and main-require rule docs. Updated GitHub Actions usage docs to use latest actions/checkout@v5 and actions/setup-node@v5, and set persist-credentials to false.
1 parent 8a3a247 commit 5a5b8c1

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
open_collective: htmlhint
2+
ko_fi: coliff
3+
github: coliff

website/src/content/docs/rules/h1-require.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
id: h1-require
33
title: h1-require
44
description: Ensures that an HTML document contains at least one `<h1>` element for proper document structure and accessibility.
5-
sidebar:
6-
badge: New
75
---
86

97
import { Badge } from '@astrojs/starlight/components';

website/src/content/docs/rules/main-require.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
id: main-require
33
title: main-require
44
description: Ensures that an HTML document contains a `<main>` element within the `<body>` tag for proper document structure and accessibility.
5-
sidebar:
6-
badge: New
75
---
86

97
import { Badge } from '@astrojs/starlight/components';

website/src/content/docs/usage/github-code-scanning.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ To set up HTMLHint with GitHub Code Scanning, you need to create a workflow file
2222

2323
```yaml
2424
name: HTMLHint (SARIF) Code Scanning
25+
2526
on:
2627
pull_request:
2728
branches:
@@ -33,10 +34,12 @@ jobs:
3334
runs-on: ubuntu-latest
3435
steps:
3536
- name: Checkout code
36-
uses: actions/checkout@v4
37+
uses: actions/checkout@v5
38+
with:
39+
persist-credentials: false
3740

3841
- name: Set up Node.js
39-
uses: actions/setup-node@v4
42+
uses: actions/setup-node@v5
4043

4144
# If you need a website build script, include the steps here
4245

0 commit comments

Comments
 (0)