Skip to content

Commit

Permalink
Add banner to docs about offline access
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Sep 25, 2024
1 parent a40322c commit 9cea8d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docsSite/docusaurus-embed.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import config from "./docusaurus.config";
const configEmbed = Object.assign(config, {
future: {
experimental_router: "hash"
}
},
themeConfig: Object.assign(config.themeConfig!, {
announcementBar: undefined
})
});

export default configEmbed;
9 changes: 8 additions & 1 deletion docsSite/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const config: Config = {
],

themeConfig: {
// Replace with your project's social card
image: "img/social.png",
navbar: {
title: "AdvantageScope Documentation",
Expand All @@ -65,6 +64,14 @@ const config: Config = {
disableSwitch: true,
respectPrefersColorScheme: true
},
announcementBar: {
id: "offline_info",
content:
"This documentation is available <b>offline</b> by clicking the 📖 icon in the tab bar of AdvantageScope.",
backgroundColor: "#446ce3",
textColor: "#ffffff",
isCloseable: true
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
Expand Down

0 comments on commit 9cea8d1

Please sign in to comment.