From f0e6b005484860798cfe743738220ddebc9e1806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Kivim=C3=A4ki?= Date: Tue, 31 Oct 2023 15:02:17 +0200 Subject: [PATCH] Fix docusaurus config --- docs/site/docusaurus.config.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/site/docusaurus.config.js b/docs/site/docusaurus.config.js index 81908a37..eb43b50b 100644 --- a/docs/site/docusaurus.config.js +++ b/docs/site/docusaurus.config.js @@ -41,10 +41,8 @@ const config = { docs: { routeBasePath: "/", sidebarPath: require.resolve("./sidebars.js"), - editUrl: "https://github.com/futurice/jalapeno/tree/main/docs/", - remarkPlugins: [ - tabBlocksRemarkPlugin - ], + editUrl: "https://github.com/futurice/jalapeno/tree/main/docs/site", + remarkPlugins: [tabBlocksRemarkPlugin], }, blog: false, theme: { @@ -66,7 +64,7 @@ const config = { items: [ { type: "doc", - docId: "intro", + docId: "installation", position: "left", label: "Installation", }, @@ -76,6 +74,12 @@ const config = { position: "left", label: "Usage", }, + { + type: "doc", + docId: "api", + position: "left", + label: "API", + }, { href: "https://github.com/futurice/jalapeno", label: "GitHub", @@ -97,6 +101,10 @@ const config = { label: "Usage", to: "/usage", }, + { + label: "API", + to: "/api", + }, ], }, { @@ -113,7 +121,7 @@ const config = { prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, - additionalLanguages: ['batch', 'powershell'], + additionalLanguages: ["batch", "powershell"], }, }), };