fix: add logo and google tracking code
This commit is contained in:
parent
63aed69d08
commit
714e18e482
@ -15,7 +15,7 @@ function getNextBetaVersionName() {
|
|||||||
const lastReleasedVersion = versions[0];
|
const lastReleasedVersion = versions[0];
|
||||||
if (!lastReleasedVersion.includes(expectedPrefix)) {
|
if (!lastReleasedVersion.includes(expectedPrefix)) {
|
||||||
throw new Error(
|
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);
|
const version = parseInt(lastReleasedVersion.replace(expectedPrefix, ''), 10);
|
||||||
@ -25,7 +25,7 @@ function getNextBetaVersionName() {
|
|||||||
const allDocHomesPaths = [
|
const allDocHomesPaths = [
|
||||||
'/docs/',
|
'/docs/',
|
||||||
'/docs/next/',
|
'/docs/next/',
|
||||||
...versions.slice(1).map((version) => `/docs/${version}/`),
|
...versions.slice(1).map(version => `/docs/${version}/`),
|
||||||
];
|
];
|
||||||
|
|
||||||
const isDev = process.env.NODE_ENV === 'development';
|
const isDev = process.env.NODE_ENV === 'development';
|
||||||
@ -76,7 +76,7 @@ const isI18nStaging = process.env.I18N_STAGING === 'true';
|
|||||||
'@docusaurus/plugin-client-redirects',
|
'@docusaurus/plugin-client-redirects',
|
||||||
{
|
{
|
||||||
fromExtensions: ['html'],
|
fromExtensions: ['html'],
|
||||||
createRedirects: function (path) {
|
createRedirects: function(path) {
|
||||||
// redirect to /docs from /docs/introduction,
|
// redirect to /docs from /docs/introduction,
|
||||||
// as introduction has been made the home doc
|
// as introduction has been made the home doc
|
||||||
if (allDocHomesPaths.includes(path)) {
|
if (allDocHomesPaths.includes(path)) {
|
||||||
@ -249,7 +249,7 @@ const isI18nStaging = process.env.I18N_STAGING === 'true';
|
|||||||
image: 'img/docusaurus-soc.png',
|
image: 'img/docusaurus-soc.png',
|
||||||
// metadatas: [{name: 'twitter:card', content: 'summary'}],
|
// metadatas: [{name: 'twitter:card', content: 'summary'}],
|
||||||
gtag: {
|
gtag: {
|
||||||
trackingID: 'UA-141789564-1',
|
trackingID: 'UA-110573590-2',
|
||||||
},
|
},
|
||||||
algolia: {
|
algolia: {
|
||||||
apiKey: '47ecd3b21be71c5822571b9f59e52544',
|
apiKey: '47ecd3b21be71c5822571b9f59e52544',
|
||||||
@ -258,11 +258,10 @@ const isI18nStaging = process.env.I18N_STAGING === 'true';
|
|||||||
},
|
},
|
||||||
navbar: {
|
navbar: {
|
||||||
hideOnScroll: true,
|
hideOnScroll: true,
|
||||||
title: 'OHIF',
|
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'OHIF Logo',
|
alt: 'OHIF Logo',
|
||||||
src: 'img/ohif.svg',
|
src: 'img/logo-ohif.svg',
|
||||||
srcDark: 'img/ohif.svg',
|
srcDark: 'img/logo-ohif.svg',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
|
|||||||
19
platform/docs/static/img/logo-ohif.svg
vendored
Normal file
19
platform/docs/static/img/logo-ohif.svg
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="196" height="40" viewBox="0 0 196 40">
|
||||||
|
<g fill="none" fill-rule="evenodd">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<g fill="#FFF" font-family="Inter-Regular, Inter" font-size="16">
|
||||||
|
<text transform="translate(-144 -107) translate(145 107) translate(45)">
|
||||||
|
<tspan x="0" y="16">Open Health</tspan> <tspan x="0" y="36">Imaging Foundation</tspan>
|
||||||
|
</text>
|
||||||
|
</g>
|
||||||
|
<g fill="#000" stroke="#5ACCE6" stroke-width="1.5" transform="translate(-144 -107) translate(145 107) translate(0 3)">
|
||||||
|
<rect width="14" height="14" x="20" rx="3"/>
|
||||||
|
<rect width="14" height="14" rx="3"/>
|
||||||
|
<rect width="14" height="14" x="20" y="20" rx="3"/>
|
||||||
|
<rect width="14" height="14" y="20" rx="3"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 951 B |
Loading…
Reference in New Issue
Block a user