Skip to content

Commit a2500c5

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 a2500c5

File tree

11 files changed

+1162
-1365
lines changed

11 files changed

+1162
-1365
lines changed

.github/workflows/dod-checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on:
44
types: [opened, edited, synchronize]
55

66
concurrency:
7-
group: pr-{{ github.event.pull_request.number }}
7+
group: 'pr-${{ github.event.pull_request.number }}'
88
cancel-in-progress: true
99

1010
jobs:
1111
check-dod:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Print Pull Request ID
1515
run: |

.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)