Skip to content

Commit 7eb5ad6

Browse files
committed
test: add lint rule for single h1
We should never have more than one h1 on a page. Signed-off-by: David Karlsson <[email protected]>
1 parent 078a817 commit 7eb5ad6

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.markdownlint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"default": false,
33
"hr-style": true,
44
"heading-start-left": true,
5+
"single-h1": true,
56
"no-missing-space-atx": true,
67
"no-multiple-space-atx": true,
78
"no-missing-space-closed-atx": true,

content/config/formatting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ $ docker inspect --format "{{upper .Name}}" container
9797
$ docker inspect --format='{{range .NetworkSettings.Networks}}{{println .IPAddress}}{{end}}' container
9898
```
9999

100-
# Hint
100+
## Hint
101101

102102
To find out what data can be printed, show all content as json:
103103

content/engine/reference/commandline/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ The output files are composed from two sources:
2222
Specifically, the Markdown inside the `## Description` and `## Examples`
2323
headings are parsed. Submit corrections to the text in those repositories.
2424

25-
# Updating the YAML files
25+
## Updating the YAML files
2626

2727
The process for generating the YAML files is still in flux. Check with
2828
@thaJeztah. Be sure to generate the YAML files with the correct
2929
release branch of `docker/cli`, for example, the `19.03` branch.
3030

3131
After generating the YAML files, replace the YAML files in
3232
[https://github.com/docker/docs/tree/main/_data/engine-cli](https://github.com/docker/docs/tree/main/_data/engine-cli)
33-
with the newly-generated files. Submit a pull request.
33+
with the newly-generated files. Submit a pull request.

content/engine/tutorials/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ aliases:
77
- /engine/userguide/containers/
88
---
99

10-
# Learn by example
10+
Learn by example:
1111

1212
* [Network containers](networkingcontainers.md)
1313
* [Manage data in containers](../../storage/volumes.md)
1414
* [Samples](../../samples/index.md)
15-
* [Get Started](../../get-started/index.md)
15+
* [Get Started](../../get-started/index.md)

0 commit comments

Comments
 (0)