Skip to content

Commit e1bde9a

Browse files
committed
ExampleSite: Add Everything page
Remove unused shortcodes (checked documentation and NIC repos) Add initial spacing
1 parent d727a19 commit e1bde9a

File tree

11 files changed

+209
-33
lines changed

11 files changed

+209
-33
lines changed

assets/css/v2/style.css

Lines changed: 62 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
--sidebar-width: 24rem;
3737
--sidebar-line-width: 11.5px;
3838
--side-gutter-width: 20rem;
39-
--table-top-bottom-spacing: 3rem;
39+
--table-top-bottom-spacing: 1rem;
4040
--table-row-space-between: 1.5rem;
4141
--table-min-column-spacing-narrow: 1.5rem;
4242
--table-min-column-spacing-wide: 0.75rem;
@@ -56,8 +56,32 @@
5656
--component-gap: 3.5rem;
5757
--overflow-gutter-extension: 1rem;
5858
}
59-
body {
59+
60+
html,
61+
body,
62+
p,
63+
ol,
64+
ul,
65+
li,
66+
dl,
67+
dt,
68+
dd,
69+
blockquote,
70+
figure,
71+
fieldset,
72+
legend,
73+
textarea,
74+
pre,
75+
iframe,
76+
hr,
77+
h1,
78+
h2,
79+
h3,
80+
h4,
81+
h5,
82+
h6 {
6083
margin: 0;
84+
padding: 0;
6185
}
6286

6387
@supports (font-variation-settings: normal) {
@@ -91,6 +115,32 @@ p {
91115
font-weight: 400;
92116
}
93117

118+
h4 {
119+
display: block;
120+
margin-block-start: 0;
121+
margin-block-end: 0;
122+
margin-inline-start: 0px;
123+
margin-inline-end: 0px;
124+
font-weight: bold;
125+
unicode-bidi: isolate;
126+
}
127+
128+
ul,
129+
ol {
130+
padding: 0;
131+
margin: 0;
132+
}
133+
134+
ul li,
135+
ol li {
136+
margin-bottom: 1rem;
137+
}
138+
139+
ul li:last-child,
140+
ol li:last-child {
141+
margin-bottom: 0;
142+
}
143+
94144
/* layout */
95145
header {
96146
margin: 2rem 2rem 0 2rem;
@@ -261,6 +311,7 @@ nav {
261311
grid-template-columns: var(--text-content-width-iphone-13) 1fr;
262312
margin-top: 2rem;
263313
grid-auto-rows: max-content;
314+
grid-gap: 1rem;
264315
}
265316

266317
.text-content > :not(.wide) {
@@ -793,7 +844,7 @@ main {
793844
}
794845

795846
p {
796-
margin: 0 0 1.5rem 0;
847+
margin: 0;
797848
line-height: 1.5rem;
798849
}
799850

@@ -836,12 +887,12 @@ a:hover {
836887

837888
h1 {
838889
font-size: 2rem;
839-
margin: 0 0 2rem 0;
890+
margin: 0 0 1rem 0;
840891
}
841892

842893
h2 {
843894
font-size: 1.5rem;
844-
margin: 0 0 1rem 0;
895+
margin: 1rem 0 .75rem 0;
845896
}
846897

847898
/* tables */
@@ -1096,17 +1147,13 @@ blockquote.side-callout {
10961147
margin-top: -1.5rem;
10971148
}
10981149

1099-
li .code-block {
1100-
/* For indented code blocks, move 1rem back to align code with text from heading */
1101-
margin-left: -1rem;
1102-
}
1103-
11041150
.highlight-v2 {
11051151
border-top: 1px solid #cccccc;
11061152
border-bottom: 1px solid #cccccc;
11071153
overflow-x: scroll;
11081154
scrollbar-width: none;
11091155
line-height: 1.3rem;
1156+
padding: 1rem 0;
11101157
}
11111158

11121159
.highlight-v2.single-line {
@@ -1140,6 +1187,11 @@ li .code-block {
11401187
position: relative;
11411188
}
11421189

1190+
ol .code-container,
1191+
ul .code-container {
1192+
margin-top: 0.75rem;
1193+
}
1194+
11431195
.code-container:hover {
11441196
.code-copy-button {
11451197
display: block;

exampleSite/content/includes/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
headless: true
3+
---
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You can find more information about the NGINX Plus OpenID Connect integration in the project's [GitHub repo](https://github.com/nginxinc/nginx-openid-connect#nginx-openid-connect).

exampleSite/content/test-product/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
description: Test pages for nginx-hugo-theme
33
title: Test pages for nginx-hugo-theme
44
weight: 100
5+
toc: true
56
---
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
description: Single Line Codeblock Spacing
3+
title: Single Line Codeblock Spacing
4+
weight: 200
5+
---
6+
7+
This is a line.
8+
9+
```shell
10+
sudo rm -rf /
11+
```
12+
13+
This is the line that follows. Great.
14+
15+
## `h2` - Headers followed by codeblocks
16+
```shell
17+
sudo rm -rf /
18+
```
19+
### `h3` - Header
20+
```shell
21+
sudo rm -rf /
22+
```
23+
#### `h4` - Header
24+
```shell
25+
sudo rm -rf /
26+
```
27+
28+
## Order List with single line code block
29+
30+
31+
1. Create the `/etc/ssl/nginx` directory:
32+
33+
```shell
34+
sudo mkdir -p /etc/ssl/nginx
35+
```
36+
37+
1. Log in to [MyF5 Customer Portal](https://account.f5.com/myf5/) and download your `nginx-repo.crt` and `nginx-repo.key` files.
38+
39+
1. Copy the files to the `/etc/ssl/nginx/` directory:
40+
41+
```shell
42+
sudo cp nginx-repo.crt nginx-repo.key /etc/ssl/nginx/
43+
```
44+
45+
1. Install the prerequisites:
46+
47+
```shell
48+
sudo yum install yum-utils procps
49+
```
50+
51+
1. Set up the yum repository by creating the file `nginx-agent.repo` in `/etc/yum.repos.d`, for example using `vi`:
52+
53+
```shell
54+
sudo vi /etc/yum.repos.d/nginx-agent.repo
55+
```
56+
57+
1. Add the following lines to `nginx-agent.repo`:
58+
59+
```ini
60+
[nginx-agent]
61+
name=nginx agent repo
62+
baseurl=https://pkgs.nginx.com/nginx-agent/centos/$releasever/$basearch/
63+
sslclientcert=/etc/ssl/nginx/nginx-repo.crt
64+
sslclientkey=/etc/ssl/nginx/nginx-repo.key
65+
gpgcheck=0
66+
enabled=1
67+
```
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
description: Everything
3+
title: Everything
4+
weight: 200
5+
---
6+
7+
## before-you-begin
8+
9+
{{< before-you-begin >}}
10+
Before you can set users' passwords, ensure you have [created users](#create-users) in NGINX Instance Manager. Once you've created the users, you can use one of the following options to set their passwords.
11+
{{< /before-you-begin >}}
12+
13+
## bootstrap-table
14+
15+
{{<bootstrap-table "table">}}
16+
| Method | Endpoint |
17+
|--------|---------------------------------------------------------------------|
18+
| GET | `/api/platform/v1/systems/{systemUID}/instances` |
19+
| POST | `/api/platform/v1/security/{systemUID}/instances/{nginxUID}/config` |
20+
{{</bootstrap-table>}}
21+
22+
## call-out
23+
24+
{{<call-out "tip" "Enhanced templating with Sprig">}}
25+
<i class="fas fa-code-branch"></i>
26+
Go templating in Instance Manager includes support for the [Sprig function library](https://masterminds.github.io/sprig/), offering a wide range of additional functions that can be used in templates for advanced operations like string manipulation, data conversion, mathematics, and more.
27+
{{</call-out>}}
28+
29+
## caution
30+
31+
{{<caution>}}
32+
Enabling logs using the **NGINX Logs** blade on your NGINXaaS deployment is now deprecated. This feature will be removed in an upcoming update. If you have issues accessing your NGINX logs using the deprecated method, please follow the steps in this guide to access your NGINX logs.
33+
{{</caution>}}
34+
35+
36+
## comment
37+
38+
This one literally stops the contents being rendered... It's for markdown comments.
39+
{{<comment>}}
40+
This won't render anything.
41+
{{</comment>}}
42+
43+
## deprecated
44+
45+
{{< deprecated >}}Using the helper.sh script to download your NGINX Plus certificate and key bundle is deprecated in in NGINX Controller v3.9.{{< /deprecated >}}
46+
47+
## download
48+
49+
{{< download "ngf/grafana-dashboard.json" "ngf-grafana-dashboard.json" >}}
50+
51+
## img
52+
53+
{{< img src="hero-graphic.webp" caption="hero-graphic" width="50%">}}
54+
55+
## important
56+
57+
{{< important >}}If the fingerprint is different, remove the file.{{< /important >}}
58+
59+
## include
60+
61+
{{< include "nginx-openid-repo-note.txt" >}}
62+
63+
## see-also
64+
65+
{{< see-also >}}See also!{{< /see-also >}}
66+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Short Page
3+
description: "Short Page"
4+
weight: 200
5+
---
6+
7+
See the NGINX Gateway Fabric technical specifications page:
8+
9+
<https://github.com/nginx/nginx-gateway-fabric#technical-specifications>

layouts/shortcodes/collapse.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

layouts/shortcodes/details-disclosure.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

layouts/shortcodes/devportal.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

layouts/shortcodes/heading.html

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)