docs: Update overview/usage

This commit is contained in:
Albert Nigmatzianov 2017-05-23 21:55:35 +02:00
parent 93cab620d7
commit 710300cb76

View file

@ -29,10 +29,12 @@ Usage:
Available Commands: Available Commands:
benchmark Benchmark Hugo by building a site a number of times. benchmark Benchmark Hugo by building a site a number of times.
check Contains some verification checks
config Print the site configuration config Print the site configuration
convert Convert your content to different formats convert Convert your content to different formats
env Print Hugo version and environment info env Print Hugo version and environment info
gen A collection of several useful generators. gen A collection of several useful generators.
help Help about any command
import Import your site from others. import Import your site from others.
list Listing out various types of content list Listing out various types of content
new Create new content for your site new Create new content for your site
@ -41,42 +43,42 @@ Available Commands:
version Print the version number of Hugo version Print the version number of Hugo
Flags: Flags:
-b, --baseURL string hostname (and path) to the root, e.g. http://spf13.com/ -b, --baseURL string hostname (and path) to the root, e.g. http://spf13.com/
-D, --buildDrafts include content marked as draft -D, --buildDrafts include content marked as draft
-E, --buildExpired include expired content -E, --buildExpired include expired content
-F, --buildFuture include content with publishdate in the future -F, --buildFuture include content with publishdate in the future
--cacheDir string filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/ --cacheDir string filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
--canonifyURLs if true, all relative URLs will be canonicalized using baseURL --canonifyURLs if true, all relative URLs will be canonicalized using baseURL
--cleanDestinationDir Remove files from destination not found in static directories --cleanDestinationDir remove files from destination not found in static directories
--config string config file (default is path/config.yaml|json|toml) --config string config file (default is path/config.yaml|json|toml)
-c, --contentDir string filesystem path to content directory -c, --contentDir string filesystem path to content directory
-d, --destination string filesystem path to write files to -d, --destination string filesystem path to write files to
--disable404 Do not render 404 page --disable404 do not render 404 page
--disableRSS Do not build RSS files --disableKinds stringSlice disable different kind of pages (home, RSS etc.)
--disableSitemap Do not build Sitemap file --disableRSS do not build RSS files
--enableGitInfo Add Git revision, date and author info to the pages --disableSitemap do not build Sitemap file
--forceSyncStatic Copy all files when static is changed. --enableGitInfo add Git revision, date and author info to the pages
--i18n-warnings Print missing translations --forceSyncStatic copy all files when static is changed.
--ignoreCache Ignores the cache directory -h, --help help for hugo
-l, --layoutDir string filesystem path to layout directory --i18n-warnings print missing translations
--log Enable Logging --ignoreCache ignores the cache directory
--logFile string Log File path (if set, logging enabled automatically) -l, --layoutDir string filesystem path to layout directory
--noChmod Don't sync permission mode of files --log enable Logging
--noTimes Don't sync modification time of files --logFile string log File path (if set, logging enabled automatically)
--pluralizeListTitles Pluralize titles in lists using inflect (default true) --noChmod don't sync permission mode of files
--preserveTaxonomyNames Preserve taxonomy names as written ("Gérard Depardieu" vs "gerard-depardieu") --noTimes don't sync modification time of files
--quiet build in quiet mode --pluralizeListTitles pluralize titles in lists using inflect (default true)
--renderToMemory render to memory (only useful for benchmark testing) --preserveTaxonomyNames preserve taxonomy names as written ("Gérard Depardieu" vs "gerard-depardieu")
-s, --source string filesystem path to read files relative from --quiet build in quiet mode
--stepAnalysis display memory and timing of different steps of the program --renderToMemory render to memory (only useful for benchmark testing)
-t, --theme string theme to use (located in /themes/THEMENAME/) -s, --source string filesystem path to read files relative from
--uglyURLs if true, use /filename.html instead of /filename/ --stepAnalysis display memory and timing of different steps of the program
-v, --verbose verbose output -t, --theme string theme to use (located in /themes/THEMENAME/)
--verboseLog verbose logging --themesDir string filesystem path to themes directory
-w, --watch watch filesystem for changes and recreate as needed --uglyURLs if true, use /filename.html instead of /filename/
-v, --verbose verbose output
Additional help topics: --verboseLog verbose logging
hugo check Contains some verification checks -w, --watch watch filesystem for changes and recreate as needed
Use "hugo [command] --help" for more information about a command. Use "hugo [command] --help" for more information about a command.
{{< /nohighlight >}} {{< /nohighlight >}}