From 984e2d45984ed6a22dab146e7bea223fdb12ad0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lorber?= Date: Tue, 30 Jun 2020 03:06:22 +0200 Subject: [PATCH] docs(v1): external links (#3011) --- docs/api-site-config.md | 4 ++-- website-1.x/siteConfig.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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',