From 714e18e4825d4e70d33903a9193824e5b13c75b9 Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Wed, 16 Jun 2021 08:17:07 -0400 Subject: [PATCH] fix: add logo and google tracking code --- platform/docs/docusaurus.config.js | 19 +++++++++---------- platform/docs/static/img/logo-ohif.svg | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+), 10 deletions(-) create mode 100644 platform/docs/static/img/logo-ohif.svg diff --git a/platform/docs/docusaurus.config.js b/platform/docs/docusaurus.config.js index 6e0244da3..db9aee299 100644 --- a/platform/docs/docusaurus.config.js +++ b/platform/docs/docusaurus.config.js @@ -15,7 +15,7 @@ function getNextBetaVersionName() { const lastReleasedVersion = versions[0]; if (!lastReleasedVersion.includes(expectedPrefix)) { throw new Error( - 'this code is only meant to be used during the 2.0 beta phase.', + 'this code is only meant to be used during the 2.0 beta phase.' ); } const version = parseInt(lastReleasedVersion.replace(expectedPrefix, ''), 10); @@ -25,7 +25,7 @@ function getNextBetaVersionName() { const allDocHomesPaths = [ '/docs/', '/docs/next/', - ...versions.slice(1).map((version) => `/docs/${version}/`), + ...versions.slice(1).map(version => `/docs/${version}/`), ]; const isDev = process.env.NODE_ENV === 'development'; @@ -56,11 +56,11 @@ const isI18nStaging = process.env.I18N_STAGING === 'true'; defaultLocale: 'en', locales: isDeployPreview ? // Deploy preview: keep it fast! - ['en'] + ['en'] : isI18nStaging - ? // Staging locales: https://docusaurus-i18n-staging.netlify.app/ + ? // Staging locales: https://docusaurus-i18n-staging.netlify.app/ ['en', 'ja'] - : // Production locales + : // Production locales ['en', 'fr', 'ko', 'zh-CN'], }, onBrokenLinks: 'warn', @@ -76,7 +76,7 @@ const isI18nStaging = process.env.I18N_STAGING === 'true'; '@docusaurus/plugin-client-redirects', { fromExtensions: ['html'], - createRedirects: function (path) { + createRedirects: function(path) { // redirect to /docs from /docs/introduction, // as introduction has been made the home doc if (allDocHomesPaths.includes(path)) { @@ -249,7 +249,7 @@ const isI18nStaging = process.env.I18N_STAGING === 'true'; image: 'img/docusaurus-soc.png', // metadatas: [{name: 'twitter:card', content: 'summary'}], gtag: { - trackingID: 'UA-141789564-1', + trackingID: 'UA-110573590-2', }, algolia: { apiKey: '47ecd3b21be71c5822571b9f59e52544', @@ -258,11 +258,10 @@ const isI18nStaging = process.env.I18N_STAGING === 'true'; }, navbar: { hideOnScroll: true, - title: 'OHIF', logo: { alt: 'OHIF Logo', - src: 'img/ohif.svg', - srcDark: 'img/ohif.svg', + src: 'img/logo-ohif.svg', + srcDark: 'img/logo-ohif.svg', }, items: [ { diff --git a/platform/docs/static/img/logo-ohif.svg b/platform/docs/static/img/logo-ohif.svg new file mode 100644 index 000000000..214ebca74 --- /dev/null +++ b/platform/docs/static/img/logo-ohif.svg @@ -0,0 +1,19 @@ + + + + + + + Open Health Imaging Foundation + + + + + + + + + + + +