feat: generate part of sidebar (#20040)

This commit is contained in:
cui
2025-12-06 18:16:09 +08:00
committed by GitHub
parent 73b4fcc41a
commit 193af2219b
5 changed files with 690 additions and 489 deletions

View File

@@ -0,0 +1,242 @@
import { SidebarItem } from "vocs";
export const opRethCliSidebar: SidebarItem = {
text: "op-reth",
link: "/cli/op-reth",
collapsed: false,
items: [
{
text: "op-reth node",
link: "/cli/op-reth/node"
},
{
text: "op-reth init",
link: "/cli/op-reth/init"
},
{
text: "op-reth init-state",
link: "/cli/op-reth/init-state"
},
{
text: "op-reth import-op",
link: "/cli/op-reth/import-op"
},
{
text: "op-reth import-receipts-op",
link: "/cli/op-reth/import-receipts-op"
},
{
text: "op-reth dump-genesis",
link: "/cli/op-reth/dump-genesis"
},
{
text: "op-reth db",
link: "/cli/op-reth/db",
collapsed: true,
items: [
{
text: "op-reth db stats",
link: "/cli/op-reth/db/stats"
},
{
text: "op-reth db list",
link: "/cli/op-reth/db/list"
},
{
text: "op-reth db checksum",
link: "/cli/op-reth/db/checksum"
},
{
text: "op-reth db diff",
link: "/cli/op-reth/db/diff"
},
{
text: "op-reth db get",
link: "/cli/op-reth/db/get",
collapsed: true,
items: [
{
text: "op-reth db get mdbx",
link: "/cli/op-reth/db/get/mdbx"
},
{
text: "op-reth db get static-file",
link: "/cli/op-reth/db/get/static-file"
}
]
},
{
text: "op-reth db drop",
link: "/cli/op-reth/db/drop"
},
{
text: "op-reth db clear",
link: "/cli/op-reth/db/clear",
collapsed: true,
items: [
{
text: "op-reth db clear mdbx",
link: "/cli/op-reth/db/clear/mdbx"
},
{
text: "op-reth db clear static-file",
link: "/cli/op-reth/db/clear/static-file"
}
]
},
{
text: "op-reth db repair-trie",
link: "/cli/op-reth/db/repair-trie"
},
{
text: "op-reth db static-file-header",
link: "/cli/op-reth/db/static-file-header",
collapsed: true,
items: [
{
text: "op-reth db static-file-header block",
link: "/cli/op-reth/db/static-file-header/block"
},
{
text: "op-reth db static-file-header path",
link: "/cli/op-reth/db/static-file-header/path"
}
]
},
{
text: "op-reth db version",
link: "/cli/op-reth/db/version"
},
{
text: "op-reth db path",
link: "/cli/op-reth/db/path"
},
{
text: "op-reth db settings",
link: "/cli/op-reth/db/settings",
collapsed: true,
items: [
{
text: "op-reth db settings get",
link: "/cli/op-reth/db/settings/get"
},
{
text: "op-reth db settings set",
link: "/cli/op-reth/db/settings/set",
collapsed: true,
items: [
{
text: "op-reth db settings set receipts_in_static_files",
link: "/cli/op-reth/db/settings/set/receipts_in_static_files"
},
{
text: "op-reth db settings set transaction_senders_in_static_files",
link: "/cli/op-reth/db/settings/set/transaction_senders_in_static_files"
}
]
}
]
},
{
text: "op-reth db account-storage",
link: "/cli/op-reth/db/account-storage"
}
]
},
{
text: "op-reth stage",
link: "/cli/op-reth/stage",
collapsed: true,
items: [
{
text: "op-reth stage run",
link: "/cli/op-reth/stage/run"
},
{
text: "op-reth stage drop",
link: "/cli/op-reth/stage/drop"
},
{
text: "op-reth stage dump",
link: "/cli/op-reth/stage/dump",
collapsed: true,
items: [
{
text: "op-reth stage dump execution",
link: "/cli/op-reth/stage/dump/execution"
},
{
text: "op-reth stage dump storage-hashing",
link: "/cli/op-reth/stage/dump/storage-hashing"
},
{
text: "op-reth stage dump account-hashing",
link: "/cli/op-reth/stage/dump/account-hashing"
},
{
text: "op-reth stage dump merkle",
link: "/cli/op-reth/stage/dump/merkle"
}
]
},
{
text: "op-reth stage unwind",
link: "/cli/op-reth/stage/unwind",
collapsed: true,
items: [
{
text: "op-reth stage unwind to-block",
link: "/cli/op-reth/stage/unwind/to-block"
},
{
text: "op-reth stage unwind num-blocks",
link: "/cli/op-reth/stage/unwind/num-blocks"
}
]
}
]
},
{
text: "op-reth p2p",
link: "/cli/op-reth/p2p",
collapsed: true,
items: [
{
text: "op-reth p2p header",
link: "/cli/op-reth/p2p/header"
},
{
text: "op-reth p2p body",
link: "/cli/op-reth/p2p/body"
},
{
text: "op-reth p2p rlpx",
link: "/cli/op-reth/p2p/rlpx",
collapsed: true,
items: [
{
text: "op-reth p2p rlpx ping",
link: "/cli/op-reth/p2p/rlpx/ping"
}
]
},
{
text: "op-reth p2p bootnode",
link: "/cli/op-reth/p2p/bootnode"
}
]
},
{
text: "op-reth config",
link: "/cli/op-reth/config"
},
{
text: "op-reth prune",
link: "/cli/op-reth/prune"
},
{
text: "op-reth re-execute",
link: "/cli/op-reth/re-execute"
}
]
};

View File

@@ -0,0 +1,250 @@
import { SidebarItem } from "vocs";
export const rethCliSidebar: SidebarItem = {
text: "reth",
link: "/cli/reth",
collapsed: false,
items: [
{
text: "reth node",
link: "/cli/reth/node"
},
{
text: "reth init",
link: "/cli/reth/init"
},
{
text: "reth init-state",
link: "/cli/reth/init-state"
},
{
text: "reth import",
link: "/cli/reth/import"
},
{
text: "reth import-era",
link: "/cli/reth/import-era"
},
{
text: "reth export-era",
link: "/cli/reth/export-era"
},
{
text: "reth dump-genesis",
link: "/cli/reth/dump-genesis"
},
{
text: "reth db",
link: "/cli/reth/db",
collapsed: true,
items: [
{
text: "reth db stats",
link: "/cli/reth/db/stats"
},
{
text: "reth db list",
link: "/cli/reth/db/list"
},
{
text: "reth db checksum",
link: "/cli/reth/db/checksum"
},
{
text: "reth db diff",
link: "/cli/reth/db/diff"
},
{
text: "reth db get",
link: "/cli/reth/db/get",
collapsed: true,
items: [
{
text: "reth db get mdbx",
link: "/cli/reth/db/get/mdbx"
},
{
text: "reth db get static-file",
link: "/cli/reth/db/get/static-file"
}
]
},
{
text: "reth db drop",
link: "/cli/reth/db/drop"
},
{
text: "reth db clear",
link: "/cli/reth/db/clear",
collapsed: true,
items: [
{
text: "reth db clear mdbx",
link: "/cli/reth/db/clear/mdbx"
},
{
text: "reth db clear static-file",
link: "/cli/reth/db/clear/static-file"
}
]
},
{
text: "reth db repair-trie",
link: "/cli/reth/db/repair-trie"
},
{
text: "reth db static-file-header",
link: "/cli/reth/db/static-file-header",
collapsed: true,
items: [
{
text: "reth db static-file-header block",
link: "/cli/reth/db/static-file-header/block"
},
{
text: "reth db static-file-header path",
link: "/cli/reth/db/static-file-header/path"
}
]
},
{
text: "reth db version",
link: "/cli/reth/db/version"
},
{
text: "reth db path",
link: "/cli/reth/db/path"
},
{
text: "reth db settings",
link: "/cli/reth/db/settings",
collapsed: true,
items: [
{
text: "reth db settings get",
link: "/cli/reth/db/settings/get"
},
{
text: "reth db settings set",
link: "/cli/reth/db/settings/set",
collapsed: true,
items: [
{
text: "reth db settings set receipts_in_static_files",
link: "/cli/reth/db/settings/set/receipts_in_static_files"
},
{
text: "reth db settings set transaction_senders_in_static_files",
link: "/cli/reth/db/settings/set/transaction_senders_in_static_files"
}
]
}
]
},
{
text: "reth db account-storage",
link: "/cli/reth/db/account-storage"
}
]
},
{
text: "reth download",
link: "/cli/reth/download"
},
{
text: "reth stage",
link: "/cli/reth/stage",
collapsed: true,
items: [
{
text: "reth stage run",
link: "/cli/reth/stage/run"
},
{
text: "reth stage drop",
link: "/cli/reth/stage/drop"
},
{
text: "reth stage dump",
link: "/cli/reth/stage/dump",
collapsed: true,
items: [
{
text: "reth stage dump execution",
link: "/cli/reth/stage/dump/execution"
},
{
text: "reth stage dump storage-hashing",
link: "/cli/reth/stage/dump/storage-hashing"
},
{
text: "reth stage dump account-hashing",
link: "/cli/reth/stage/dump/account-hashing"
},
{
text: "reth stage dump merkle",
link: "/cli/reth/stage/dump/merkle"
}
]
},
{
text: "reth stage unwind",
link: "/cli/reth/stage/unwind",
collapsed: true,
items: [
{
text: "reth stage unwind to-block",
link: "/cli/reth/stage/unwind/to-block"
},
{
text: "reth stage unwind num-blocks",
link: "/cli/reth/stage/unwind/num-blocks"
}
]
}
]
},
{
text: "reth p2p",
link: "/cli/reth/p2p",
collapsed: true,
items: [
{
text: "reth p2p header",
link: "/cli/reth/p2p/header"
},
{
text: "reth p2p body",
link: "/cli/reth/p2p/body"
},
{
text: "reth p2p rlpx",
link: "/cli/reth/p2p/rlpx",
collapsed: true,
items: [
{
text: "reth p2p rlpx ping",
link: "/cli/reth/p2p/rlpx/ping"
}
]
},
{
text: "reth p2p bootnode",
link: "/cli/reth/p2p/bootnode"
}
]
},
{
text: "reth config",
link: "/cli/reth/config"
},
{
text: "reth prune",
link: "/cli/reth/prune"
},
{
text: "reth re-execute",
link: "/cli/reth/re-execute"
}
]
};

View File

@@ -1,4 +1,6 @@
import { SidebarItem } from "vocs";
import { rethCliSidebar } from "./sidebar-cli-reth";
import { opRethCliSidebar } from "./sidebar-cli-op-reth";
export const sidebar: SidebarItem[] = [
{
@@ -288,494 +290,8 @@ export const sidebar: SidebarItem[] = [
link: "/cli/cli",
collapsed: false,
items: [
{
text: "reth",
link: "/cli/reth",
collapsed: false,
items: [
{
text: "reth node",
link: "/cli/reth/node"
},
{
text: "reth init",
link: "/cli/reth/init"
},
{
text: "reth init-state",
link: "/cli/reth/init-state"
},
{
text: "reth import",
link: "/cli/reth/import"
},
{
text: "reth import-era",
link: "/cli/reth/import-era"
},
{
text: "reth export-era",
link: "/cli/reth/export-era"
},
{
text: "reth dump-genesis",
link: "/cli/reth/dump-genesis"
},
{
text: "reth db",
link: "/cli/reth/db",
collapsed: true,
items: [
{
text: "reth db stats",
link: "/cli/reth/db/stats"
},
{
text: "reth db list",
link: "/cli/reth/db/list"
},
{
text: "reth db checksum",
link: "/cli/reth/db/checksum"
},
{
text: "reth db diff",
link: "/cli/reth/db/diff"
},
{
text: "reth db get",
link: "/cli/reth/db/get",
collapsed: true,
items: [
{
text: "reth db get mdbx",
link: "/cli/reth/db/get/mdbx"
},
{
text: "reth db get static-file",
link: "/cli/reth/db/get/static-file"
}
]
},
{
text: "reth db drop",
link: "/cli/reth/db/drop"
},
{
text: "reth db clear",
link: "/cli/reth/db/clear",
collapsed: true,
items: [
{
text: "reth db clear mdbx",
link: "/cli/reth/db/clear/mdbx"
},
{
text: "reth db clear static-file",
link: "/cli/reth/db/clear/static-file"
}
]
},
{
text: "reth db repair-trie",
link: "/cli/reth/db/repair-trie"
},
{
text: "reth db static-file-header",
link: "/cli/reth/db/static-file-header",
collapsed: true,
items: [
{
text: "reth db static-file-header block",
link: "/cli/reth/db/static-file-header/block"
},
{
text: "reth db static-file-header path",
link: "/cli/reth/db/static-file-header/path"
}
]
},
{
text: "reth db version",
link: "/cli/reth/db/version"
},
{
text: "reth db path",
link: "/cli/reth/db/path"
},
{
text: "reth db settings",
link: "/cli/reth/db/settings",
collapsed: true,
items: [
{
text: "reth db settings get",
link: "/cli/reth/db/settings/get"
},
{
text: "reth db settings set",
link: "/cli/reth/db/settings/set",
collapsed: true,
items: [
{
text: "reth db settings set receipts_in_static_files",
link: "/cli/reth/db/settings/set/receipts_in_static_files"
},
{
text: "reth db settings set transaction_senders_in_static_files",
link: "/cli/reth/db/settings/set/transaction_senders_in_static_files"
}
]
}
]
},
{
text: "reth db account-storage",
link: "/cli/reth/db/account-storage"
}
]
},
{
text: "reth download",
link: "/cli/reth/download"
},
{
text: "reth stage",
link: "/cli/reth/stage",
collapsed: true,
items: [
{
text: "reth stage run",
link: "/cli/reth/stage/run"
},
{
text: "reth stage drop",
link: "/cli/reth/stage/drop"
},
{
text: "reth stage dump",
link: "/cli/reth/stage/dump",
collapsed: true,
items: [
{
text: "reth stage dump execution",
link: "/cli/reth/stage/dump/execution"
},
{
text: "reth stage dump storage-hashing",
link: "/cli/reth/stage/dump/storage-hashing"
},
{
text: "reth stage dump account-hashing",
link: "/cli/reth/stage/dump/account-hashing"
},
{
text: "reth stage dump merkle",
link: "/cli/reth/stage/dump/merkle"
}
]
},
{
text: "reth stage unwind",
link: "/cli/reth/stage/unwind",
collapsed: true,
items: [
{
text: "reth stage unwind to-block",
link: "/cli/reth/stage/unwind/to-block"
},
{
text: "reth stage unwind num-blocks",
link: "/cli/reth/stage/unwind/num-blocks"
}
]
}
]
},
{
text: "reth p2p",
link: "/cli/reth/p2p",
collapsed: true,
items: [
{
text: "reth p2p header",
link: "/cli/reth/p2p/header"
},
{
text: "reth p2p body",
link: "/cli/reth/p2p/body"
},
{
text: "reth p2p rlpx",
link: "/cli/reth/p2p/rlpx",
collapsed: true,
items: [
{
text: "reth p2p rlpx ping",
link: "/cli/reth/p2p/rlpx/ping"
}
]
},
{
text: "reth p2p bootnode",
link: "/cli/reth/p2p/bootnode"
}
]
},
{
text: "reth config",
link: "/cli/reth/config"
},
{
text: "reth prune",
link: "/cli/reth/prune"
},
{
text: "reth re-execute",
link: "/cli/reth/re-execute"
}
]
},
{
text: "op-reth",
link: "/cli/op-reth",
collapsed: false,
items: [
{
text: "op-reth node",
link: "/cli/op-reth/node"
},
{
text: "op-reth init",
link: "/cli/op-reth/init"
},
{
text: "op-reth init-state",
link: "/cli/op-reth/init-state"
},
{
text: "op-reth import-op",
link: "/cli/op-reth/import-op"
},
{
text: "op-reth import-receipts-op",
link: "/cli/op-reth/import-receipts-op"
},
{
text: "op-reth dump-genesis",
link: "/cli/op-reth/dump-genesis"
},
{
text: "op-reth db",
link: "/cli/op-reth/db",
collapsed: true,
items: [
{
text: "op-reth db stats",
link: "/cli/op-reth/db/stats"
},
{
text: "op-reth db list",
link: "/cli/op-reth/db/list"
},
{
text: "op-reth db checksum",
link: "/cli/op-reth/db/checksum"
},
{
text: "op-reth db diff",
link: "/cli/op-reth/db/diff"
},
{
text: "op-reth db get",
link: "/cli/op-reth/db/get",
collapsed: true,
items: [
{
text: "op-reth db get mdbx",
link: "/cli/op-reth/db/get/mdbx"
},
{
text: "op-reth db get static-file",
link: "/cli/op-reth/db/get/static-file"
}
]
},
{
text: "op-reth db drop",
link: "/cli/op-reth/db/drop"
},
{
text: "op-reth db clear",
link: "/cli/op-reth/db/clear",
collapsed: true,
items: [
{
text: "op-reth db clear mdbx",
link: "/cli/op-reth/db/clear/mdbx"
},
{
text: "op-reth db clear static-file",
link: "/cli/op-reth/db/clear/static-file"
}
]
},
{
text: "op-reth db version",
link: "/cli/op-reth/db/version"
},
{
text: "op-reth db path",
link: "/cli/op-reth/db/path"
},
{
text: "op-reth db account-storage",
link: "/cli/op-reth/db/account-storage"
},
{
text: "op-reth db repair-trie",
link: "/cli/op-reth/db/repair-trie"
},
{
text: "op-reth db settings",
link: "/cli/op-reth/db/settings",
collapsed: true,
items: [
{
text: "op-reth db settings get",
link: "/cli/op-reth/db/settings/get"
},
{
text: "op-reth db settings set",
link: "/cli/op-reth/db/settings/set",
collapsed: true,
items: [
{
text: "op-reth db settings set receipts_in_static_files",
link: "/cli/op-reth/db/settings/set/receipts_in_static_files"
},
{
text: "op-reth db settings set transaction_senders_in_static_files",
link: "/cli/op-reth/db/settings/set/transaction_senders_in_static_files"
}
]
}
]
},
{
text: "op-reth db static-file-header",
link: "/cli/op-reth/db/static-file-header",
collapsed: true,
items: [
{
text: "op-reth db static-file-header block",
link: "/cli/op-reth/db/static-file-header/block"
},
{
text: "op-reth db static-file-header path",
link: "/cli/op-reth/db/static-file-header/path"
}
]
}
]
},
{
text: "op-reth stage",
link: "/cli/op-reth/stage",
collapsed: true,
items: [
{
text: "op-reth stage run",
link: "/cli/op-reth/stage/run"
},
{
text: "op-reth stage drop",
link: "/cli/op-reth/stage/drop"
},
{
text: "op-reth stage dump",
link: "/cli/op-reth/stage/dump",
collapsed: true,
items: [
{
text: "op-reth stage dump execution",
link: "/cli/op-reth/stage/dump/execution"
},
{
text: "op-reth stage dump storage-hashing",
link: "/cli/op-reth/stage/dump/storage-hashing"
},
{
text: "op-reth stage dump account-hashing",
link: "/cli/op-reth/stage/dump/account-hashing"
},
{
text: "op-reth stage dump merkle",
link: "/cli/op-reth/stage/dump/merkle"
}
]
},
{
text: "op-reth stage unwind",
link: "/cli/op-reth/stage/unwind",
collapsed: true,
items: [
{
text: "op-reth stage unwind to-block",
link: "/cli/op-reth/stage/unwind/to-block"
},
{
text: "op-reth stage unwind num-blocks",
link: "/cli/op-reth/stage/unwind/num-blocks"
}
]
}
]
},
{
text: "op-reth p2p",
link: "/cli/op-reth/p2p",
collapsed: true,
items: [
{
text: "op-reth p2p header",
link: "/cli/op-reth/p2p/header"
},
{
text: "op-reth p2p body",
link: "/cli/op-reth/p2p/body"
},
{
text: "op-reth p2p bootnode",
link: "/cli/op-reth/p2p/bootnode"
},
{
text: "op-reth p2p rlpx",
link: "/cli/op-reth/p2p/rlpx",
collapsed: true,
items: [
{
text: "op-reth p2p rlpx ping",
link: "/cli/op-reth/p2p/rlpx/ping"
}
]
}
]
},
{
text: "op-reth config",
link: "/cli/op-reth/config"
},
{
text: "op-reth prune",
link: "/cli/op-reth/prune"
},
{
text: "op-reth re-execute",
link: "/cli/op-reth/re-execute"
}
]
}
rethCliSidebar,
opRethCliSidebar
]
},
]