Skip to content

Commit

Permalink
fix(gen-cli-docs): fix path for gen-cli-docs (#646)
Browse files Browse the repository at this point in the history
* fix(gen-cli-docs): fix path for gen-cli-docs

* fix(docs): update links to work in repo and docs website
  • Loading branch information
brandtkeller authored Sep 9, 2024
1 parent 28ce6e5 commit 6ec6e6f
Show file tree
Hide file tree
Showing 23 changed files with 42 additions and 42 deletions.
16 changes: 8 additions & 8 deletions docs/cli-commands/lula.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Real Time Risk Transparency through automated validation

### SEE ALSO

* [lula completion](/cli/cli-commands/lula_completion/) - Generate the autocompletion script for the specified shell
* [lula console](/cli/cli-commands/lula_console/) - Console terminal user interface for OSCAL models
* [lula dev](/cli/cli-commands/lula_dev/) - Collection of dev commands to make dev life easier
* [lula evaluate](/cli/cli-commands/lula_evaluate/) - evaluate two results of a Security Assessment Results
* [lula generate](/cli/cli-commands/lula_generate/) - Generate a specified compliance artifact template
* [lula tools](/cli/cli-commands/lula_tools/) - Collection of additional commands to make OSCAL easier
* [lula validate](/cli/cli-commands/lula_validate/) - validate an OSCAL component definition
* [lula version](/cli/cli-commands/lula_version/) - Shows the current version of the Lula binary
* [lula completion](./lula_completion.md) - Generate the autocompletion script for the specified shell
* [lula console](./lula_console.md) - Console terminal user interface for OSCAL models
* [lula dev](./lula_dev.md) - Collection of dev commands to make dev life easier
* [lula evaluate](./lula_evaluate.md) - evaluate two results of a Security Assessment Results
* [lula generate](./lula_generate.md) - Generate a specified compliance artifact template
* [lula tools](./lula_tools.md) - Collection of additional commands to make OSCAL easier
* [lula validate](./lula_validate.md) - validate an OSCAL component definition
* [lula version](./lula_version.md) - Shows the current version of the Lula binary

10 changes: 5 additions & 5 deletions docs/cli-commands/lula_completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ See each sub-command's help for details on how to use the generated script.

### SEE ALSO

* [lula](/cli/cli-commands/lula/) - Risk Management as Code
* [lula completion bash](/cli/cli-commands/lula_completion_bash/) - Generate the autocompletion script for bash
* [lula completion fish](/cli/cli-commands/lula_completion_fish/) - Generate the autocompletion script for fish
* [lula completion powershell](/cli/cli-commands/lula_completion_powershell/) - Generate the autocompletion script for powershell
* [lula completion zsh](/cli/cli-commands/lula_completion_zsh/) - Generate the autocompletion script for zsh
* [lula](./lula.md) - Risk Management as Code
* [lula completion bash](./lula_completion_bash.md) - Generate the autocompletion script for bash
* [lula completion fish](./lula_completion_fish.md) - Generate the autocompletion script for fish
* [lula completion powershell](./lula_completion_powershell.md) - Generate the autocompletion script for powershell
* [lula completion zsh](./lula_completion_zsh.md) - Generate the autocompletion script for zsh

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_completion_bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ lula completion bash

### SEE ALSO

* [lula completion](/cli/cli-commands/lula_completion/) - Generate the autocompletion script for the specified shell
* [lula completion](./lula_completion.md) - Generate the autocompletion script for the specified shell

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_completion_fish.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ lula completion fish [flags]

### SEE ALSO

* [lula completion](/cli/cli-commands/lula_completion/) - Generate the autocompletion script for the specified shell
* [lula completion](./lula_completion.md) - Generate the autocompletion script for the specified shell

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_completion_powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ lula completion powershell [flags]

### SEE ALSO

* [lula completion](/cli/cli-commands/lula_completion/) - Generate the autocompletion script for the specified shell
* [lula completion](./lula_completion.md) - Generate the autocompletion script for the specified shell

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_completion_zsh.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ lula completion zsh [flags]

### SEE ALSO

* [lula completion](/cli/cli-commands/lula_completion/) - Generate the autocompletion script for the specified shell
* [lula completion](./lula_completion.md) - Generate the autocompletion script for the specified shell

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_console.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ To view an OSCAL model in the Console:

### SEE ALSO

* [lula](/cli/cli-commands/lula/) - Risk Management as Code
* [lula](./lula.md) - Risk Management as Code

8 changes: 4 additions & 4 deletions docs/cli-commands/lula_dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Collection of dev commands to make dev life easier

### SEE ALSO

* [lula](/cli/cli-commands/lula/) - Risk Management as Code
* [lula dev get-resources](/cli/cli-commands/lula_dev_get-resources/) - Get Resources from a Lula Validation Manifest
* [lula dev lint](/cli/cli-commands/lula_dev_lint/) - Lint validation files against schema
* [lula dev validate](/cli/cli-commands/lula_dev_validate/) - Run an individual Lula validation.
* [lula](./lula.md) - Risk Management as Code
* [lula dev get-resources](./lula_dev_get-resources.md) - Get Resources from a Lula Validation Manifest
* [lula dev lint](./lula_dev_lint.md) - Lint validation files against schema
* [lula dev validate](./lula_dev_validate.md) - Run an individual Lula validation.

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_dev_get-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ To hang for timeout of 5 seconds:

### SEE ALSO

* [lula dev](/cli/cli-commands/lula_dev/) - Collection of dev commands to make dev life easier
* [lula dev](./lula_dev.md) - Collection of dev commands to make dev life easier

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_dev_lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ To lint existing validation files:

### SEE ALSO

* [lula dev](/cli/cli-commands/lula_dev/) - Collection of dev commands to make dev life easier
* [lula dev](./lula_dev.md) - Collection of dev commands to make dev life easier

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_dev_validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ To hang for timeout of 5 seconds:

### SEE ALSO

* [lula dev](/cli/cli-commands/lula_dev/) - Collection of dev commands to make dev life easier
* [lula dev](./lula_dev.md) - Collection of dev commands to make dev life easier

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_evaluate.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ To target a specific framework for validation:

### SEE ALSO

* [lula](/cli/cli-commands/lula/) - Risk Management as Code
* [lula](./lula.md) - Risk Management as Code

4 changes: 2 additions & 2 deletions docs/cli-commands/lula_generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Generate a specified compliance artifact template

### SEE ALSO

* [lula](/cli/cli-commands/lula/) - Risk Management as Code
* [lula generate component](/cli/cli-commands/lula_generate_component/) - Generate a component definition OSCAL template
* [lula](./lula.md) - Risk Management as Code
* [lula generate component](./lula_generate_component.md) - Generate a component definition OSCAL template

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_generate_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ lula generate component -c <catalog source url> -r control-a --remarks guidance,

### SEE ALSO

* [lula generate](/cli/cli-commands/lula_generate/) - Generate a specified compliance artifact template
* [lula generate](./lula_generate.md) - Generate a specified compliance artifact template

10 changes: 5 additions & 5 deletions docs/cli-commands/lula_tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Collection of additional commands to make OSCAL easier

### SEE ALSO

* [lula](/cli/cli-commands/lula/) - Risk Management as Code
* [lula tools compose](/cli/cli-commands/lula_tools_compose/) - compose an OSCAL component definition
* [lula tools lint](/cli/cli-commands/lula_tools_lint/) - Validate OSCAL against schema
* [lula tools upgrade](/cli/cli-commands/lula_tools_upgrade/) - Upgrade OSCAL document to a new version if possible.
* [lula tools uuidgen](/cli/cli-commands/lula_tools_uuidgen/) - Generate a UUID
* [lula](./lula.md) - Risk Management as Code
* [lula tools compose](./lula_tools_compose.md) - compose an OSCAL component definition
* [lula tools lint](./lula_tools_lint.md) - Validate OSCAL against schema
* [lula tools upgrade](./lula_tools_upgrade.md) - Upgrade OSCAL document to a new version if possible.
* [lula tools uuidgen](./lula_tools_uuidgen.md) - Generate a UUID

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_tools_compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ To indicate a specific output file:

### SEE ALSO

* [lula tools](/cli/cli-commands/lula_tools/) - Collection of additional commands to make OSCAL easier
* [lula tools](./lula_tools.md) - Collection of additional commands to make OSCAL easier

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_tools_lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ To lint existing OSCAL files:

### SEE ALSO

* [lula tools](/cli/cli-commands/lula_tools/) - Collection of additional commands to make OSCAL easier
* [lula tools](./lula_tools.md) - Collection of additional commands to make OSCAL easier

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_tools_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ To Upgrade an existing OSCAL file:

### SEE ALSO

* [lula tools](/cli/cli-commands/lula_tools/) - Collection of additional commands to make OSCAL easier
* [lula tools](./lula_tools.md) - Collection of additional commands to make OSCAL easier

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_tools_uuidgen.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ To create a deterministic UUID given some source:

### SEE ALSO

* [lula tools](/cli/cli-commands/lula_tools/) - Collection of additional commands to make OSCAL easier
* [lula tools](./lula_tools.md) - Collection of additional commands to make OSCAL easier

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_validate.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ To run validations non-interactively (no execution)

### SEE ALSO

* [lula](/cli/cli-commands/lula/) - Risk Management as Code
* [lula](./lula.md) - Risk Management as Code

2 changes: 1 addition & 1 deletion docs/cli-commands/lula_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ Get the current Lula version:

### SEE ALSO

* [lula](/cli/cli-commands/lula/) - Risk Management as Code
* [lula](./lula.md) - Risk Management as Code

2 changes: 1 addition & 1 deletion docs/getting-started/simple-demo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Simple Demo

The following simple demo will step through a process to validate and evaluate Kubernets cluster resources for a simple `component-definition`. The following pre-requisites are required to successfully run this demo:
The following simple demo will step through a process to validate and evaluate Kubernetes cluster resources for a simple `component-definition`. The following pre-requisites are required to successfully run this demo:

### Pre-Requisites

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type: docs
}

var linkHandler = func(link string) string {
return "/cli/cli-commands/" + link[:len(link)-3] + "/"
return "./" + link
}

err = doc.GenMarkdownTreeCustom(rootCmd, "./docs/cli-commands", prependTitle, linkHandler)
Expand Down

0 comments on commit 6ec6e6f

Please sign in to comment.