feat(v2): add icon to external navbar links (#4949)

* feat(v2): add icon to external navbar links

* use isInternalUrl

* Remove demo link

Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
Alexey Pyltsyn 2021-06-15 15:45:53 +03:00 committed by GitHub
parent ace285b3b5
commit 57cf20933e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 7 deletions

View file

@ -372,7 +372,7 @@ const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging;
dropdownActiveClassDisabled: true,
dropdownItemsAfter: [
{
to: 'https://v1.docusaurus.io',
href: 'https://v1.docusaurus.io',
label: '1.x.x',
},
{
@ -386,7 +386,7 @@ const isVersioningDisabled = !!process.env.DISABLE_VERSIONING || isI18nStaging;
position: 'right',
dropdownItemsAfter: [
{
to: 'https://github.com/facebook/docusaurus/issues/3526',
href: 'https://github.com/facebook/docusaurus/issues/3526',
label: 'Help Us Translate',
},
],