Skip to content

Commit d455152

Browse files
committed
Refactor DocumentationVersionHint component and update styles
- Simplified the DocumentationVersionHint component by removing KolAlert and restructuring the JSX. - Added a new CSS class for version hints with a gradient background and improved text styles. - Integrated DocumentationVersionHint into the Navbar component for consistent visibility. - Removed the DocumentationVersionHint from the DocItemWrapper to avoid duplication. - Added a .prettierrc configuration file for consistent code formatting.
1 parent e191f93 commit d455152

File tree

10 files changed

+1160
-1363
lines changed

10 files changed

+1160
-1363
lines changed

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"useTabs": true
5+
}

docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ const config = {
7878
position: 'left',
7979
dropdownActiveClassDisabled: true,
8080
dropdownItemsAfter: [
81+
{ to: `${PUBLIC_BASE_URL}docs/2.2/`, label: 'Version 2.2' },
8182
{
8283
type: 'html',
8384
value: '<hr class="dropdown-separator">',
8485
},
8586
{
8687
type: 'html',
8788
className: 'dropdown-archived-versions',
88-
value: '<b>Archive</b>',
89+
value: '<span class="dropdown__link">Version 1.7</span>',
8990
},
90-
{ to: `${PUBLIC_BASE_URL}docs/2.2/`, label: '2.2' },
9191
],
9292
},
9393
{

0 commit comments

Comments
 (0)