Skip to content

Chinese docs file linting failure in local system. #27098

Closed
@puni9869

Description

@puni9869

Description

In github action docs linter is fail on chinese docs md files
https://github.com/go-gitea/gitea/actions/runs/6207127102/job/16852056368?pr=27096#step:5:5

Getting error on the local.

make lint-md
npm install --no-save

added 7 packages, and changed 30 packages in 7s
npx markdownlint docs *.md
docs/content/administration/https-support.zh-cn.md:55:277 MD051/link-fragments Link fragments should be valid [Context: "[HTTP 重定向](http重定向)"]
docs/content/administration/https-support.zh-cn.md:97:244 MD051/link-fragments Link fragments should be valid [Context: "[启用内置服务器S 支持](#使用内置服务器)"]
docs/content/installation/from-source.zh-cn.md:38:67 MD051/link-fragments Link fragments should be valid [Context: "[构建](#构建)"]
docs/content/installation/from-source.zh-tw.md:31:59 MD051/link-fragments Link fragments should be valid [Context: "[編譯章節](#編譯)"]
docs/content/usage/actions/act-runner.zh-cn.md:244:78 MD051/link-fragments Link fragments should be valid [Context: "[配置教程](#配置)"]
make: *** [lint-md] Error 1

I can't fix this due to language barriers.

Gitea Version

0818e9b

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Localhost

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtopic/code-lintingtype/docsThis PR mainly updates/creates documentationtype/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions