From c45c9dccebe339637e88fac35c80f13a7e2b7158 Mon Sep 17 00:00:00 2001 From: davidvader Date: Mon, 16 Dec 2024 09:46:22 -0600 Subject: [PATCH] chore: use new baseurl --- docusaurus.config.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index fa137e3..26acd88 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -2,18 +2,6 @@ import { themes as prismThemes } from 'prism-react-renderer'; // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) -function modifyContent(filename, content) { - const titleMatch = content.match(/^#\s*(.+)/); - if (titleMatch && titleMatch[1]) { - filename = `${titleMatch[1]}.md`; - } - - return { - filename: filename, - content: content, - }; -} - /** @type {import('@docusaurus/types').Config} */ const config = { title: 'Vela', @@ -24,7 +12,7 @@ const config = { url: 'https://pages.git.target.com', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: '/actions-playground/vela-prototype', + baseUrl: '/docs-v2/', plugins: [ require.resolve('docusaurus-lunr-search'), // [ @@ -153,4 +141,16 @@ const config = { }), }; +function modifyContent(filename, content) { + const titleMatch = content.match(/^#\s*(.+)/); + if (titleMatch && titleMatch[1]) { + filename = `${titleMatch[1]}.md`; + } + + return { + filename: filename, + content: content, + }; +} + export default config;