Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
246 changes: 77 additions & 169 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,185 +3,93 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */

module.exports = {
mainSidebar: [
{
type: "html",
value:
'<a class="navbar__brand" href="/"><div class="navbar__logo"><img src="/img/walletconnect-logo-white.svg#dark-mode-only" alt="WalletConnect Logo"><img src="/img/walletconnect-logo-black.svg#light-mode-only" alt="WalletConnect Logo"></div>WalletConnect<span>Specs<span></a>',
defaultStyle: true,
},
{
type: "category",
label: "Specs",
className: "menu_outer_list",
items: [
"readme",
mainSidebar: [
{
type: "category",
label: "Client APIs",
collapsed: false,
items: [
{
type: "category",
label: "Sign API",
items: [
{
type: "autogenerated",
dirName: "specs/clients/sign",
},
],
},
{
type: "category",
label: "Chat API",
items: [
{
type: "autogenerated",
dirName: "specs/clients/chat",
},
],
},
{
type: "category",
label: "Notify API",
items: [
{
type: "autogenerated",
dirName: "specs/clients/notify",
},
],
},
{
type: "category",
label: "Core API",
items: [
{
type: "autogenerated",
dirName: "specs/clients/core",
},
],
},
],
type: "html",
value: `
<a class="navbar__brand" href="/">
<div class="navbar__logo">
<img src="/img/walletconnect-logo-white.svg#dark-mode-only" alt="WalletConnect Logo">
<img src="/img/walletconnect-logo-black.svg#light-mode-only" alt="WalletConnect Logo">
</div>
WalletConnect<span>Specs<span>
</a>`,
defaultStyle: true,
},
{
type: "category",
label: "Server APIs",
collapsed: false,
items: [
{
type: "category",
label: "Relay Server",
items: [
{
type: "autogenerated",
dirName: "specs/servers/relay",
},
],
},
{
type: "category",
label: "Keys Server",
items: [
{
type: "autogenerated",
dirName: "specs/servers/keys",
},
],
},
{
type: "category",
label: "Push Server",
items: [
{
type: "autogenerated",
dirName: "specs/servers/push",
},
],
},
{
type: "category",
label: "Notify Server",
items: [
type: "category",
label: "Specs",
className: "menu_outer_list",
items: [
"readme",
{
type: "autogenerated",
dirName: "specs/servers/notify",
type: "category",
label: "Client APIs",
collapsed: false,
items: [
{ type: "category", label: "Sign API", items: [{ type: "autogenerated", dirName: "specs/clients/sign" }] },
{ type: "category", label: "Chat API", items: [{ type: "autogenerated", dirName: "specs/clients/chat" }] },
{ type: "category", label: "Notify API", items: [{ type: "autogenerated", dirName: "specs/clients/notify" }] },
{ type: "category", label: "Core API", items: [{ type: "autogenerated", dirName: "specs/clients/core" }] },
],
},
],
},
{
type: "category",
label: "Verify Server",
items: [
{
type: "autogenerated",
dirName: "specs/servers/verify",
type: "category",
label: "Server APIs",
collapsed: false,
items: [
{ type: "category", label: "Relay Server", items: [{ type: "autogenerated", dirName: "specs/servers/relay" }] },
{ type: "category", label: "Keys Server", items: [{ type: "autogenerated", dirName: "specs/servers/keys" }] },
{ type: "category", label: "Push Server", items: [{ type: "autogenerated", dirName: "specs/servers/push" }] },
{ type: "category", label: "Notify Server", items: [{ type: "autogenerated", dirName: "specs/servers/notify" }] },
{ type: "category", label: "Verify Server", items: [{ type: "autogenerated", dirName: "specs/servers/verify" }] },
{ type: "category", label: "Blockchain API", items: [{ type: "autogenerated", dirName: "specs/servers/blockchain" }] },
],
},
],
},
{
type: "category",
label: "Blockchain API",
items: [
{
type: "autogenerated",
dirName: "specs/servers/blockchain",
type: "category",
label: "Meta-Clients API",
collapsed: true,
items: [
// Uncomment to include these categories
// {
// type: "category",
// label: "Web3Inbox",
// items: [{ type: "autogenerated", dirName: "specs/meta-clients/web3inbox" }],
// },
// {
// type: "category",
// label: "Web3Wallet",
// items: [{ type: "autogenerated", dirName: "specs/meta-clients/web3wallet" }],
// },
{
type: "category",
label: "Web3Modal",
items: [
// Uncomment to include these items
// "specs/meta-clients/web3modal/README",
// "specs/meta-clients/web3modal/core-package",
// "specs/meta-clients/web3modal/ui-package",
// "specs/meta-clients/web3modal/scaffold-package",
// "specs/meta-clients/web3modal/client-packages",
"specs/meta-clients/web3modal/api",
// "specs/meta-clients/web3modal/types",
],
},
],
},
],
},
],
],
},
{
type: "category",
label: "Meta-Clients API",
collapsed: true,
items: [
// {
// type: "category",
// label: "Web3Inbox",
// items: [
// {
// type: "autogenerated",
// dirName: "specs/meta-clients/web3inbox",
// },
// ],
// },
// {
// type: "category",
// label: "Web3Wallet",
// items: [
// {
// type: "autogenerated",
// dirName: "specs/meta-clients/web3wallet",
// },
// ],
// },
{
type: "category",
label: "Web3Modal",
items: [
// "specs/meta-clients/web3modal/README",
// "specs/meta-clients/web3modal/core-package",
// "specs/meta-clients/web3modal/ui-package",
// "specs/meta-clients/web3modal/scaffold-package",
// "specs/meta-clients/web3modal/client-packages",
"specs/meta-clients/web3modal/api",
// "specs/meta-clients/web3modal/types",
],
},
],
},
],
},
{
type: "category",
label: "Glossary",
className: "menu_outer_list",
items: [
{
type: "autogenerated",
dirName: "glossary",
type: "category",
label: "Glossary",
className: "menu_outer_list",
items: [
{
type: "autogenerated",
dirName: "glossary",
},
],
},
],
},
],
],
};