mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 00:44:49 -04:00
docs: Regenerate CLI docs
This commit is contained in:
parent
6ff93d4788
commit
c1538bd004
@ -13,10 +13,6 @@ Convert your content (e.g. front matter) to different formats.
|
|||||||
|
|
||||||
See convert's subcommands toJSON, toTOML and toYAML for more information.
|
See convert's subcommands toJSON, toTOML and toYAML for more information.
|
||||||
|
|
||||||
```
|
|
||||||
hugo convert [command] [flags]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -7,10 +7,6 @@ url: /commands/hugo_gen/
|
|||||||
|
|
||||||
A collection of several useful generators.
|
A collection of several useful generators.
|
||||||
|
|
||||||
```
|
|
||||||
hugo gen [command] [flags]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -13,10 +13,6 @@ Import your site from other web site generators like Jekyll.
|
|||||||
|
|
||||||
Import requires a subcommand, e.g. `hugo import jekyll jekyll_root_path target_path`.
|
Import requires a subcommand, e.g. `hugo import jekyll jekyll_root_path target_path`.
|
||||||
|
|
||||||
```
|
|
||||||
hugo import [command] [flags]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -13,10 +13,6 @@ Listing out various types of content.
|
|||||||
|
|
||||||
List requires a subcommand, e.g. hugo list drafts
|
List requires a subcommand, e.g. hugo list drafts
|
||||||
|
|
||||||
```
|
|
||||||
hugo list [command] [flags]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -18,10 +18,6 @@ If archetypes are provided in your theme or site, they will be used.
|
|||||||
|
|
||||||
Ensure you run this within the root directory of your site.
|
Ensure you run this within the root directory of your site.
|
||||||
|
|
||||||
```
|
|
||||||
hugo new [command] [flags]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -50,5 +46,5 @@ hugo new [command] [flags]
|
|||||||
* [hugo](/commands/hugo/) - hugo builds your site
|
* [hugo](/commands/hugo/) - hugo builds your site
|
||||||
* [hugo new content](/commands/hugo_new_content/) - Create new content for your site
|
* [hugo new content](/commands/hugo_new_content/) - Create new content for your site
|
||||||
* [hugo new site](/commands/hugo_new_site/) - Create a new site (skeleton)
|
* [hugo new site](/commands/hugo_new_site/) - Create a new site (skeleton)
|
||||||
* [hugo new theme](/commands/hugo_new_theme/) - Create a new site (skeleton)
|
* [hugo new theme](/commands/hugo_new_theme/) - Create a new theme (skeleton)
|
||||||
|
|
||||||
|
@ -10,13 +10,13 @@ Create new content for your site
|
|||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
Create a new content file and automatically set the date and title.
|
Create a new content file and automatically set the date and title.
|
||||||
It will guess which kind of file to create based on the path provided.
|
It will guess which kind of file to create based on the path provided.
|
||||||
|
|
||||||
You can also specify the kind with `-k KIND`.
|
You can also specify the kind with `-k KIND`.
|
||||||
|
|
||||||
If archetypes are provided in your theme or site, they will be used.
|
If archetypes are provided in your theme or site, they will be used.
|
||||||
|
|
||||||
Ensure you run this within the root directory of your site.
|
Ensure you run this within the root directory of your site.
|
||||||
|
|
||||||
```
|
```
|
||||||
hugo new content [path] [flags]
|
hugo new content [path] [flags]
|
||||||
|
@ -20,8 +20,9 @@ hugo new site [path] [flags]
|
|||||||
### Options
|
### Options
|
||||||
|
|
||||||
```
|
```
|
||||||
-f, --force init inside non-empty directory
|
-f, --force init inside non-empty directory
|
||||||
-h, --help help for site
|
--format string preferred file format (toml, yaml or json) (default "toml")
|
||||||
|
-h, --help help for site
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options inherited from parent commands
|
### Options inherited from parent commands
|
||||||
|
@ -5,16 +5,17 @@ url: /commands/hugo_new_theme/
|
|||||||
---
|
---
|
||||||
## hugo new theme
|
## hugo new theme
|
||||||
|
|
||||||
Create a new site (skeleton)
|
Create a new theme (skeleton)
|
||||||
|
|
||||||
### Synopsis
|
### Synopsis
|
||||||
|
|
||||||
Create a new site in the provided directory.
|
Create a new theme (skeleton) called [name] in ./themes.
|
||||||
The new site will have the correct structure, but no content or theme yet.
|
New theme is a skeleton. Please add content to the touched files. Add your
|
||||||
Use `hugo new [contentPath]` to create new content.
|
name to the copyright line in the license and adjust the theme.toml file
|
||||||
|
according to your needs.
|
||||||
|
|
||||||
```
|
```
|
||||||
hugo new theme [path] [flags]
|
hugo new theme [name] [flags]
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user