Skip to content

Add notification in navbar. #491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.125.5'
hugo-version: "0.146.0"
extended: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
node-version: "20"
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- run: npm ci
- run: hugo
21 changes: 20 additions & 1 deletion assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,23 @@
margin: 0;
font-size: 0.95rem;
font-weight: 500;
}
}

// Highlight the version release menu item
.td-navbar .navbar-nav .nav-item:first-child .nav-link {
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
color: white !important;
border-radius: 20px;
padding: 8px 16px !important;
margin-right: 10px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.td-navbar .navbar-nav .nav-item:first-child .nav-link:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
color: white !important;
}
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module open-cluster-management.io/open-cluster-management-io.github.io
go 1.23

require (
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7 // indirect
github.com/google/docsy v0.10.0 // indirect
github.com/twbs/bootstrap v5.3.3+incompatible // indirect
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 // indirect
github.com/google/docsy v0.12.0 // indirect
github.com/twbs/bootstrap v5.3.6+incompatible // indirect
)
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7 h1:2aWEKCRLqQ9nPyXaz4/IYtRrDr3PzEiX0DUSUr2/EDs=
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg=
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
github.com/twbs/bootstrap v5.3.3+incompatible h1:goFoqinzdHfkeegpFP7pvhbd0g+A3O2hbU3XCjuNrEQ=
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJkJiyTAdnqrw3Yi9rH2HNHhrrtCmj8VJe7I6o3w=
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
github.com/google/docsy v0.12.0 h1:CddZKL39YyJzawr8GTVaakvcUTCJRAAYdz7W0qfZ2P4=
github.com/google/docsy v0.12.0/go.mod h1:1bioDqA493neyFesaTvQ9reV0V2vYy+xUAnlnz7+miM=
github.com/twbs/bootstrap v5.3.6+incompatible h1:efmXVyq839m5QQ0+JBUdQQ1TrmoBqvQ5kRhUueKsH+4=
github.com/twbs/bootstrap v5.3.6+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
10 changes: 7 additions & 3 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ outputs:

menu:
main:
- identifier: v1.0.0-released
weight: 1
name: "🎉 v1.0.0 Released!"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikeshng The content and the url could be customized once we decided.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSS like background color also could be cutomized.

url: "/docs/release/#100-20-june-2025"
- identifier: Github
weight: 100
name: GitHub
url: https://github.com/open-cluster-management-io/ocm
pre: <i class="fab fa-github"></i>
pre: '<i class="fab fa-github"></i>'

params:
versions:
Expand Down Expand Up @@ -182,7 +186,7 @@ params:
module:
hugoVersion:
extended: true
min: 0.110.0
min: 0.146.0
imports:
- path: github.com/google/docsy
disable: false
disable: false