mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 03:32:38 +00:00
content: Update CLI docs
Closes #3187 Closes #3219 Co-authored-by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com>
This commit is contained in:
@@ -24,6 +24,8 @@ hugo gen chromastyles [flags] [args]
|
||||
--highlightStyle string foreground and background colors for highlighted lines, e.g. --highlightStyle "#fff000 bg:#000fff"
|
||||
--lineNumbersInlineStyle string foreground and background colors for inline line numbers, e.g. --lineNumbersInlineStyle "#fff000 bg:#000fff"
|
||||
--lineNumbersTableStyle string foreground and background colors for table line numbers, e.g. --lineNumbersTableStyle "#fff000 bg:#000fff"
|
||||
--omitClassComments omit CSS class comment prefixes in the generated CSS
|
||||
--omitEmpty omit empty CSS rules (deprecated, no longer needed)
|
||||
--style string highlighter style (see https://xyproto.github.io/splash/docs/) (default "friendly")
|
||||
```
|
||||
|
||||
|
||||
@@ -45,6 +45,6 @@ Ensure you run this within the root directory of your site.
|
||||
|
||||
* [hugo](/commands/hugo/) - Build your site
|
||||
* [hugo new content](/commands/hugo_new_content/) - Create new content
|
||||
* [hugo new site](/commands/hugo_new_site/) - Create a new site (skeleton)
|
||||
* [hugo new theme](/commands/hugo_new_theme/) - Create a new theme (skeleton)
|
||||
* [hugo new site](/commands/hugo_new_site/) - Create a new site
|
||||
* [hugo new theme](/commands/hugo_new_theme/) - Create a new theme
|
||||
|
||||
|
||||
@@ -5,13 +5,11 @@ url: /commands/hugo_new_site/
|
||||
---
|
||||
## hugo new site
|
||||
|
||||
Create a new site (skeleton)
|
||||
Create a new site
|
||||
|
||||
### Synopsis
|
||||
|
||||
Create a new site in the provided directory.
|
||||
The new site will have the correct structure, but no content or theme yet.
|
||||
Use `hugo new [contentPath]` to create new content.
|
||||
Create a new site at the specified path.
|
||||
|
||||
```
|
||||
hugo new site [path] [flags]
|
||||
|
||||
@@ -5,14 +5,12 @@ url: /commands/hugo_new_theme/
|
||||
---
|
||||
## hugo new theme
|
||||
|
||||
Create a new theme (skeleton)
|
||||
Create a new theme
|
||||
|
||||
### Synopsis
|
||||
|
||||
Create a new theme (skeleton) called [name] in ./themes.
|
||||
New theme is a skeleton. Please add content to the touched files. Add your
|
||||
name to the copyright line in the license and adjust the theme.toml file
|
||||
according to your needs.
|
||||
Create a new theme with the specified name in the ./themes directory.
|
||||
This generates a functional theme including template examples and sample content.
|
||||
|
||||
```
|
||||
hugo new theme [name] [flags]
|
||||
@@ -21,7 +19,8 @@ hugo new theme [name] [flags]
|
||||
### Options
|
||||
|
||||
```
|
||||
-h, --help help for theme
|
||||
--format string preferred file format (toml, yaml or json) (default "toml")
|
||||
-h, --help help for theme
|
||||
```
|
||||
|
||||
### Options inherited from parent commands
|
||||
|
||||
Reference in New Issue
Block a user