Skip to content

Commit 83e1e76

Browse files
authored
Merge pull request #441 from subsquid/new-docs-banner
Banner redirect for Docs 2.0
2 parents d0cf3d7 + 6cfa2f3 commit 83e1e76

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

docusaurus.config.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,20 @@ const config = {
6565
{
6666
type: 'docsVersionDropdown',
6767
position: 'left',
68-
dropdownItemsAfter: [{to: '/versions', label: 'All versions'}],
68+
dropdownItemsAfter: [{ to: '/versions', label: 'All versions' }],
6969
dropdownActiveClassDisabled: true,
7070
},
7171
],
7272
hideOnScroll: true
7373
},
74+
announcementBar: {
75+
id: 'new_docs_banner',
76+
content:
77+
'<a target="_blank" rel="noopener noreferrer" href="https://beta.docs.sqd.dev">Try the new docs →</a>',
78+
backgroundColor: '#3880EC',
79+
textColor: '#FFFFFF',
80+
isCloseable: true,
81+
},
7482
colorMode: {
7583
defaultMode: 'light'
7684
},
@@ -111,9 +119,9 @@ const config = {
111119

112120
plugins: [
113121
[
114-
'@docusaurus/plugin-client-redirects', {
115-
redirects: urlList
116-
}
122+
'@docusaurus/plugin-client-redirects', {
123+
redirects: urlList
124+
}
117125
],
118126
async function tailWindCssPlugin(context, options) {
119127
return {

0 commit comments

Comments
 (0)