feat: configs-ync branding for docs

pull/176/head
Boaz Poolman 2025-03-17 14:33:01 +01:00
parent 7ee80fd923
commit 44471af96e
3 changed files with 19 additions and 14 deletions

View File

@ -3,8 +3,8 @@ import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'Pluginpal Documentation',
tagline: "All of Pluginpal's plugin documentation in one place",
title: 'Strapi Config Sync',
tagline: "Documentation for the config-sync plugin for Strapi",
favicon: 'img/favicon.jpg',
plugins: [
@ -44,7 +44,7 @@ const config: Config = {
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/pluginpal/docs/tree/main/',
'https://github.com/pluginpal/strapi-plugin-config-sync/tree/master/docs',
admonitions: {
keywords: [
// Admonitions defaults
@ -86,14 +86,14 @@ const config: Config = {
// Replace with your project's social card
// image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'PluginPal Docs',
title: 'Strapi Config Sync',
logo: {
alt: 'PluginPal logo',
alt: 'Config Sync logo',
src: 'img/logo.png',
},
items: [
{
href: 'https://github.com/pluginpal',
href: 'https://github.com/pluginpal/strapi-plugin-config-sync',
label: 'GitHub',
position: 'right',
},
@ -131,11 +131,11 @@ const config: Config = {
],
},
algolia: {
appId: '8VTVGK458K',
apiKey: '2f311b65edaffdd986645eb42d4afa51',
indexName: 'pluginpal',
},
// algolia: {
// appId: '8VTVGK458K',
// apiKey: '2f311b65edaffdd986645eb42d4afa51',
// indexName: 'pluginpal',
// },
prism: {
theme: prismThemes.github,

View File

@ -22,7 +22,7 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
--custom-navbar-icon-button-hover-background: var(--strapi-neutral-100);
--custom-navbar-items-font-size: var(--strapi-font-size-sm);
--custom-navbar-items-gap: var(--strapi-spacing-3);
--custom-navbar-logo-img-width: 150px;
--custom-navbar-logo-img-width: 40px;
--custom-navbar-toggle-mr: var(--strapi-spacing-1);
--custom-navbar-transition: all 0.2s ease;
@ -38,11 +38,16 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
&__brand,
&__logo {
height: auto;
line-height: 0;
display: flex;
}
&__brand {
margin-right: var(--custom-navbar-brand-mr);
font-size: large;
@include small-up {
font-size: x-large;
}
}
&__toggle {
@ -50,7 +55,7 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
}
&__logo {
margin-right: 0;
margin-right: var(--custom-navbar-items-gap);
img {
height: var(--custom-navbar-logo-img-height);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB