File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import type * as Preset from '@docusaurus/preset-classic';
44import navbar from './cfg/navbar.json' ;
55import footer from './cfg/footer.json' ;
66import main from './cfg/main.json' ;
7+ import announcement from './cfg/announcement.json' ;
78import { remarkKroki } from 'remark-kroki' ;
89
910// Mermaid theme support
@@ -98,6 +99,16 @@ const config: Config = {
9899 ...footer ,
99100 copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } ${ main . copyright } ` ,
100101 } ,
102+ // Only include announcementBar if content is not empty
103+ ...( announcement . content && {
104+ announcementBar : {
105+ id : announcement . id ,
106+ content : announcement . content ,
107+ backgroundColor : announcement . backgroundColor ,
108+ textColor : announcement . textColor ,
109+ isCloseable : announcement . isCloseable ,
110+ } ,
111+ } ) ,
101112 prism : {
102113 theme : prismThemes . github ,
103114 darkTheme : prismThemes . dracula ,
You can’t perform that action at this time.
0 commit comments