Skip to content
Merged
Show file tree
Hide file tree
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
15 changes: 13 additions & 2 deletions docs-api/sidebars.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';

const sidebars: SidebarsConfig = {
docsSidebar: [{type: 'autogenerated', dirName: '.'}],

docsSidebar: [
{
type: 'category',
label: 'Guides',
items: [{type: 'autogenerated', dirName: 'docs'}],
},
{
type: 'category',
label: 'API Reference',
link: {type: 'doc', id: 'api/index'},
items: [{type: 'autogenerated', dirName: 'api/methods'}],
},
],
};

export default sidebars;
Expand Down
14 changes: 0 additions & 14 deletions docs-api/src/pages/index.tsx

This file was deleted.

17 changes: 8 additions & 9 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ const config: Config = {
['@open-rpc/docusaurus-plugin', {
openRPCSpecPath: './execution-apis.json',
docOutputPath: './docs-api/api',
indexSlug: '/'
}],
['@docusaurus/plugin-content-docs', {
id: 'api',
path: 'docs-api/api',
routeBasePath: 'api',
path: 'docs-api',
routeBasePath: '/',
sidebarPath: './docs-api/sidebars.ts',
}],
['@docusaurus/plugin-client-redirects', {
redirects: [{ from: '/api', to: '/' }],
}],
],

presets: [
['classic', {
docs: {
path: 'docs-api/docs',
sidebarPath: './docs-api/sidebars.ts',
editUrl: 'https://github.com/ethereum/execution-apis/tree/main/',
},
docs: false,
pages: {
path: 'docs-api/src/pages',
},
Expand All @@ -58,8 +58,7 @@ const config: Config = {
navbar: {
title: 'Execution APIs',
items: [
{ type: 'docSidebar', sidebarId: 'docsSidebar', label: 'Docs', position: 'left' },
{ to: '/api', label: 'API Reference', position: 'left' },
{ type: 'docSidebar', sidebarId: 'docsSidebar', docsPluginId: 'api', label: 'Docs', position: 'left' },
{ href: 'https://github.com/ethereum/execution-apis', label: 'GitHub', position: 'right' },
],
},
Expand Down
Loading
Loading