Skip to content

Commit e96c036

Browse files
Remove custom admonition script and replace with Docusaurus announcement bar for drasyl-java documentation banner
1 parent 0403d48 commit e96c036

2 files changed

Lines changed: 9 additions & 95 deletions

File tree

docusaurus.config.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,14 @@ const config = {
151151
darkTheme: darkCodeTheme,
152152
additionalLanguages: ['java']
153153
},
154+
announcementBar: {
155+
id: 'drasyl-java-documentation', // einzigartig
156+
content:
157+
'⚠️ <strong>IMPORTANT:</strong> This is <strong>drasyl-java</strong> (formerly drasyl). drasyl now refers to our new SDN solution. Visit <a href="https://drasyl.org" style="color: #ffffff; text-decoration: underline; font-weight: bold;">drasyl.org</a>',
158+
backgroundColor: '#ff6b35',
159+
textColor: '#ffffff',
160+
isCloseable: false,
161+
},
154162
}),
155163
themes: [
156164
// ... Your other themes.
@@ -163,12 +171,7 @@ const config = {
163171
},
164172
],
165173
],
166-
scripts: [
167-
{
168-
src: '/js/custom-admonition.js',
169-
async: true,
170-
},
171-
],
174+
scripts: [],
172175
};
173176

174177
module.exports = config;

static/js/custom-admonition.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)