Skip to content

Commit ce06956

Browse files
author
nginx
committed
Pre OSS commit
2 parents 58ae92e + 28135e7 commit ce06956

File tree

9 files changed

+185
-4
lines changed

9 files changed

+185
-4
lines changed

config/_default/config.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ refLinksErrorLevel = "ERROR"
3131
author = "NGINX Inc." # add your company name
3232
github = "nginxinc" # add your github profile name
3333
twitter = "@nginx" # add your twitter profile
34-
#email = ""
3534
noindex_kinds = [
3635
"taxonomy",
3736
"taxonomyTerm"
3837
]
3938
taxonomiesExcludedFromSitemap = ["tags", "categories", "doctypes"]
4039

41-
#logo = "NGINX-Management-Suite-product-icon.svg"
40+
#logo = ""
4241

4342
# Version lists; used by the versions shortcode
4443
nimvers = [ # list of NIM versions for the versions shortcode
@@ -54,7 +53,7 @@ refLinksErrorLevel = "ERROR"
5453
"2.6.0",
5554
"2.7.0",
5655
"2.8.0",
57-
"2.9.0",
56+
"2.9.0"
5857
]
5958
acmvers = [ # list of ACM versions for the shortcode
6059
"1.0.0",

content/modsec-waf/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: |
55
No further renewals are accepted as of April 1, 2023.
66
weight: 5000
77
url: /nginx-waf/
8+
cascade:
9+
logo: "NGINX-WAF-product-icon-RGB.svg"
810
---
911

1012
{{< important >}}

content/nap-dos/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ description: "NGINX App Protect DoS provides behavioral DoS detection and mitiga
33
your [free 30-day trial](https://www.nginx.com/free-trial-request/) today. \n"
44
title: NGINX App Protect DoS
55
url: /nginx-app-protect-dos/
6+
cascade:
7+
logo: "NGINX-App-Protect-DoS-product-icon.svg"
68
---

content/nap-waf/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ menu: docs
88
title: NGINX App Protect WAF
99
weight: 100
1010
url: /nginx-app-protect-waf/
11+
cascade:
12+
logo: "NGINX-App-Protect-WAF-product-icon.svg"
1113
---

content/nginx/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ linkTitle: NGINX Plus
55
menu: docs
66
title: NGINX Plus
77
weight: 100
8+
cascade:
9+
logo: "NGINX-Plus-product-icon-RGB.svg"
810
---

content/nms/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
title: NGINX Management Suite
33
description: A set of tools that enable enterprise scalability, security, observability, and governance.
44
url: /nginx-management-suite/
5+
cascade:
6+
logo: "NGINX-Management-Suite-product-icon.svg"
57
---
68

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/nginxinc/docs
22

33
go 1.19
44

5-
require github.com/nginxinc/nginx-hugo-theme v0.28.0 // indirect
5+
require github.com/nginxinc/nginx-hugo-theme v0.30.0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ github.com/nginxinc/nginx-hugo-theme v0.28.0 h1:RHHvBmFk2Uptk+efLPSIuBd2elc3IOZP
22
github.com/nginxinc/nginx-hugo-theme v0.28.0/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M=
33
github.com/nginxinc/nginx-hugo-theme v0.28.1-0.20230426164225-455b6ed745e7 h1:+2alS1YSjkqP1MJWTdxMWS+MmKp2I2Fn3BJpbZkY/CI=
44
github.com/nginxinc/nginx-hugo-theme v0.28.1-0.20230426164225-455b6ed745e7/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M=
5+
github.com/nginxinc/nginx-hugo-theme v0.30.0 h1:ZTvA/mlybvVb5UA/kP5pfj7B/c4QhbGU2n+FluUNBfk=
6+
github.com/nginxinc/nginx-hugo-theme v0.30.0/go.mod h1:DPNgSS5QYxkjH/BfH4uPDiTfODqWJ50NKZdorguom8M=

layouts/partials/sidebar.html

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
{{ block "sidebar" . }}
2+
<!-- sidebar start -->
3+
4+
<div id="sidebar" class="sidebar" aria-label="Sidebar navigation">
5+
<h3>
6+
<a class="sidebar-title" href="{{.FirstSection.Permalink}}" alt="{{.FirstSection.Title}}">{{ if .Params.logo }}<img
7+
class="card-img-top" src="{{ .Site.BaseURL}}/images/icons/{{ .Params.logo }}"
8+
alt="{{.FirstSection.Title}}">{{end}}
9+
{{.FirstSection.Title}}</a>
10+
</h3>
11+
12+
<ul>
13+
<!-- Use FirstSection here to keep the current product as the top level of the nav -->
14+
{{ range .FirstSection.Pages.ByWeight }}
15+
<!-- Create a regular list item for pages -->
16+
{{if eq .Kind "page"}}
17+
<li class="nginx-toc-link l1">
18+
<a data-menu-id="{{.RelPermalink}}" href="{{ .Permalink }}">{{ .Title }}</a>
19+
</li>
20+
21+
<!-- Create an accordion group for sections -->
22+
{{else}}
23+
24+
<div class="accordion" id="accordion1">
25+
<div class="accordion-group">
26+
<div class="accordion-heading">
27+
<li class="nginx-toc-link l1">
28+
{{ $theRealSection := (print "/" $.Section "/") }}
29+
{{ if eq .RelPermalink $theRealSection }}
30+
<a data-menu-id="{{.RelPermalink}}" class="accordion-toggle" aria-expanded="true"
31+
{{ else }}
32+
<a data-menu-id="{{.RelPermalink}}" class="accordion-toggle" aria-expanded="false"
33+
{{ end }}
34+
data-toggle="collapse" href="#" data-target="#{{.Section | urlize}}--{{.Title | urlize}}" aria-controls="{{.Section | urlize}}--{{.Title | urlize}}">
35+
<i class="fa fa-2xs fa-fw fa-chevron-right"></i><i
36+
class="fa fa-2xs fa-fw fa-chevron-down"></i>{{ .Title }}</a>
37+
</li>
38+
</div>
39+
<!-- This is necessary to expand the current product after clicking on the product cards in docs.nginx.com-->
40+
{{ if eq .RelPermalink $theRealSection }}
41+
<div id="{{.Section | urlize}}--{{.Title | urlize}}" class="accordion-body collapse show">
42+
{{ else }}
43+
<div id="{{.Section | urlize}}--{{.Title | urlize}}" class="accordion-body collapse">
44+
{{ end }}
45+
<div class="accordion-inner">
46+
{{ range .Sections }}
47+
<div class="accordion" id="accordion2">
48+
<div class="sidebar-l1-padding">
49+
<div class="accordion-group sidebar-il-border">
50+
<div class="accordion-heading">
51+
<ul>
52+
<li class="nginx-toc-link l2">
53+
<a data-menu-id="{{.RelPermalink}}" class="accordion-toggle"
54+
aria-expanded="false" data-toggle="collapse"
55+
href="#{{.Section | urlize}}--{{.Title | urlize}}">
56+
<i class="fa fa-2xs fa-fw fa-chevron-right"></i><i
57+
class="fa fa-2xs fa-fw fa-chevron-down"></i>{{ .Title }}</a>
58+
</li>
59+
<ul>
60+
</div>
61+
<div id="{{.Section | urlize}}--{{.Title | urlize}}" class="accordion-body collapse leaf">
62+
<div class="accordion-inner">
63+
{{ range .Sections }}
64+
<div class="accordion" id="Accordion3">
65+
<div class="sidebar-l2-padding">
66+
<div class="accordion-group sidebar-il-border">
67+
<div class="accordion-heading">
68+
<ul>
69+
<li class="nginx-toc-link l2">
70+
<a data-menu-id="{{.RelPermalink}}" class="accordion-toggle"
71+
aria-expanded="false" data-toggle="collapse"
72+
href="#{{.Section | urlize}}--{{.Parent.File.ContentBaseName}}--{{.Title | urlize}}">
73+
<i class="fa fa-2xs fa-fw fa-chevron-right"></i><i
74+
class="fa fa-2xs fa-fw fa-chevron-down"></i>{{ .Title }}</a>
75+
</li>
76+
<ul>
77+
</div>
78+
79+
<div id="{{.Section | urlize}}--{{.Parent.File.ContentBaseName}}--{{.Title | urlize}}" class="accordion-body collapse leaf">
80+
<div class="accordion-inner">
81+
{{ range .Sections }}
82+
<div class="accordion" id="Accordion4">
83+
<div class="sidebar-l2-padding">
84+
<div class="accordion-group sidebar-il-border">
85+
<div class="accordion-heading">
86+
<ul>
87+
<li class="nginx-toc-link l2">
88+
<a data-menu-id="{{.RelPermalink}}" class="accordion-toggle"
89+
aria-expanded="false" data-toggle="collapse"
90+
href="#{{.Section | urlize}}--{{.Parent.Parent.File.ContentBaseName}}--{{.Parent.File.ContentBaseName}}--{{.Title | urlize}}">
91+
<i class="fa fa-2xs fa-fw fa-chevron-right"></i><i
92+
class="fa fa-2xs fa-fw fa-chevron-down"></i>{{ .Title }}</a>
93+
</li>
94+
<ul>
95+
</div>
96+
97+
<div id="{{.Section | urlize}}--{{.Parent.Parent.File.ContentBaseName}}--{{.Parent.File.ContentBaseName}}--{{.Title | urlize}}" class="accordion-body collapse leaf">
98+
<div class="accordion-inner">
99+
{{ range .Pages }}
100+
<ul class="sidebar-l2-padding">
101+
<li class="nginx-toc-link l3 sidebar-il-border ">
102+
<a data-menu-id="{{.RelPermalink}}"
103+
href="{{ .Permalink }}">{{ .Title }}</a>
104+
</li>
105+
</ul>
106+
{{ end }}
107+
</div>
108+
</div>
109+
</div>
110+
</div>
111+
</div>
112+
{{ end }}
113+
{{ range .RegularPages }}
114+
<ul class="sidebar-l2-padding">
115+
<li class="nginx-toc-link l3 sidebar-il-border ">
116+
<a data-menu-id="{{.RelPermalink}}"
117+
href="{{ .Permalink }}">{{ .Title }}</a>
118+
</li>
119+
</ul>
120+
{{ end }}
121+
</div>
122+
</div>
123+
</div>
124+
</div>
125+
</div>
126+
{{ end }}
127+
{{ range .RegularPages }}
128+
<ul class="sidebar-l2-padding">
129+
<li class="nginx-toc-link l3 sidebar-il-border ">
130+
<a data-menu-id="{{.RelPermalink}}"
131+
href="{{ .Permalink }}">{{ .Title }}</a>
132+
</li>
133+
</ul>
134+
{{ end }}
135+
</div>
136+
</div>
137+
</div>
138+
</div>
139+
</div>
140+
{{ end }}
141+
{{ range .RegularPages }}
142+
<ul class="sidebar-reg-padding">
143+
<div class="accordion" id="accordion2">
144+
<div class="accordion-group sidebar-il-border">
145+
<div class="accordion-heading">
146+
<ul>
147+
<li class="nginx-toc-link l2">
148+
<a data-menu-id="{{.RelPermalink}}"
149+
href="{{ .Permalink }}">{{ .Title }}</a>
150+
</li>
151+
</ul>
152+
</div>
153+
</div>
154+
</div>
155+
</ul>
156+
{{ end }}
157+
</div>
158+
</div>
159+
</div>
160+
</div>
161+
162+
{{end}}
163+
164+
{{ end }}
165+
166+
</ul>
167+
168+
<!-- close sidebar div-->
169+
</div>
170+
{{ end }}

0 commit comments

Comments
 (0)