Skip to content

Commit 1c56482

Browse files
committed
Add notification in navbar.
Signed-off-by: xuezhaojun <[email protected]>
1 parent 65d81a4 commit 1c56482

File tree

5 files changed

+39
-17
lines changed

5 files changed

+39
-17
lines changed

.github/workflows/presubmit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
- name: Setup Hugo
1818
uses: peaceiris/actions-hugo@v3
1919
with:
20-
hugo-version: '0.125.5'
20+
hugo-version: "0.146.0"
2121
extended: true
2222
- name: Setup Node
2323
uses: actions/setup-node@v4
2424
with:
25-
node-version: '20'
26-
cache: 'npm'
27-
cache-dependency-path: '**/package-lock.json'
25+
node-version: "20"
26+
cache: "npm"
27+
cache-dependency-path: "**/package-lock.json"
2828
- run: npm ci
2929
- run: hugo

assets/scss/_styles_project.scss

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,22 @@
4242
margin: 0;
4343
font-size: 0.95rem;
4444
font-weight: 500;
45-
}
45+
}
46+
47+
// Highlight the version release menu item
48+
.td-navbar .navbar-nav .nav-item:first-child .nav-link {
49+
background: linear-gradient(135deg, #0e0f45 0%, #1a1b5e 100%);
50+
color: white !important;
51+
border-radius: 20px;
52+
padding: 8px 16px !important;
53+
margin-right: 10px;
54+
font-weight: 600;
55+
transition: all 0.3s ease;
56+
box-shadow: 0 2px 6px rgba(14, 15, 69, 0.3);
57+
}
58+
59+
.td-navbar .navbar-nav .nav-item:first-child .nav-link:hover {
60+
transform: translateY(-1px);
61+
box-shadow: 0 4px 12px rgba(14, 15, 69, 0.4);
62+
color: white !important;
63+
}

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module open-cluster-management.io/open-cluster-management-io.github.io
33
go 1.23
44

55
require (
6-
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7 // indirect
7-
github.com/google/docsy v0.10.0 // indirect
8-
github.com/twbs/bootstrap v5.3.3+incompatible // indirect
6+
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 // indirect
7+
github.com/google/docsy v0.12.0 // indirect
8+
github.com/twbs/bootstrap v5.3.6+incompatible // indirect
99
)

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7 h1:2aWEKCRLqQ9nPyXaz4/IYtRrDr3PzEiX0DUSUr2/EDs=
2-
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
3-
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg=
4-
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
5-
github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ=
6-
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
1+
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJkJiyTAdnqrw3Yi9rH2HNHhrrtCmj8VJe7I6o3w=
2+
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
3+
github.com/google/docsy v0.12.0 h1:CddZKL39YyJzawr8GTVaakvcUTCJRAAYdz7W0qfZ2P4=
4+
github.com/google/docsy v0.12.0/go.mod h1:1bioDqA493neyFesaTvQ9reV0V2vYy+xUAnlnz7+miM=
5+
github.com/twbs/bootstrap v5.3.6+incompatible h1:efmXVyq839m5QQ0+JBUdQQ1TrmoBqvQ5kRhUueKsH+4=
6+
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

hugo.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,15 @@ outputs:
6464

6565
menu:
6666
main:
67+
- identifier: v1.0.0-released
68+
weight: 1
69+
name: "🎉 v1.0.0 Released!"
70+
url: "/docs/getting-started/"
6771
- identifier: Github
6872
weight: 100
6973
name: GitHub
7074
url: https://github.com/open-cluster-management-io/ocm
71-
pre: <i class="fab fa-github"></i>
75+
pre: '<i class="fab fa-github"></i>'
7276

7377
params:
7478
versions:
@@ -182,7 +186,7 @@ params:
182186
module:
183187
hugoVersion:
184188
extended: true
185-
min: 0.110.0
189+
min: 0.146.0
186190
imports:
187191
- path: github.com/google/docsy
188-
disable: false
192+
disable: false

0 commit comments

Comments
 (0)