Port the file change in https://github.com/go-gitea/gitea/pull/24925/files from `main` to `v1.19` to fix docs
backport #23629 To make versioned documentation less surprising, 1.19 should have the same technology.