Skip to content

Commit b96fbb5

Browse files
authored
Enable markdownlint no-trailing-punctuation and no-blanks-blockquote (go-gitea#29214)
Enable these two and fix issues.
1 parent 27192bc commit b96fbb5

7 files changed

+7
-9
lines changed

.markdownlint.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ heading-increment: false
55
line-length: {code_blocks: false, tables: false, stern: true, line_length: -1}
66
no-alt-text: false
77
no-bare-urls: false
8-
no-blanks-blockquote: false
98
no-emphasis-as-heading: false
109
no-empty-links: false
1110
no-hard-tabs: {code_blocks: false}
1211
no-inline-html: false
1312
no-space-in-code: false
1413
no-space-in-emphasis: false
15-
no-trailing-punctuation: false
1614
no-trailing-spaces: {br_spaces: 0}
1715
single-h1: false

docs/content/administration/customizing-gitea.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ syntax and shouldn't be touched without fully understanding these components.
284284

285285
Google Analytics, Matomo (previously Piwik), and other analytics services can be added to Gitea. To add the tracking code, refer to the `Other additions to the page` section of this document, and add the JavaScript to the `$GITEA_CUSTOM/templates/custom/header.tmpl` file.
286286

287-
## Customizing gitignores, labels, licenses, locales, and readmes.
287+
## Customizing gitignores, labels, licenses, locales, and readmes
288288

289289
Place custom files in corresponding sub-folder under `custom/options`.
290290

docs/content/administration/mail-templates.en-us.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Please check [Gitea's logs](administration/logging-config.md) for error messages
222222
<a href="{{.Link}}">{{.Repo}}#{{.Issue.Index}}</a>.
223223
</p>
224224
{{if not (eq .Body "")}}
225-
<h3>Message content:</h3>
225+
<h3>Message content</h3>
226226
<hr>
227227
{{.Body | Str2html}}
228228
{{end}}
@@ -245,7 +245,7 @@ This template produces something along these lines:
245245

246246
> [@rhonda](#) (Rhonda Myers) updated [mike/stuff#38](#).
247247
>
248-
> #### Message content:
248+
> #### Message content
249249
>
250250
> \_********************************\_********************************
251251
>

docs/content/administration/mail-templates.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ _主题_ 和 _邮件正文_ 由 [Golang的模板引擎](https://go.dev/pkg/text/
228228

229229
> [@rhonda](#)(Rhonda Myers)更新了 [mike/stuff#38](#)
230230
>
231-
> #### 消息内容
231+
> #### 消息内容
232232
>
233233
> \_********************************\_********************************
234234
>

docs/content/contributing/guidelines-frontend.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The source files can be found in the following directories:
3434

3535
We recommend [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html) and [Google JavaScript Style Guide](https://google.github.io/styleguide/jsguide.html)
3636

37-
### Gitea specific guidelines:
37+
### Gitea specific guidelines
3838

3939
1. Every feature (Fomantic-UI/jQuery module) should be put in separate files/directories.
4040
2. HTML ids and classes should use kebab-case, it's preferred to contain 2-3 feature related keywords.

docs/content/contributing/guidelines-frontend.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ HTML 页面由[Go HTML Template](https://pkg.go.dev/html/template)渲染。
3434

3535
我们推荐使用[Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html)[Google JavaScript Style Guide](https://google.github.io/styleguide/jsguide.html)
3636

37-
## Gitea 特定准则
37+
## Gitea 特定准则
3838

3939
1. 每个功能(Fomantic-UI/jQuery 模块)应放在单独的文件/目录中。
4040
2. HTML 的 id 和 class 应使用 kebab-case,最好包含2-3个与功能相关的关键词。

docs/content/development/api-usage.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ curl "http://localhost:4000/api/v1/repos/test1/test1/issues" \
6060
`/users/:name/tokens` 是一个特殊的接口,需要您使用 basic authentication 进行认证,具体原因在 issue 中
6161
[#3842](https://github.com/go-gitea/gitea/issues/3842#issuecomment-397743346) 有所提及,使用方法如下所示:
6262

63-
### 使用 Basic authentication 认证
63+
### 使用 Basic authentication 认证
6464

6565
```
6666
$ curl --url https://yourusername:[email protected]/api/v1/users/yourusername/tokens

0 commit comments

Comments
 (0)