Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ 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',
Expand Down Expand Up @@ -41,7 +46,7 @@ const config: Config = {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: `https://github.com/${ORG_NAME}/${REPO_NAME}`,
editUrl: editUrlFunction,
routeBasePath: '/',
},
blog: false,
Expand Down
Loading