Skip to content
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

Nested menues rh #1175

Draft
wants to merge 53 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
13d1a20
#872 -rh
PixelRobots Jun 27, 2023
985c048
remove /
PixelRobots Jun 27, 2023
74aea4e
add identifier
PixelRobots Jun 27, 2023
13e431c
nav fix
PixelRobots Jun 28, 2023
947c84a
Merge branch 'main' into main
PixelRobots Jun 28, 2023
89b82e0
#928 added submenus for both desktop and mobile
PixelRobots Jun 28, 2023
ab075c1
add identifiers
PixelRobots Jun 28, 2023
cf74ccc
test multi level drop down
PixelRobots Jun 28, 2023
e2bbbcf
remove broken bits
PixelRobots Jun 28, 2023
3e373db
testing with lists
PixelRobots Jun 28, 2023
c8b08ed
remove lists
PixelRobots Jun 28, 2023
b3d75c0
add second nest loop
PixelRobots Jun 28, 2023
e7919ca
test to only show on hover
PixelRobots Jun 28, 2023
114b048
test 2 at on hover
PixelRobots Jun 28, 2023
c2e213a
test new nested method
PixelRobots Jun 28, 2023
ca2ef26
fix some issues
PixelRobots Jun 28, 2023
f1bbfb2
fix slash
PixelRobots Jun 28, 2023
f2ecaa8
remove extra nesting as breaks checks
PixelRobots Jun 28, 2023
e0e9e64
testing something
PixelRobots Jun 28, 2023
6cd5dbb
remove test
PixelRobots Jun 28, 2023
35db304
testing something
PixelRobots Jun 28, 2023
f631e46
test 2
PixelRobots Jun 28, 2023
c81c4c8
test version
PixelRobots Jun 28, 2023
c69dbfb
typo fix
PixelRobots Jun 28, 2023
051d21a
fix message
PixelRobots Jun 28, 2023
1487de6
test bulma drop down
PixelRobots Jun 28, 2023
865ef4c
test again
PixelRobots Jun 28, 2023
e427dc8
making progress
PixelRobots Jun 28, 2023
a789a5c
try this
PixelRobots Jun 28, 2023
1761c93
maybe?
PixelRobots Jun 28, 2023
e07edcb
making progress
PixelRobots Jun 28, 2023
be99c03
maybe not
PixelRobots Jun 28, 2023
b8c5f39
fix icon?
PixelRobots Jun 28, 2023
01210dc
test nav changes
PixelRobots Jun 28, 2023
2b6e605
test
PixelRobots Jun 28, 2023
5e27bf7
test child
PixelRobots Jun 28, 2023
da9fd88
add else
PixelRobots Jun 28, 2023
964d387
testing
PixelRobots Jun 28, 2023
3cb042c
test menu
PixelRobots Jun 28, 2023
2614a86
last test
PixelRobots Jun 28, 2023
14c8728
test nested mobile
PixelRobots Jul 3, 2023
6b74ff0
add div
PixelRobots Jul 3, 2023
adb3452
test icon text class
PixelRobots Jul 3, 2023
616c4df
added nested css
PixelRobots Jul 3, 2023
0030ef7
css fix
PixelRobots Jul 3, 2023
6d375e3
change nested class
PixelRobots Jul 3, 2023
251a920
revert some changes
PixelRobots Jul 3, 2023
2d4b817
test nested again
PixelRobots Jul 3, 2023
65f050f
remove role
PixelRobots Jul 3, 2023
b06b59b
nested link fix?
PixelRobots Jul 3, 2023
134602b
revert
PixelRobots Jul 3, 2023
3f89f92
update test
PixelRobots Sep 1, 2023
42d653b
test 2
PixelRobots Sep 1, 2023
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
19 changes: 19 additions & 0 deletions assets/sass/nav.sass
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,22 @@
@media screen and (max-width: 1023px)
.navbar-link, .navbar-item
color: $dark

.nested.navbar-link, .nestednavbar-item
color: #4a4a4a;

.nested.dropdown:hover > .dropdown-menu
display: block;

.nested.dropdown .dropdown-menu
top: -12px;
margin-left: 100%;

.nested.dropdown .dropdown-trigger button::after


.nested.dropdown .dropdown-trigger button
padding: 0px 0px;
border: 0px;
font-size: 14px;
font-weight: 400;
87 changes: 78 additions & 9 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,46 +164,114 @@ parent = "docs"
weight = 1

[[menu.docs]]
url = "/docs/concepts/"
url = "/docs/concepts"
name = "Concepts"
identifier = "Concepts"
parent = "docs"
weight = 2

[[menu.docs]]
url = "/docs/authentication-providers/"
name = "Authentication providers"
parent = "docs"
url = "/docs/concepts/scaling-deployments/"
name = "Scaling Deployments, StatefulSets & Custom Resources"
parent = "Concepts"
weight = 1

[[menu.docs]]
url = "/docs/concepts/scaling-jobs/"
name = "Scaling Jobs"
parent = "Concepts"
weight = 2

[[menu.docs]]
url = "/docs/concepts/authentication/"
name = "Authentication"
parent = "Concepts"
weight = 3

[[menu.docs]]
url = "/docs/concepts/external-scalers/"
name = "External Scalers"
parent = "Concepts"
weight = 4

[[menu.docs]]
url = "/docs/concepts/admission-webhooks/"
name = "Admission Webhooks"
parent = "Concepts"
weight = 5

[[menu.docs]]
url = "/docs/concepts/troubleshooting/"
name = "Troubleshooting"
parent = "Concepts"
weight = 6

[[menu.docs]]
url = "/docs/concepts/#architecture"
name = "Architecture"
parent = "docs"
weight = 4
weight = 3

[[menu.docs]]
url = "/docs/operate/"
name = "Operate"
identifier = "Operate"
parent = "docs"
weight = 4

[[menu.docs]]
url = "/docs/operate/admission-webhooks/"
name = "Admission Webhooks"
parent = "Operate"
weight = 1

[[menu.docs]]
url = "/docs/operate/cluster/"
name = "Cluster"
parent = "Operate"
weight = 2

[[menu.docs]]
url = "/docs/operate/events/"
name = "Events"
parent = "Operate"
weight = 3

[[menu.docs]]
url = "/docs/operate/prometheus/"
name = "Integrate with Prometheus"
parent = "Operate"
weight = 4

[[menu.docs]]
url = "/docs/operate/metrics-server/"
name = "KEDA Metrics Server"
parent = "Operate"
weight = 5

[[menu.docs]]
url = "/docs/operate/security/"
name = "Security"
parent = "Operate"
weight = 6

[[menu.docs]]
url = "/docs/migration/"
name = "Migration Guide"
parent = "docs"
weight = 6
weight = 5

[[menu.docs]]
url = "/docs/faq/"
name = "FAQ"
parent = "docs"
weight = 7
weight = 6

[[menu.docs]]
url = "/docs/troubleshooting/"
name = "Troubleshooting"
parent = "docs"
weight = 8
weight = 7

[[menu.main]]
url = "/blog"
Expand Down Expand Up @@ -325,7 +393,8 @@ weight = 11
[[menu.main]]
url = "https://store.cncf.io/collections/keda"
name = "Merch"
weight = 5
parent = "project"
weight = 12

# "Features" section on the main page
[[params.features]]
Expand Down
Empty file modified content/docs/2.0/scalers/azure-log-analytics.md
100755 → 100644
Empty file.
11 changes: 11 additions & 0 deletions layouts/partials/docs/hero.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@
</span>
</a>
</div>
{{ if not $isLatest }}
{{ $url := replaceRE $version $latest .RelPermalink }}
<article class="message is-warning">
<div class="message-header">
<p>Warning</p>
</div>
<div class="message-body">
You are currently viewing Version "{{ $version }}" of the documentation and it is not the latest. For the most recent documentation, kindly <a href="{{ $url }}"> click here.</a>
</div>
</article>
{{ end }}
</div>
</div>
</section>
58 changes: 43 additions & 15 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
<a class="navbar-link is-arrowless" href="/docs/{{ $latest }}/scalers">Scalers</a>
</div>

<div class="navbar-item is-size-5-desktop has-dropdown is-hoverable">
<a class="navbar-link is-arrowless" href="/docs/{{ $latest }}/authentication-providers">Auth providers</a>
</div>

{{ range $docs }}
{{ $isExternal := hasPrefix .URL "http" }}
{{ if .HasChildren }}
Expand All @@ -49,26 +53,50 @@
<i class="fas fa-md fa-caret-down"></i>
</span>
</a>

<div class="navbar-dropdown is-radiusless">
{{ range .Children }}
{{ $url := replaceRE "/docs" (printf "/docs/%s" $latest) .URL }}
{{ $isExternal := hasPrefix .URL "http" }}
<a class="navbar-item" href="{{ $url }}"{{ if $isExternal }} target="_blank"{{ end }}>
<span>
{{ .Name }}
</span>
{{ if $isExternal }}
<span class="icon has-text-white">
<i class="fas fa-xs fa-external-link-alt"></i>
</span>
{{ $url := replaceRE "/docs" (printf "/docs/%s" $latest) .URL }}
{{ $isExternal := hasPrefix .URL "http" }}
{{ if .HasChildren }}
<div class="navbar-item has-dropdown">
<a class="navbar-item" href="{{ $url }}"{{ if $isExternal }} target="_blank"{{ end }}>
{{ .Name }}
</a>
<div class="nested dropdown">
{{ range .Children }}
<div class="navbar-item" href="{{ $url }}"{{ if $isExternal }} target="_blank"{{ end }}>
{{ $url := replaceRE "/docs" (printf "/docs/%s" $latest) .URL }}
<span>
{{ .Name }}
</span>
{{ if $isExternal }}
<span class="icon has-text-black">
<i class="fas fa-xs fa-external-link-alt"></i>
</span>
{{ end }}
</div>
{{ end }}
</div>
</div>
{{ else }}
<a class="navbar-item" href="{{ $url }}"{{ if $isExternal }} target="_blank"{{ end }}>
<span>
{{ .Name }}
</span>
{{ if $isExternal }}
<span class="icon has-text-white">
<i class="fas fa-xs fa-external-link-alt"></i>
</span>
{{ end }}
</a>
{{ end }}
</a>
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
{{ end }}


{{ range $menu }}
{{ $isExternal := hasPrefix .URL "http" }}
Expand All @@ -91,7 +119,7 @@
{{ .Name }}
</span>
{{ if $isExternal }}
<span class="icon has-text-white">
<span class="icon has-text-black">
<i class="fas fa-xs fa-external-link-alt"></i>
</span>
{{ end }}
Expand Down Expand Up @@ -134,4 +162,4 @@
$nav.toggleClass("scrolled", $(this).scrollTop() > $nav.height());
});
});
</script>
</script>
Empty file modified static/img/azure-log-analytics-scaler-query-example.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/img/logos/cisco.svg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/img/logos/cncf-color.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.