Skip to content

Commit

Permalink
docs: scaffold sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Dec 17, 2022
1 parent ea22ce1 commit 3590f28
Show file tree
Hide file tree
Showing 8 changed files with 892 additions and 89 deletions.
92 changes: 3 additions & 89 deletions site/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { defineConfig } from 'vitepress'

import { sidebar } from './sidebar'

export default defineConfig({
lang: 'en-US',

Expand Down Expand Up @@ -42,95 +44,7 @@ export default defineConfig({

outline: [2, 3],

sidebar: {
'/docs/': [
{
text: 'Introduction',
items: [
{ text: 'Why viem', link: '/docs/introduction' },
{ text: 'Getting Started', link: '/docs/getting-started' },
],
},
{
text: 'Clients & Transports',
items: [
{ text: 'Introduction', link: '/docs/clients/intro' },
{ text: 'Public Client', link: '/docs/clients/public' },
{ text: 'Wallet Client', link: '/docs/clients/wallet' },
{ text: 'Test Client', link: '/docs/clients/test' },
{
text: 'Transports',
items: [
{
text: 'HTTP',
link: '/docs/clients/transports/http',
},
{
text: 'WebSocket',
link: '/docs/clients/transports/websocket',
},
{
text: 'Ethereum Provider (EIP-1193)',
link: '/docs/clients/transports/ethereum-provider',
},
],
},
],
},
{
text: 'Public Actions',
items: [
{ text: 'Introduction', link: '/docs/actions/public/introduction' },
{ text: 'fetchBalance', link: '/docs/actions/public/fetchBalance' },
{ text: 'fetchBlock', link: '/docs/actions/public/fetchBlock' },
{
text: 'fetchBlockNumber',
link: '/docs/actions/public/fetchBlockNumber',
},
{
text: 'fetchTransaction',
link: '/docs/actions/public/fetchTransaction',
},
{
text: 'watchBlockNumber',
link: '/docs/actions/public/watchBlockNumber',
},
{ text: 'watchBlocks', link: '/docs/actions/public/watchBlocks' },
],
},
{
text: 'Wallet Actions',
items: [
{ text: 'Introduction', link: '/docs/actions/wallet/introduction' },
{
text: 'requestAccounts',
link: '/docs/actions/wallet/requestAccounts',
},
{
text: 'sendTransaction',
link: '/docs/actions/wallet/sendTransaction',
},
],
},
{
text: 'Test Actions',
items: [
{ text: 'Introduction', link: '/docs/actions/test/introduction' },
{ text: 'mine', link: '/docs/actions/test/mine' },
{ text: 'setBalance', link: '/docs/actions/test/setBalance' },
],
},
{
text: 'Middlewares',
items: [
{
text: 'withConfirmations',
link: '/docs/middlewares/withConfirmations',
},
],
},
],
},
sidebar,

siteTitle: false,

Expand Down
Loading

0 comments on commit 3590f28

Please sign in to comment.