Skip to content

Commit 25638e9

Browse files
authored
Add notice about the ScalarDB docs site including both Community and Enterprise docs (#595)
* Create index.tsx * Comment out tags in footer Since we want to have tags at the top of the page we should hide them from the footer. * Create index.tsx * Add tags to top of page Make tags more likely to be seen at first glance on a page by adding components here. * Add styles for tags at top of page Add styles to make tags on the same line as `Version` and provide styles to make it look decent in the dark theme. * Change tag header from `Tags:` to `Editions:` * Add Font Awesome plugins * Add styles for Font Awesome question-mark icon * Add Font Awesome components and question-mark icon Add Font Awesome components and question-mark icon. The question-mark icon links to our pricing page, which shows features for the available editions. * Add tooltip for question-mark button/link * Add tooltip style and border to tags on hover * Create styles.module.css * Create index.tsx * Remove unnecessary styles These styles are no longer necessary after swizzling the `TagsListInline` component and changing `Tags` to `Editions`. * Make `Edition` left-aligned If `Edition` is right aligned, the spacing is awkward if the screen becomes narrow on both desktop and mobile. In such case, at least for now, aligning the `Edition` tags below the version number is less awkward. * Change component name Change component name, which was changed in Docusaurus 3.5.0. * Justify align tags with version * Comment out "Editions" Since we'll be showing tags other than editions, we've decided to remove "Editions" from the badge area at the top of the page. * Add tags * Add tags * Remove awkward margin spacing on mobile * Add announcement about unified docs for editions This announcement is to notify visitors that the docs for both ScalarDB Community and Enterprise editions are available on this docs site. The editions are displayed as tags, which is implemented in #469. * Fix styling for announcement bar The close button in the announcement bar was too low and aligned in the middle of the banner. * Fix issue with tags being left aligned in Firefox * Fix collapse button background for Firefox * Revert "Merge branch 'add-support-for-tags-in-doc-header' into announcement/add-notice-about-community-and-enterprise-docs-site" This reverts commit 71f4978, reversing changes made to b14409d. * Revert "Merge branch 'add-support-for-tags-in-doc-header' into announcement/add-notice-about-community-and-enterprise-docs-site" This reverts commit ffd9945, reversing changes made to a4ae874. * Revise message in announcement banner
1 parent e19f5a7 commit 25638e9

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

docusaurus.config.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -456,14 +456,15 @@ const config = {
456456
theme: prismThemes.github,
457457
darkTheme: prismThemes.dracula,
458458
},
459-
// announcementBar: {
460-
// id: 'new_version',
461-
// content:
462-
// '<b>ScalarDB X.X is now available!🥳 For details on what\'s included in this new version, see the <a target="_self" rel="noopener noreferrer" href="/docs/latest/releases/release-notes">release notes</a>.<b>',
463-
// backgroundColor: '#2673BB',
464-
// textColor: '#FFFFFF',
465-
// isCloseable: false,
466-
// },
459+
announcementBar: {
460+
id: 'new_version',
461+
content:
462+
'<b>Docs for both ScalarDB Community and Enterprise editions now live on this site!</b> Editions that a doc applies to are in tags at the top of each page 🏷️',
463+
// '<b>The ScalarDB X.X is now available!🥳 For details on what\'s included in this new version, see the <a target="_self" rel="noopener noreferrer" href="/docs/latest/releases/release-notes">release notes</a>.<b>',
464+
backgroundColor: '#2673BB',
465+
textColor: '#FFFFFF',
466+
isCloseable: true,
467+
},
467468
zoom: {
468469
selector: '.markdown :not(em) > img',
469470
background: {

src/css/custom.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
/* Announcement Bar */
5656
div[class^='announcementBar'] {
5757
font-size: 1.1rem;
58-
padding: 20px 0;
58+
padding: 5px 0;
59+
height: auto;
5960
}
6061

6162
/* Home page cards */

src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
:root {
2-
--docusaurus-collapse-button-bg: transparent;
3-
--docusaurus-collapse-button-bg-hover: rgb(0 0 0 / 10%);
2+
--docusaurus-collapse-button-bg: rgba(255, 255, 255);
3+
--docusaurus-collapse-button-bg-hover: rgba(246, 248, 250);
44
}
55

66
[data-theme='dark']:root {
7-
--docusaurus-collapse-button-bg: rgb(255 255 255 / 5%);
8-
--docusaurus-collapse-button-bg-hover: rgb(255 255 255 / 10%);
7+
--docusaurus-collapse-button-bg: rgba(36, 37, 38);
8+
--docusaurus-collapse-button-bg-hover: rgba(40, 42, 54);
99
}
1010

1111
@media (min-width: 997px) {

0 commit comments

Comments
 (0)