Skip to content

Commit 25d8d44

Browse files
committed
site: move user_guide
1 parent a360f99 commit 25d8d44

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ name a few. [This list](site/content/projects_using_cobra.md) contains a more ex
1919
* [Flags](#flags)
2020
- [Installing](#installing)
2121
- [Usage](#usage)
22-
* [Using the Cobra Generator](user_guide.md#using-the-cobra-generator)
23-
* [Using the Cobra Library](user_guide.md#using-the-cobra-library)
24-
* [Working with Flags](user_guide.md#working-with-flags)
25-
* [Positional and Custom Arguments](user_guide.md#positional-and-custom-arguments)
26-
* [Example](user_guide.md#example)
27-
* [Help Command](user_guide.md#help-command)
28-
* [Usage Message](user_guide.md#usage-message)
29-
* [PreRun and PostRun Hooks](user_guide.md#prerun-and-postrun-hooks)
30-
* [Suggestions when "unknown command" happens](user_guide.md#suggestions-when-unknown-command-happens)
31-
* [Generating documentation for your command](user_guide.md#generating-documentation-for-your-command)
32-
* [Generating shell completions](user_guide.md#generating-shell-completions)
22+
* [Using the Cobra Generator](site/content/user_guide.md#using-the-cobra-generator)
23+
* [Using the Cobra Library](site/content/user_guide.md#using-the-cobra-library)
24+
* [Working with Flags](site/content/user_guide.md#working-with-flags)
25+
* [Positional and Custom Arguments](site/content/user_guide.md#positional-and-custom-arguments)
26+
* [Example](site/content/user_guide.md#example)
27+
* [Help Command](site/content/user_guide.md#help-command)
28+
* [Usage Message](site/content/user_guide.md#usage-message)
29+
* [PreRun and PostRun Hooks](site/content/user_guide.md#prerun-and-postrun-hooks)
30+
* [Suggestions when "unknown command" happens](site/content/user_guide.md#suggestions-when-unknown-command-happens)
31+
* [Generating documentation for your command](site/content/user_guide.md#generating-documentation-for-your-command)
32+
* [Generating shell completions](site/content/user_guide.md#generating-shell-completions)
3333
- [Contributing](CONTRIBUTING.md)
3434
- [License](#license)
3535

@@ -118,8 +118,8 @@ import "github.com/spf13/cobra"
118118

119119
# Usage
120120

121-
See [User Guide](user_guide.md).
121+
See [User Guide](site/content/user_guide.md).
122122

123123
# License
124124

125-
Cobra is released under the Apache 2.0 license. See [LICENSE.txt](https://github.com/spf13/cobra/blob/master/LICENSE.txt)
125+
Cobra is released under the Apache 2.0 license. See [LICENSE.txt](LICENSE.txt)

user_guide.md renamed to site/content/user_guide.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ func main() {
2929

3030
## Using the Cobra Generator
3131

32-
Cobra provides its own program that will create your application and add any
33-
commands you want. It's the easiest way to incorporate Cobra into your application.
32+
Cobra provides its own program that will create your application and add any commands you want.
33+
It's the easiest way to incorporate Cobra into your application.
3434

35-
[Here](https://github.com/spf13/cobra/blob/master/cobra/README.md) you can find more information about it.
35+
[Here](CLI.md) you can find more information about it.
3636

3737
## Using the Cobra Library
3838

@@ -630,8 +630,11 @@ Run 'kubectl help' for usage.
630630

631631
## Generating documentation for your command
632632

633-
Cobra can generate documentation based on subcommands, flags, etc. Read more about it in the [docs generation documentation](doc/README.md).
633+
Cobra can generate documentation based on subcommands, flags, etc.
634+
Read more about it in the [docs generation documentation](docgen/_index.md).
634635

635636
## Generating shell completions
636637

637-
Cobra can generate a shell-completion file for the following shells: bash, zsh, fish, PowerShell. If you add more information to your commands, these completions can be amazingly powerful and flexible. Read more about it in [Shell Completions](shell_completions.md).
638+
Cobra can generate a shell-completion file for the following shells: bash, zsh, fish, PowerShell.
639+
If you add more information to your commands, these completions can be amazingly powerful and flexible.
640+
Read more about it in [Shell Completions](completions/_index.md).

0 commit comments

Comments
 (0)