mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-08-24 09:31:07 +08:00
Add markdownlint (#20512)
Add `markdownlint` linter and fix issues. Config is based on the one from electron's repo with a few rules relaxed.
This commit is contained in:
.editorconfig.markdownlint.yamlCHANGELOG.mdCONTRIBUTING.mdMakefileREADME.mdSECURITY.mdpackage-lock.jsonpackage.json
docs/content
doc
advanced
clone-filter.en-us.mdconfig-cheat-sheet.en-us.mdconfig-cheat-sheet.zh-cn.mdcustomizing-gitea.en-us.mdenvironment-variables.zh-cn.mdexternal-renderers.en-us.mdmail-templates-us.mdprotected-tags.en-us.mdrepo-mirror.en-us.mdsearch-engines-indexation.en-us.mdthird-party-tools.zh-cn.md
developers
api-usage.en-us.mdguidelines-backend.mdguidelines-frontend.mdhacking-on-gitea.en-us.mdmigrations.en-us.mdmigrations.zh-tw.mdoauth2-provider.md
features
help
installation
database-preparation.en-us.mdfrom-binary.en-us.mdfrom-package.en-us.mdfrom-source.en-us.mdfrom-source.fr-fr.mdfrom-source.zh-cn.mdfrom-source.zh-tw.mdon-kubernetes.zh-tw.mdrun-as-service-in-ubuntu.en-us.mdrun-as-service-in-ubuntu.zh-cn.mdwith-docker-rootless.en-us.mdwith-docker.en-us.md
packages
translation
upgrade
usage
page
@ -48,7 +48,6 @@ A new token can be generated with a `POST` request to
|
||||
Note that `/users/:name/tokens` is a special endpoint and requires you
|
||||
to authenticate using `BasicAuth` and a password, as follows:
|
||||
|
||||
|
||||
```sh
|
||||
$ curl -XPOST -H "Content-Type: application/json" -k -d '{"name":"test"}' -u username:password https://gitea.your.host/api/v1/users/<username>/tokens
|
||||
{"id":1,"name":"test","sha1":"9fcb1158165773dd010fca5f0cf7174316c3e37d","token_last_eight":"16c3e37d"}
|
||||
|
Reference in New Issue
Block a user