Skip to content

Commit f72b8e6

Browse files
authored
Merge pull request #17 from htmlhint/dev/coliff/build-site-action
Remove docs static site and add build workflow
2 parents 0ec657c + 7288862 commit f72b8e6

File tree

11 files changed

+47
-252
lines changed

11 files changed

+47
-252
lines changed

.astro/types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/// <reference types="astro/client" />
2+
/// <reference path="content.d.ts" />

.cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"dbaeumer",
55
"fediverse",
66
"Merbivore",
7-
"Monokai"
7+
"Monokai",
8+
"SARIF"
89
],
910
"allowCompoundWords": true,
1011
"language": "en,en-US",

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Website
2+
3+
on:
4+
pull_request:
5+
push:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: ⬇️ Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: ⎔ Setup node
16+
uses: actions/setup-node@v4
17+
with:
18+
cache: npm
19+
cache-dependency-path: package-lock.json
20+
21+
- name: 📥 Download deps
22+
run: npm ci
23+
24+
- name: Run build
25+
run: npm run build
26+
27+
- name: Run HTMLHint (SARIF)
28+
run: |
29+
cd website
30+
npm run htmlhint-sarif || true
31+
# Continue even if HTMLHint finds issues
32+
33+
- name: Upload SARIF file
34+
uses: github/codeql-action/upload-sarif@v3
35+
with:
36+
sarif_file: website/htmlhint.sarif
37+
category: HTMLHint
38+
if: always()

.github/workflows/super-linter.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Lint Code Base
33
on:
44
push:
55
branches-ignore:
6-
- "dependabot/**"
6+
- 'dependabot/**'
77
pull_request:
88
branches-ignore:
9-
- "dependabot/**"
9+
- 'dependabot/**'
1010

1111
permissions:
1212
contents: read
@@ -32,7 +32,7 @@ jobs:
3232
uses: super-linter/super-linter/slim@v8
3333
env:
3434
DEFAULT_BRANCH: main
35-
FILTER_REGEX_EXCLUDE: "/test/"
35+
FILTER_REGEX_EXCLUDE: '/test/'
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
IGNORE_GITIGNORED_FILES: true
3838
LINTER_RULES_PATH: /
@@ -45,7 +45,6 @@ jobs:
4545
VALIDATE_EDITORCONFIG: false
4646
VALIDATE_GIT_COMMITLINT: false
4747
VALIDATE_HTML_PRETTIER: false
48-
VALIDATE_JAVASCRIPT_ES: false
4948
VALIDATE_JAVASCRIPT_PRETTIER: false
5049
VALIDATE_JSON_PRETTIER: false
5150
VALIDATE_JSCPD: false

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,20 @@ A modern, interactive playground for testing HTMLHint rules and configurations.
3333
### Installation
3434

3535
1. Clone the repository:
36+
3637
```bash
3738
git clone https://github.com/htmlhint/htmlhint-playground.git
3839
cd htmlhint-playground
3940
```
4041

4142
2. Install dependencies:
43+
4244
```bash
4345
npm install
4446
```
4547

4648
3. Start the development server:
49+
4750
```bash
4851
npm run dev
4952
```

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/css/bootstrap.min.css

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/css/index.css

Lines changed: 0 additions & 63 deletions
This file was deleted.

docs/favicon.ico

-1.12 KB
Binary file not shown.

docs/google1384d6b42e54bfcc.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)