From af9ab2faa1f57f6b3e572ae8d8b2283da03c2cd1 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Fri, 10 Jan 2025 13:20:43 +0200 Subject: [PATCH] website: updates --- website/docusaurus.config.ts | 5 +++-- website/src/css/custom.css | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 0ef038c..5da9ddf 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -89,7 +89,8 @@ console.log('customFields: ' + util.inspect(customFields)); // ---------------------------------------------------------------------------- const config: Config = { - title: 'xPack CMake', + title: 'xPack CMake' + + ((process.env.DOCUSAURUS_IS_PREVIEW === 'true') ? ' (preview)' : ''), tagline: 'A binary distribution of CMake', // Explicitly set in headTags. // favicon: '/img/favicon.ico', @@ -260,7 +261,7 @@ const config: Config = { items: [ { to: '/', - // label: 'Home', + label: 'cmake', className: 'header-home-link', position: 'left' }, diff --git a/website/src/css/custom.css b/website/src/css/custom.css index de6e1e5..74f3f6e 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -76,8 +76,8 @@ h2[class*="title"] width: 24px; height: 24px; display: inline-flex; - vertical-align: baseline; - /* padding-right: 0.5em; */ + vertical-align: top; + padding-right: 0.5em; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z' fill='current-color'/%3E%3C/svg%3E") no-repeat; } @@ -87,8 +87,8 @@ h2[class*="title"] width: 24px; height: 24px; display: inline-flex; - vertical-align: baseline; - /* padding-right: 0.5em; */ + vertical-align: top; + padding-right: 0.5em; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z' fill='white'/%3E%3C/svg%3E") no-repeat; }