diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 60ed571..c7149d4 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -49,16 +49,12 @@ const config: Config = { ({ docs: { sidebarPath: './sidebars.js', - editUrl: ({ locale, docPath }) => - `https://raw.githubusercontent.com/X-lab2017/open-digger-website/master/${locale === defaultLocale ? 'docs/' : `i18n/${locale}/docusaurus-plugin-content-docs/current/`}${docPath}`, remarkPlugins: [remarkMath], rehypePlugins: [rehypeKatex], }, blog: { showReadingTime: true, blogSidebarTitle: 'Recent Posts', - editUrl: ({ blogDirPath, blogPath, locale }) => - `https://raw.githubusercontent.com/X-lab2017/open-digger-website/master/${locale === defaultLocale ? `${blogDirPath}/${blogPath}` : `i18n/${locale}/docusaurus-plugin-content-blog/${blogPath}`}`, remarkPlugins: [remarkMath], rehypePlugins: [rehypeKatex], }, @@ -97,7 +93,7 @@ const config: Config = { themeConfig: ({ - image: 'img/logo/logo-black-blue-combination-vertical.png', + image: 'img/logo/logo-blue-round-corner.png', navbar: { title: 'OpenDigger', logo: { diff --git a/src/theme/EditThisPage/index.tsx b/src/theme/EditThisPage/index.tsx deleted file mode 100644 index 408cf1f..0000000 --- a/src/theme/EditThisPage/index.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import React from 'react'; -import Translate from '@docusaurus/Translate'; -import IconEdit from '@theme/Icon/Edit'; -import axios from 'axios'; -import BrowserOnly from '@docusaurus/BrowserOnly'; - -export default function EditThisPage({ editUrl }) { - return ( - }> - {() => { - return - }} - - ); - -}