From 804e8d8dff9ddbb05b5a9e56f6455888ac8cd911 Mon Sep 17 00:00:00 2001 From: Kartik Mehta Date: Sat, 26 Oct 2024 02:18:57 +0530 Subject: [PATCH] Configure Production URL --- docusaurus.config.js | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index d6e4ddb..98a85d9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -4,7 +4,7 @@ // There are various equivalent ways to declare your Docusaurus config. // See: https://docusaurus.io/docs/api/docusaurus-config -import {themes as prismThemes} from 'prism-react-renderer'; +import { themes as prismThemes } from 'prism-react-renderer'; /** @type {import('@docusaurus/types').Config} */ const config = { @@ -13,22 +13,18 @@ const config = { favicon: 'img/favicon.ico', // Set the production url of your site here - url: 'https://your-docusaurus-site.example.com', + url: 'https://orion.mrmehta.in', // Update with your custom domain // Set the // pathname under which your site is served - // For GitHub pages deployment, it is often '//' - baseUrl: '/orion-docs/', + baseUrl: '/', // Update this to the root path since you're using a custom domain // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'kartikmehta8', // Usually your GitHub org/user name + projectName: 'orion-docs', // Your repo name hosting the Docusaurus site onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', - // Even if you don't use internationalization, you can use this field to set - // useful metadata like html lang. For example, if your site is Chinese, you - // may want to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', locales: ['en'], @@ -41,10 +37,7 @@ const config = { ({ docs: { sidebarPath: './sidebars.js', - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + editUrl: 'https://github.com/kartikmehta8/orion-docs/tree/main/', }, blog: { showReadingTime: true, @@ -52,11 +45,7 @@ const config = { type: ['rss', 'atom'], xslt: true, }, - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', - // Useful options to enforce blogging best practices + editUrl: 'https://github.com/kartikmehta8/orion-docs/tree/main/', onInlineTags: 'warn', onInlineAuthors: 'warn', onUntruncatedBlogPosts: 'warn', @@ -71,7 +60,6 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ - // Replace with your project's social card image: 'img/docusaurus-social-card.jpg', navbar: { title: 'My Site', @@ -86,9 +74,9 @@ const config = { position: 'left', label: 'Tutorial', }, - {to: '/blog', label: 'Blog', position: 'left'}, + { to: '/blog', label: 'Blog', position: 'left' }, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/kartikmehta8/orion-docs', label: 'GitHub', position: 'right', }, @@ -132,7 +120,7 @@ const config = { }, { label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/kartikmehta8/orion-docs', }, ], },