mirror of
https://gitea.com/gitea/docs.git
synced 2026-11-08 02:50:31 +00:00
feat: add a cli product for the gt documentation
gt, the Gitea CLI, gets its own product next to the runner: the CLI entry in the header, its own sidebars, search scope, crawler start url and redirects, and `make cut-version PRODUCT=cli`. Until a release series is listed, the develop docs are served at /cli/ without the unreleased banner. A directory with an index page and no _category_.json now takes its sidebar label and position from that page, which leads the group, so the generated reference can be grouped by command. Signed-off-by: bircni <[email protected]>
This commit is contained in:
10 files changed
+104
-41
No files matched your search
@@ -1,11 +1,13 @@
|
||||
# Redirects for legacy URLs and routes the site no longer serves directly.
|
||||
|
||||
# The api reference and the runner docs are separate products, published in
|
||||
# english only, so they have no localized copy.
|
||||
# The api reference, the runner and the cli docs are separate products,
|
||||
# published in english only, so they have no localized copy.
|
||||
/zh-cn/api/* /api/:splat 301
|
||||
/zh-tw/api/* /api/:splat 301
|
||||
/zh-cn/runner/* /runner/:splat 301
|
||||
/zh-tw/runner/* /runner/:splat 301
|
||||
/zh-cn/cli/* /cli/:splat 301
|
||||
/zh-tw/cli/* /cli/:splat 301
|
||||
|
||||
# The version served at the root of a product is also reachable under its
|
||||
# number, which is what the release notes and old links use.
|
||||
|
||||
Reference in new issue
Block a user