diff --git a/docs/api-site-config.md b/docs/api-site-config.md index 77b9e99c32d3..e7b8c3b20315 100644 --- a/docs/api-site-config.md +++ b/docs/api-site-config.md @@ -53,8 +53,8 @@ headerLinks: [ { doc: "doc1", label: "Getting Started" }, // Link to page found at pages/en/help.js or if that does not exist, pages/help.js, for current language { page: "help", label: "Help" }, - // Links to href destination - { href: "https://github.com/", label: "GitHub" }, + // Links to href destination, using target=_blank (external) + { href: "https://github.com/", label: "GitHub", external: true }, // Links to blog generated by Docusaurus (${baseUrl}blog) { blog: true, label: "Blog" }, // Determines search bar position among links diff --git a/website-1.x/siteConfig.js b/website-1.x/siteConfig.js index 19da12d7bcc4..a2b3c6165c4f 100644 --- a/website-1.x/siteConfig.js +++ b/website-1.x/siteConfig.js @@ -27,6 +27,7 @@ const siteConfig = { { href: 'https://github.com/facebook/docusaurus', label: 'GitHub', + external: true, }, ], headerIcon: 'img/docusaurus.svg',