feat: configs-ync branding for docs
parent
7ee80fd923
commit
44471af96e
|
@ -3,8 +3,8 @@ import type {Config} from '@docusaurus/types';
|
||||||
import type * as Preset from '@docusaurus/preset-classic';
|
import type * as Preset from '@docusaurus/preset-classic';
|
||||||
|
|
||||||
const config: Config = {
|
const config: Config = {
|
||||||
title: 'Pluginpal Documentation',
|
title: 'Strapi Config Sync',
|
||||||
tagline: "All of Pluginpal's plugin documentation in one place",
|
tagline: "Documentation for the config-sync plugin for Strapi",
|
||||||
favicon: 'img/favicon.jpg',
|
favicon: 'img/favicon.jpg',
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
@ -44,7 +44,7 @@ const config: Config = {
|
||||||
// Please change this to your repo.
|
// Please change this to your repo.
|
||||||
// Remove this to remove the "edit this page" links.
|
// Remove this to remove the "edit this page" links.
|
||||||
editUrl:
|
editUrl:
|
||||||
'https://github.com/pluginpal/docs/tree/main/',
|
'https://github.com/pluginpal/strapi-plugin-config-sync/tree/master/docs',
|
||||||
admonitions: {
|
admonitions: {
|
||||||
keywords: [
|
keywords: [
|
||||||
// Admonitions defaults
|
// Admonitions defaults
|
||||||
|
@ -86,14 +86,14 @@ const config: Config = {
|
||||||
// Replace with your project's social card
|
// Replace with your project's social card
|
||||||
// image: 'img/docusaurus-social-card.jpg',
|
// image: 'img/docusaurus-social-card.jpg',
|
||||||
navbar: {
|
navbar: {
|
||||||
title: 'PluginPal Docs',
|
title: 'Strapi Config Sync',
|
||||||
logo: {
|
logo: {
|
||||||
alt: 'PluginPal logo',
|
alt: 'Config Sync logo',
|
||||||
src: 'img/logo.png',
|
src: 'img/logo.png',
|
||||||
},
|
},
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
href: 'https://github.com/pluginpal',
|
href: 'https://github.com/pluginpal/strapi-plugin-config-sync',
|
||||||
label: 'GitHub',
|
label: 'GitHub',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
},
|
},
|
||||||
|
@ -131,11 +131,11 @@ const config: Config = {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
algolia: {
|
// algolia: {
|
||||||
appId: '8VTVGK458K',
|
// appId: '8VTVGK458K',
|
||||||
apiKey: '2f311b65edaffdd986645eb42d4afa51',
|
// apiKey: '2f311b65edaffdd986645eb42d4afa51',
|
||||||
indexName: 'pluginpal',
|
// indexName: 'pluginpal',
|
||||||
},
|
// },
|
||||||
|
|
||||||
prism: {
|
prism: {
|
||||||
theme: prismThemes.github,
|
theme: prismThemes.github,
|
||||||
|
|
|
@ -22,7 +22,7 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
|
||||||
--custom-navbar-icon-button-hover-background: var(--strapi-neutral-100);
|
--custom-navbar-icon-button-hover-background: var(--strapi-neutral-100);
|
||||||
--custom-navbar-items-font-size: var(--strapi-font-size-sm);
|
--custom-navbar-items-font-size: var(--strapi-font-size-sm);
|
||||||
--custom-navbar-items-gap: var(--strapi-spacing-3);
|
--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-toggle-mr: var(--strapi-spacing-1);
|
||||||
--custom-navbar-transition: all 0.2s ease;
|
--custom-navbar-transition: all 0.2s ease;
|
||||||
|
|
||||||
|
@ -38,11 +38,16 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
|
||||||
&__brand,
|
&__brand,
|
||||||
&__logo {
|
&__logo {
|
||||||
height: auto;
|
height: auto;
|
||||||
line-height: 0;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__brand {
|
&__brand {
|
||||||
margin-right: var(--custom-navbar-brand-mr);
|
margin-right: var(--custom-navbar-brand-mr);
|
||||||
|
font-size: large;
|
||||||
|
|
||||||
|
@include small-up {
|
||||||
|
font-size: x-large;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__toggle {
|
&__toggle {
|
||||||
|
@ -50,7 +55,7 @@ $selector-color-mode-toggle-wrapper: 'div[class*="ColorModeToggle"]';
|
||||||
}
|
}
|
||||||
|
|
||||||
&__logo {
|
&__logo {
|
||||||
margin-right: 0;
|
margin-right: var(--custom-navbar-items-gap);
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: var(--custom-navbar-logo-img-height);
|
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 |
Loading…
Reference in New Issue