Skip to content

Commit

Permalink
docs: Regenerate CLI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored and bep committed Jul 5, 2023
1 parent 6ff93d4 commit c1538bd
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 35 deletions.
4 changes: 0 additions & 4 deletions content/en/commands/hugo_convert.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```
hugo convert [command] [flags]
```

### Options

```
Expand Down
4 changes: 0 additions & 4 deletions content/en/commands/hugo_gen.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ url: /commands/hugo_gen/

A collection of several useful generators.

```
hugo gen [command] [flags]
```

### Options

```
Expand Down
4 changes: 0 additions & 4 deletions content/en/commands/hugo_import.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

```
hugo import [command] [flags]
```

### Options

```
Expand Down
4 changes: 0 additions & 4 deletions content/en/commands/hugo_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ Listing out various types of content.

List requires a subcommand, e.g. hugo list drafts

```
hugo list [command] [flags]
```

### Options

```
Expand Down
6 changes: 1 addition & 5 deletions content/en/commands/hugo_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

```
hugo new [command] [flags]
```

### Options

```
Expand Down Expand Up @@ -50,5 +46,5 @@ hugo new [command] [flags]
* [hugo](/commands/hugo/) - hugo builds 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 theme](/commands/hugo_new_theme/) - Create a new site (skeleton)
* [hugo new theme](/commands/hugo_new_theme/) - Create a new theme (skeleton)

14 changes: 7 additions & 7 deletions content/en/commands/hugo_new_content.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Create new content for your site
### Synopsis

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.
You can also specify the kind with `-k KIND`.
If archetypes are provided in your theme or site, they will be used.
Ensure you run this within the root directory of your site.
It will guess which kind of file to create based on the path provided.

You can also specify the kind with `-k KIND`.

If archetypes are provided in your theme or site, they will be used.

Ensure you run this within the root directory of your site.

```
hugo new content [path] [flags]
Expand Down
5 changes: 3 additions & 2 deletions content/en/commands/hugo_new_site.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ hugo new site [path] [flags]
### Options

```
-f, --force init inside non-empty directory
-h, --help help for site
-f, --force init inside non-empty directory
--format string preferred file format (toml, yaml or json) (default "toml")
-h, --help help for site
```

### Options inherited from parent commands
Expand Down
11 changes: 6 additions & 5 deletions content/en/commands/hugo_new_theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ url: /commands/hugo_new_theme/
---
## hugo new theme

Create a new site (skeleton)
Create a new theme (skeleton)

### 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 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.

```
hugo new theme [path] [flags]
hugo new theme [name] [flags]
```

### Options
Expand Down

0 comments on commit c1538bd

Please sign in to comment.