From d53f5e492c8615c3629e884cb34acd8740e0044a Mon Sep 17 00:00:00 2001 From: Fergus Bentley Date: Wed, 3 Apr 2024 18:51:32 +0100 Subject: [PATCH] fix: :wrench: duplicated /docs/ url segment (#28) * fix: :wrench: duplicated /docs/ url segment * fix: :bug: broken links --- docs/introduction.md | 6 +++--- docusaurus.config.js | 1 + src/pages/index.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/introduction.md b/docs/introduction.md index 6e32e1c..0921604 100644 --- a/docs/introduction.md +++ b/docs/introduction.md @@ -4,7 +4,7 @@ sidebar_position: 1 # Introduction -### :arrow_right: [Skip to the tutorials](/docs/docs/tutorials/) +### :arrow_right: [Skip to the tutorials](/docs/tutorials/) *If you wanna skip right into the tutorial, go ahead. We don't mind!* @@ -12,7 +12,7 @@ sidebar_position: 1 Welcome to the D&D 5e SRD API, the Dungeons & Dragons 5th Edition API! -This documentation should help you familiarize yourself with the resources available and how to consume them with HTTP requests. Read through the [Tutorial](/docs/docs/tutorials/) getting started section before you dive in. +This documentation should help you familiarize yourself with the resources available and how to consume them with HTTP requests. Read through the [Tutorial](/docs/tutorials/) getting started section before you dive in. Most of your problems should be solved just by reading through it. @@ -35,4 +35,4 @@ This API is built from two repositories: This is a evolving API and having fresh ideas are always welcome! You can open an issue in either repo, open a PR for changes, or just discuss with -other users in this Discord. \ No newline at end of file +other users in this Discord. diff --git a/docusaurus.config.js b/docusaurus.config.js index 59ee306..42159a3 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -29,6 +29,7 @@ const config = { /** @type {import('docusaurus-preset-openapi').Options} */ ({ docs: { + routeBasePath: '/', sidebarPath: require.resolve("./sidebars.js"), }, theme: { diff --git a/src/pages/index.js b/src/pages/index.js index 236281f..1860944 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -16,7 +16,7 @@ function HomepageHeader() {
Get Started - 1min ⏱️