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:
parent
3e333dcf12
commit
e943a0d7e6
2 changed files with 5 additions and 5 deletions
|
@ -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]}}`
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue