1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-03 21:15:32 +02:00

hugo, hugo-server: update commands with short and long options (#17014)

This commit is contained in:
Nelson Figueroa 2025-06-28 12:52:08 -07:00 committed by GitHub
parent 3e333dcf12
commit e943a0d7e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -9,7 +9,7 @@
- Build and serve a site on a specified port number:
`hugo server --port {{port_number}}`
`hugo server {{[-p|--port]}} {{port_number}}`
- Build and serve a site while minifying supported output formats (HTML, XML, etc.):
@ -17,8 +17,8 @@
- Build and serve a site in the production environment with full re-renders while minifying supported formats:
`hugo server --environment {{production}} --disableFastRender --minify`
`hugo server {{[-e|--environment]}} {{production}} --disableFastRender --minify`
- Display help:
`hugo server --help`
`hugo server {{[-h|--help]}}`

View file

@ -22,7 +22,7 @@
- Build a site including pages that are marked as a "draft":
`hugo --buildDrafts`
`hugo {{[-D|--buildDrafts]}}`
- Build a site on your local IP:
@ -30,7 +30,7 @@
- Build a site to a given directory:
`hugo --destination {{path/to/destination}}`
`hugo {{[-d|--destination]}} {{path/to/destination}}`
- Build a site, start up a webserver to serve it, and automatically reload when pages are edited: