]> source.dussan.org Git - gitea.git/commit
Enable markdownlint `no-duplicate-header` (#27500) (#27506)
authorGiteabot <teabot@gitea.io>
Sat, 7 Oct 2023 13:41:41 +0000 (21:41 +0800)
committerGitHub <noreply@github.com>
Sat, 7 Oct 2023 13:41:41 +0000 (21:41 +0800)
commit65020fdf7fdd13f260c158edf2a81eeb273e8c44
tree637969b16b62eb46322e0742caf9dbb3c2073e8e
parent5b670d83e1a2edc05c3f94b59bc99b9acd2c1023
Enable markdownlint `no-duplicate-header` (#27500) (#27506)

Backport #27500 by @silverwind

Duplicate headers in a single Markdown document are problemlematic
because the auto-generated links won't be stable. Enable this rule with
no exceptions which is also the default of `markdownlint`. For example:

```md
# A
## Example
# B
## Example
```
Docasaurus will generated `example` and `example-1` links for this. If
the first heading is altered, the link `example` will unexpectedly move
to the second example heading.

Ref: https://github.com/go-gitea/gitea/pull/27461#discussion_r1347987659

Co-authored-by: silverwind <me@silverwind.io>
.markdownlint.yaml
docs/content/administration/cmd-embedded.en-us.md
docs/content/administration/cmd-embedded.zh-cn.md
docs/content/installation/database-preparation.en-us.md
docs/content/installation/database-preparation.zh-cn.md