Skip to content

Commit 405cc7c

Browse files
Docs: Update SEO and content (#1633)
* Docs: Update SEO and content * Update website/src/content/docs/usage/cli.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent e7eb174 commit 405cc7c

File tree

9 files changed

+41
-13
lines changed

9 files changed

+41
-13
lines changed

netlify.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626

2727
[[redirects]]
2828
from = "/docs/user-guide/list-rules"
29-
to = "/list-rules"
29+
to = "/rules/"
3030
status = 301
3131
force = true
3232

3333
[[redirects]]
3434
from = "/docs/user-guide/usage/cli"
35-
to = "/usage/cli"
35+
to = "/usage/cli/"
3636
status = 301
3737
force = true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@
8080
"node": ">=20"
8181
},
8282
"volta": {
83-
"node": "20.19.1"
83+
"node": "20.19.2"
8484
}
8585
}

website/.htmlhintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"button-type-require": false,
1313
"doctype-first": false,
1414
"doctype-html5": true,
15+
"frame-title-require": true,
1516
"h1-require": true,
1617
"head-script-disabled": false,
1718
"href-abs-or-rel": false,
@@ -23,7 +24,8 @@
2324
"inline-style-disabled": false,
2425
"input-requires-label": false,
2526
"main-require": true,
26-
"meta-description-require": true,
27+
"meta-charset-require": true,
28+
"meta-description-require": false,
2729
"meta-viewport-require": true,
2830
"script-disabled": false,
2931
"space-tab-mixed-disabled": false,

website/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"private": true,
55
"description": "The HTMLHint website - built with Astro Starlight",
66
"homepage": "https://htmlhint.com",
7+
"bugs": {
8+
"url": "https://github.com/htmlhint/HTMLHint/issues"
9+
},
710
"funding": {
811
"type": "opencollective",
912
"url": "https://opencollective.com/htmlhint"
@@ -21,13 +24,13 @@
2124
},
2225
"dependencies": {
2326
"@astrojs/starlight": "^0.34.3",
24-
"astro": "^5.8.2",
27+
"astro": "^5.9.0",
2528
"sharp": "^0.34.2"
2629
},
2730
"engines": {
2831
"node": ">=20"
2932
},
3033
"volta": {
31-
"node": "20.19.1"
34+
"node": "20.19.2"
3235
}
3336
}

website/src/content/docs/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ An example configuration file (with all rules disabled):
5454
"doctype-first": false,
5555
"doctype-html5": false,
5656
"empty-tag-not-self-closed": false,
57+
"frame-title-require": false,
5758
"h1-require": false,
5859
"head-script-disabled": false,
5960
"href-abs-or-rel": false,
@@ -65,6 +66,7 @@ An example configuration file (with all rules disabled):
6566
"inline-style-disabled": false,
6667
"input-requires-label": false,
6768
"main-require": false,
69+
"meta-charset-require": false,
6870
"meta-description-require": false,
6971
"meta-viewport-require": false,
7072
"script-disabled": false,

website/src/content/docs/getting-started.mdx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,30 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
1616
</TabItem>
1717
</Tabs>
1818

19-
2\. Create a `.htmlhintrc` configuration file in the root of your project:
19+
2\. Create a `.htmlhintrc` configuration file in the root of your project with `htmlhint --init`. This will create a file with default rules. You can customize it as needed. For example, you can use the following configuration to enforce some common best practices:
2020

2121
```json
2222
{
23-
"attr-value-not-empty": false
23+
"alt-require": true,
24+
"attr-lowercase": true,
25+
"attr-no-duplication": true,
26+
"attr-value-double-quotes": true,
27+
"button-type-require": true,
28+
"doctype-first": true,
29+
"doctype-html5": true,
30+
"frame-title-require": true,
31+
"h1-require": true,
32+
"html-lang-require": true,
33+
"id-unique": true,
34+
"main-require": true,
35+
"meta-charset-require": true,
36+
"meta-description-require": true,
37+
"meta-viewport-require": true,
38+
"spec-char-escape": true,
39+
"src-not-empty": true,
40+
"tag-pair": true,
41+
"tagname-lowercase": true,
42+
"title-require": true
2443
}
2544
```
2645

website/src/content/docs/usage/cli.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: cli
33
title: Command-Line Interface (CLI)
4+
description: Use HTMLHint from the command line to lint your HTML files. There are several options available to customize the behavior of the linter.
45
---
56

67
You can use HTMLHint on the command-line. For example:

website/src/content/docs/usage/options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: options
33
title: Options
4+
description: Options for configuring HTMLHint config files, formatters, and more.
45
---
56

67
## `configFile`

0 commit comments

Comments
 (0)