Skip to content

Commit 9816f4f

Browse files
committed
chore(website): remove some workarounds added by 7ac55a5
see facebook/docusaurus#9376
1 parent c3b4bdc commit 9816f4f

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

website/docusaurus.config.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ module.exports = {
6060
position: 'right',
6161
},
6262
{
63-
type: 'custom-link',
64-
href: 'typedoc/index.html',
65-
prependBaseUrlToHref: true,
63+
// triple "/", to always be relative to the base-url and not the current url
64+
to: 'pathname:///typedoc/index.html',
6665
label: 'Typedoc',
6766
position: 'right',
67+
// overwrite default target of "_blank"(new tab)
68+
target: '_self',
6869
},
6970
{
7071
href: 'https://github.com/nodkz/mongodb-memory-server/blob/master/CHANGELOG.md',

website/src/components/NavbarExternalLink.js

-15
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import OriginalComponentTypes from '@theme-original/NavbarItem/ComponentTypes';
22
import NavbarVersionsSelector from '../../components/NavbarVersionsSelector';
33
import NavbarBetaNotice from '../../components/NavbarBetaNotice';
4-
import NavbarLinkNoReact from '../../components/NavbarExternalLink';
54

65
const ComponentTypes = {
76
...OriginalComponentTypes,
87
'custom-versions-selector': NavbarVersionsSelector,
98
'custom-beta-notice': NavbarBetaNotice,
10-
'custom-link': NavbarLinkNoReact,
119
};
1210
export default ComponentTypes;

0 commit comments

Comments
 (0)