From b209fc47daec4d82259a20fbcd9a51f86dfdbeab Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Mon, 11 Jul 2022 14:00:24 -0400 Subject: [PATCH] docs: move operator subcommands under their own trees (#13677) The sidebar navigation tree for the `operator` sub-sub commands is getting cluttered and we have a new set of commands coming to support secure variables keyring as well. Move these all under their own subtrees. --- .../get-config.mdx} | 0 .../set-config.mdx} | 0 .../operator/{raft-info.mdx => raft/info.mdx} | 0 .../list-peers.mdx} | 0 .../operator/{raft-logs.mdx => raft/logs.mdx} | 0 .../remove-peer.mdx} | 0 .../{raft-state.mdx => raft/state.mdx} | 0 .../get-config.mdx} | 0 .../set-config.mdx} | 0 .../agent.mdx} | 0 .../inspect.mdx} | 0 .../restore.mdx} | 0 .../{snapshot-save.mdx => snapshot/save.mdx} | 0 .../state.mdx} | 0 website/data/docs-nav-data.json | 116 ++++++++++-------- 15 files changed, 68 insertions(+), 48 deletions(-) rename website/content/docs/commands/operator/{autopilot-get-config.mdx => autopilot/get-config.mdx} (100%) rename website/content/docs/commands/operator/{autopilot-set-config.mdx => autopilot/set-config.mdx} (100%) rename website/content/docs/commands/operator/{raft-info.mdx => raft/info.mdx} (100%) rename website/content/docs/commands/operator/{raft-list-peers.mdx => raft/list-peers.mdx} (100%) rename website/content/docs/commands/operator/{raft-logs.mdx => raft/logs.mdx} (100%) rename website/content/docs/commands/operator/{raft-remove-peer.mdx => raft/remove-peer.mdx} (100%) rename website/content/docs/commands/operator/{raft-state.mdx => raft/state.mdx} (100%) rename website/content/docs/commands/operator/{scheduler-get-config.mdx => scheduler/get-config.mdx} (100%) rename website/content/docs/commands/operator/{scheduler-set-config.mdx => scheduler/set-config.mdx} (100%) rename website/content/docs/commands/operator/{snapshot-agent.mdx => snapshot/agent.mdx} (100%) rename website/content/docs/commands/operator/{snapshot-inspect.mdx => snapshot/inspect.mdx} (100%) rename website/content/docs/commands/operator/{snapshot-restore.mdx => snapshot/restore.mdx} (100%) rename website/content/docs/commands/operator/{snapshot-save.mdx => snapshot/save.mdx} (100%) rename website/content/docs/commands/operator/{snapshot-state.mdx => snapshot/state.mdx} (100%) diff --git a/website/content/docs/commands/operator/autopilot-get-config.mdx b/website/content/docs/commands/operator/autopilot/get-config.mdx similarity index 100% rename from website/content/docs/commands/operator/autopilot-get-config.mdx rename to website/content/docs/commands/operator/autopilot/get-config.mdx diff --git a/website/content/docs/commands/operator/autopilot-set-config.mdx b/website/content/docs/commands/operator/autopilot/set-config.mdx similarity index 100% rename from website/content/docs/commands/operator/autopilot-set-config.mdx rename to website/content/docs/commands/operator/autopilot/set-config.mdx diff --git a/website/content/docs/commands/operator/raft-info.mdx b/website/content/docs/commands/operator/raft/info.mdx similarity index 100% rename from website/content/docs/commands/operator/raft-info.mdx rename to website/content/docs/commands/operator/raft/info.mdx diff --git a/website/content/docs/commands/operator/raft-list-peers.mdx b/website/content/docs/commands/operator/raft/list-peers.mdx similarity index 100% rename from website/content/docs/commands/operator/raft-list-peers.mdx rename to website/content/docs/commands/operator/raft/list-peers.mdx diff --git a/website/content/docs/commands/operator/raft-logs.mdx b/website/content/docs/commands/operator/raft/logs.mdx similarity index 100% rename from website/content/docs/commands/operator/raft-logs.mdx rename to website/content/docs/commands/operator/raft/logs.mdx diff --git a/website/content/docs/commands/operator/raft-remove-peer.mdx b/website/content/docs/commands/operator/raft/remove-peer.mdx similarity index 100% rename from website/content/docs/commands/operator/raft-remove-peer.mdx rename to website/content/docs/commands/operator/raft/remove-peer.mdx diff --git a/website/content/docs/commands/operator/raft-state.mdx b/website/content/docs/commands/operator/raft/state.mdx similarity index 100% rename from website/content/docs/commands/operator/raft-state.mdx rename to website/content/docs/commands/operator/raft/state.mdx diff --git a/website/content/docs/commands/operator/scheduler-get-config.mdx b/website/content/docs/commands/operator/scheduler/get-config.mdx similarity index 100% rename from website/content/docs/commands/operator/scheduler-get-config.mdx rename to website/content/docs/commands/operator/scheduler/get-config.mdx diff --git a/website/content/docs/commands/operator/scheduler-set-config.mdx b/website/content/docs/commands/operator/scheduler/set-config.mdx similarity index 100% rename from website/content/docs/commands/operator/scheduler-set-config.mdx rename to website/content/docs/commands/operator/scheduler/set-config.mdx diff --git a/website/content/docs/commands/operator/snapshot-agent.mdx b/website/content/docs/commands/operator/snapshot/agent.mdx similarity index 100% rename from website/content/docs/commands/operator/snapshot-agent.mdx rename to website/content/docs/commands/operator/snapshot/agent.mdx diff --git a/website/content/docs/commands/operator/snapshot-inspect.mdx b/website/content/docs/commands/operator/snapshot/inspect.mdx similarity index 100% rename from website/content/docs/commands/operator/snapshot-inspect.mdx rename to website/content/docs/commands/operator/snapshot/inspect.mdx diff --git a/website/content/docs/commands/operator/snapshot-restore.mdx b/website/content/docs/commands/operator/snapshot/restore.mdx similarity index 100% rename from website/content/docs/commands/operator/snapshot-restore.mdx rename to website/content/docs/commands/operator/snapshot/restore.mdx diff --git a/website/content/docs/commands/operator/snapshot-save.mdx b/website/content/docs/commands/operator/snapshot/save.mdx similarity index 100% rename from website/content/docs/commands/operator/snapshot-save.mdx rename to website/content/docs/commands/operator/snapshot/save.mdx diff --git a/website/content/docs/commands/operator/snapshot-state.mdx b/website/content/docs/commands/operator/snapshot/state.mdx similarity index 100% rename from website/content/docs/commands/operator/snapshot-state.mdx rename to website/content/docs/commands/operator/snapshot/state.mdx diff --git a/website/data/docs-nav-data.json b/website/data/docs-nav-data.json index bd1166746..337190973 100644 --- a/website/data/docs-nav-data.json +++ b/website/data/docs-nav-data.json @@ -546,12 +546,17 @@ "path": "commands/operator/api" }, { - "title": "autopilot get-config", - "path": "commands/operator/autopilot-get-config" - }, - { - "title": "autopilot set-config", - "path": "commands/operator/autopilot-set-config" + "title": "autopilot", + "routes": [ + { + "title": "get-config", + "path": "commands/operator/autopilot/get-config" + }, + { + "title": "set-config", + "path": "commands/operator/autopilot/set-config" + } + ] }, { "title": "debug", @@ -570,52 +575,67 @@ "path": "commands/operator/metrics" }, { - "title": "raft info", - "path": "commands/operator/raft-info" + "title": "raft", + "routes": [ + { + "title": "info", + "path": "commands/operator/raft/info" + }, + { + "title": "list-peers", + "path": "commands/operator/raft/list-peers" + }, + { + "title": "logs", + "path": "commands/operator/raft/logs" + }, + { + "title": "remove-peer", + "path": "commands/operator/raft/remove-peer" + }, + { + "title": "state", + "path": "commands/operator/raft/state" + } + ] }, { - "title": "raft list-peers", - "path": "commands/operator/raft-list-peers" + "title": "scheduler", + "routes": [ + { + "title": "get-config", + "path": "commands/operator/scheduler/get-config" + }, + { + "title": "set-config", + "path": "commands/operator/scheduler/set-config" + } + ] }, { - "title": "raft logs", - "path": "commands/operator/raft-logs" - }, - { - "title": "raft remove-peer", - "path": "commands/operator/raft-remove-peer" - }, - { - "title": "raft state", - "path": "commands/operator/raft-state" - }, - { - "title": "scheduler get-config", - "path": "commands/operator/scheduler-get-config" - }, - { - "title": "scheduler set-config", - "path": "commands/operator/scheduler-set-config" - }, - { - "title": "snapshot agent", - "path": "commands/operator/snapshot-agent" - }, - { - "title": "snapshot inspect", - "path": "commands/operator/snapshot-inspect" - }, - { - "title": "snapshot restore", - "path": "commands/operator/snapshot-restore" - }, - { - "title": "snapshot save", - "path": "commands/operator/snapshot-save" - }, - { - "title": "snapshot state", - "path": "commands/operator/snapshot-state" + "title": "snapshot", + "routes": [ + { + "title": "agent", + "path": "commands/operator/snapshot/agent" + }, + { + "title": "inspect", + "path": "commands/operator/snapshot/inspect" + }, + { + "title": "restore", + "path": "commands/operator/snapshot/restore" + }, + { + "title": "save", + "path": "commands/operator/snapshot/save" + }, + { + "title": "state", + "path": "commands/operator/snapshot/state" + } + ] } ] },