diff --git a/docs/admin/command-line.md b/docs/admin/command-line.md index 070c6edf..fee460b9 100644 --- a/docs/admin/command-line.md +++ b/docs/admin/command-line.md @@ -20,8 +20,6 @@ NAME: USAGE: Forgejo [global options] command [command options] [arguments...] -VERSION: - 1.21.3+0 built with GNU Make 4.4.1, go1.21.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify DESCRIPTION: By default, forgejo will start serving using the web-server with no argument, which can alternatively be run by running the subcommand "web". diff --git a/scripts/cli-docs.sh b/scripts/cli-docs.sh index e1616e7f..70a468b2 100755 --- a/scripts/cli-docs.sh +++ b/scripts/cli-docs.sh @@ -63,10 +63,14 @@ function section() { echo '```' } +function section_help() { + section "##" "" 'forgejo `--help`' | sed -e '/^VERSION:/d' -e '/built with GNU Make/d' +} + function generate() { front - section "##" "" 'forgejo `--help`' + section_help section "##" "forgejo-cli"