From 1d08c9e6dcb4bb01ea2c0b6c018cf0feceee8a88 Mon Sep 17 00:00:00 2001 From: Badal Saibo Date: Thu, 16 Jan 2025 17:10:54 +0530 Subject: [PATCH 1/3] feat: copyright text, navbar links --- docusaurus.config.ts | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 10206bd..997c5a0 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -6,11 +6,6 @@ import type * as Preset from '@docusaurus/preset-classic'; const REPO_NAME = 'api'; const ORG_NAME = 'refrens-docs'; -const GITHUB_REPO_URL = `https://github.com/${ORG_NAME}/${REPO_NAME}`; - -const editUrlFunction = ({ docPath, versionDocsDirPath }) => { - return `${GITHUB_REPO_URL}/edit/main/${versionDocsDirPath}/${docPath}`; -}; const config: Config = { title: 'Refrens Documentation', @@ -46,7 +41,6 @@ const config: Config = { sidebarPath: './sidebars.ts', // Please change this to your repo. // Remove this to remove the "edit this page" links. - editUrl: editUrlFunction, routeBasePath: '/', }, blog: false, @@ -67,13 +61,14 @@ const config: Config = { src: 'img/logo.png', }, items: [ - { - href: `https://github.com/${ORG_NAME}`, - label: 'GitHub', - position: 'right', - }, + { label: 'Refrens.com', to: 'https://www.refrens.com/' }, + { label: 'Login', to: 'https://www.refrens.com/login' }, ], }, + footer: { + style: 'dark', + copyright: `© ${new Date().getFullYear()} Refrens Internet Pvt. Ltd. | All Rights Reserved.`, + }, prism: { theme: prismThemes.github, From 5add100211b293e381583ed5289d015a15c55d0c Mon Sep 17 00:00:00 2001 From: Badal Saibo Date: Thu, 16 Jan 2025 17:16:18 +0530 Subject: [PATCH 2/3] chore: capitalized text --- docs/invoices.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/invoices.mdx b/docs/invoices.mdx index 16abd1b..800a818 100644 --- a/docs/invoices.mdx +++ b/docs/invoices.mdx @@ -60,7 +60,7 @@ This endpoint allows you to create an invoice - + :::success `200: OK` Successful auth From 5607a6a2001b8280402872e7db4768cb37a5e14a Mon Sep 17 00:00:00 2001 From: Badal Saibo Date: Fri, 17 Jan 2025 13:39:44 +0530 Subject: [PATCH 3/3] feat: changed baseUrl --- docusaurus.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 997c5a0..44a58f4 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -16,7 +16,7 @@ const config: Config = { url: `https://${ORG_NAME}.github.io`, // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: process.env.NODE_ENV === 'production' ? `/${REPO_NAME}/` : '/', + baseUrl: process.env.NODE_ENV === 'production' ? `/${REPO_NAME}/documentation/` : '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: ORG_NAME, // Usually your GitHub org/user name.