Skip to content

Commit

Permalink
docs: Move command reference to own section (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan authored Nov 26, 2024
1 parent 8d83bad commit d15120e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ zabbix_cli/commands/_dev.py
dev/

# Auto-generated docs files
docs/guide/commands/*
!docs/guide/commands/index.md
docs/commands/*
!docs/commands/index.md
docs/data
site/

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Zabbix-cli is a command line interface for Zabbix. It can be used in three ways:
2. **Single command**: Run a single command by running `zabbix-cli COMMAND`. This will run the command and print the output.
3. **Batch mode**: Run multiple commands from a file by running `zabbix-cli -f FILE`. The file should contain one command per line.

Command reference can be found in the [online user guide](https://unioslo.github.io/zabbix-cli/guide/commands/) or by running `zabbix-cli --help`.
Command reference can be found in the [online user guide](https://unioslo.github.io/zabbix-cli/commands/) or by running `zabbix-cli --help`.

### Authentication

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/guide/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Zabbix-cli provides several ways to authenticate. They are tried in the following order:

1. [Token - Config file](#api-token-config-file)
1. [Token - Environment variables](#api-token-environment-variables)
1. [Token - Config file](#config-file)
1. [Token - Environment variables](#environment-variables)
1. [Token - Auth token file](#auth-token-file)
1. [Password - Config file](#config-file_1)
1. [Password - Auth file](#auth-file)
Expand Down
2 changes: 1 addition & 1 deletion docs/scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
TEMPLATES_DIR = DOC_DIR / "templates"

# Directory of generated command doc pages
COMMANDS_DIR = DOC_DIR / "guide" / "commands"
COMMANDS_DIR = DOC_DIR / "commands"
if not COMMANDS_DIR.exists():
COMMANDS_DIR.mkdir(parents=True)
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ nav:
- Logging: guide/logging.md
- Bulk Operations: guide/bulk.md
- Migration: guide/migration.md
- Commands:
- guide/commands/*.md
- Commands:
- commands/*.md
- Plugins:
- Introduction: plugins/index.md
- plugins/guide.md
Expand Down

0 comments on commit d15120e

Please sign in to comment.