mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-31 23:40:39 +02:00
feat(theme-classic): themeConfig navbar/footer logos accept className/style + update Meta Open-Source Logo (#7643)
This commit is contained in:
parent
a989a1d17e
commit
42ab07f62f
14 changed files with 102 additions and 83 deletions
|
@ -20,16 +20,20 @@ export type NavbarItem = {
|
|||
position?: 'left' | 'right';
|
||||
} & {[key: string]: unknown};
|
||||
|
||||
export type NavbarLogo = {
|
||||
type BaseLogo = {
|
||||
alt?: string;
|
||||
src: string;
|
||||
srcDark?: string;
|
||||
href?: string;
|
||||
width?: string | number;
|
||||
height?: string | number;
|
||||
href?: string;
|
||||
target?: string;
|
||||
alt?: string;
|
||||
style?: object;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export type NavbarLogo = BaseLogo;
|
||||
|
||||
// TODO improve
|
||||
export type Navbar = {
|
||||
style?: 'dark' | 'primary';
|
||||
|
@ -69,15 +73,7 @@ export type FooterLinkItem = {
|
|||
prependBaseUrlToHref?: string;
|
||||
} & {[key: string]: unknown};
|
||||
|
||||
export type FooterLogo = {
|
||||
alt?: string;
|
||||
src: string;
|
||||
srcDark?: string;
|
||||
width?: string | number;
|
||||
height?: string | number;
|
||||
target?: string;
|
||||
href?: string;
|
||||
};
|
||||
export type FooterLogo = BaseLogo;
|
||||
|
||||
export type FooterBase = {
|
||||
style: 'light' | 'dark';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue