Skip to content

Remove docs static site and add build workflow #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference types="astro/client" />
/// <reference path="content.d.ts" />
3 changes: 2 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"dbaeumer",
"fediverse",
"Merbivore",
"Monokai"
"Monokai",
"SARIF"
],
"allowCompoundWords": true,
"language": "en,en-US",
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Website

on:
pull_request:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4

- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: package-lock.json

- name: 📥 Download deps
run: npm ci

- name: Run build
run: npm run build

- name: Run HTMLHint (SARIF)
run: |
cd website
npm run htmlhint-sarif || true
# Continue even if HTMLHint finds issues

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: website/htmlhint.sarif
category: HTMLHint
if: always()
7 changes: 3 additions & 4 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Lint Code Base
on:
push:
branches-ignore:
- "dependabot/**"
- 'dependabot/**'
pull_request:
branches-ignore:
- "dependabot/**"
- 'dependabot/**'

permissions:
contents: read
Expand All @@ -32,7 +32,7 @@ jobs:
uses: super-linter/super-linter/slim@v8
env:
DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: "/test/"
FILTER_REGEX_EXCLUDE: '/test/'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IGNORE_GITIGNORED_FILES: true
LINTER_RULES_PATH: /
Expand All @@ -45,7 +45,6 @@ jobs:
VALIDATE_EDITORCONFIG: false
VALIDATE_GIT_COMMITLINT: false
VALIDATE_HTML_PRETTIER: false
VALIDATE_JAVASCRIPT_ES: false
VALIDATE_JAVASCRIPT_PRETTIER: false
VALIDATE_JSON_PRETTIER: false
VALIDATE_JSCPD: false
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,20 @@ A modern, interactive playground for testing HTMLHint rules and configurations.
### Installation

1. Clone the repository:

```bash
git clone https://github.com/htmlhint/htmlhint-playground.git
cd htmlhint-playground
```

2. Install dependencies:

```bash
npm install
```

3. Start the development server:

```bash
npm run dev
```
Expand Down
1 change: 0 additions & 1 deletion docs/CNAME

This file was deleted.

6 changes: 0 additions & 6 deletions docs/css/bootstrap.min.css

This file was deleted.

63 changes: 0 additions & 63 deletions docs/css/index.css

This file was deleted.

Binary file removed docs/favicon.ico
Binary file not shown.
1 change: 0 additions & 1 deletion docs/google1384d6b42e54bfcc.html

This file was deleted.

176 changes: 0 additions & 176 deletions docs/index.html

This file was deleted.

Loading