Skip to content

Commit f24df47

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

File tree

17 files changed

+342
-37
lines changed

17 files changed

+342
-37
lines changed

assets/css/v2/style.css

Lines changed: 67 additions & 12 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;
@@ -55,9 +55,35 @@
5555
--codeblock-line-box-side-length: 4px;
5656
--component-gap: 3.5rem;
5757
--overflow-gutter-extension: 1rem;
58-
}
59-
body {
58+
59+
--flow-gap: 1rem;
60+
}
61+
62+
html,
63+
body,
64+
p,
65+
ol,
66+
ul,
67+
li,
68+
dl,
69+
dt,
70+
dd,
71+
blockquote,
72+
figure,
73+
fieldset,
74+
legend,
75+
textarea,
76+
pre,
77+
iframe,
78+
hr,
79+
h1,
80+
h2,
81+
h3,
82+
h4,
83+
h5,
84+
h6 {
6085
margin: 0;
86+
padding: 0;
6187
}
6288

6389
@supports (font-variation-settings: normal) {
@@ -91,6 +117,22 @@ p {
91117
font-weight: 400;
92118
}
93119

120+
ul,
121+
ol {
122+
padding: 0;
123+
margin: 0;
124+
}
125+
126+
ul li,
127+
ol li {
128+
margin-bottom: 0.5rem;
129+
}
130+
131+
ul li:last-child,
132+
ol li:last-child {
133+
margin-bottom: 0;
134+
}
135+
94136
/* layout */
95137
header {
96138
margin: 2rem 2rem 0 2rem;
@@ -261,6 +303,7 @@ nav {
261303
grid-template-columns: var(--text-content-width-iphone-13) 1fr;
262304
margin-top: 2rem;
263305
grid-auto-rows: max-content;
306+
grid-gap: var(--flow-gap);
264307
}
265308

266309
.text-content > :not(.wide) {
@@ -803,7 +846,7 @@ main {
803846
}
804847

805848
p {
806-
margin: 0 0 1.5rem 0;
849+
margin: 0;
807850
line-height: 1.5rem;
808851
}
809852

@@ -846,12 +889,12 @@ a:hover {
846889

847890
h1 {
848891
font-size: 2rem;
849-
margin: 0 0 2rem 0;
892+
margin: 0 0 1rem 0;
850893
}
851894

852895
h2 {
853896
font-size: 1.5rem;
854-
margin: 0 0 1rem 0;
897+
margin: 1rem 0 .75rem 0;
855898
}
856899

857900
/* tables */
@@ -920,7 +963,7 @@ table hr {
920963
blockquote {
921964
border: 1px solid var(--color-foreground);
922965
padding: 1rem;
923-
margin: 0 -1rem;
966+
margin: 1rem -1rem;
924967

925968
/* solid 3px drop shadow */
926969
box-shadow: 3px 3px 0px var(--color-shadow);
@@ -969,6 +1012,15 @@ blockquote.side-callout {
9691012
grid-row: span 2;
9701013
}
9711014

1015+
blockquote > div > * {
1016+
margin: 0 0 var(--flow-gap) 0;
1017+
}
1018+
1019+
blockquote ol,
1020+
blockquote ul {
1021+
margin: 0 0 1rem 1rem;
1022+
}
1023+
9721024
/* Tabs */
9731025
.tabs-container {
9741026
/* border-bottom: 1px solid black; */
@@ -1047,6 +1099,7 @@ blockquote.side-callout {
10471099
border: 1px solid var(--color-tabs-divider);
10481100
border-bottom: 1px solid black;
10491101
padding: 10px;
1102+
margin-bottom: 0;
10501103

10511104
a {
10521105
text-decoration: none;
@@ -1076,6 +1129,7 @@ blockquote.side-callout {
10761129

10771130
.tab-content {
10781131
border-bottom: 1px solid black;
1132+
padding-bottom: 1rem;
10791133

10801134
.tab-pane {
10811135
display: none;
@@ -1106,17 +1160,13 @@ blockquote.side-callout {
11061160
margin-top: -1.5rem;
11071161
}
11081162

1109-
li .code-block {
1110-
/* For indented code blocks, move 1rem back to align code with text from heading */
1111-
margin-left: -1rem;
1112-
}
1113-
11141163
.highlight-v2 {
11151164
border-top: 1px solid #cccccc;
11161165
border-bottom: 1px solid #cccccc;
11171166
overflow-x: scroll;
11181167
scrollbar-width: none;
11191168
line-height: 1.3rem;
1169+
padding: 1rem 0;
11201170
}
11211171

11221172
.highlight-v2.single-line {
@@ -1150,6 +1200,11 @@ li .code-block {
11501200
position: relative;
11511201
}
11521202

1203+
ol .code-container,
1204+
ul .code-container {
1205+
margin-top: 0.75rem;
1206+
}
1207+
11531208
.code-container:hover {
11541209
.code-copy-button {
11551210
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
description: Call Out usages
3+
title: Call Out usages
4+
weight: 100
5+
toc: true
6+
---
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
---
3+
description: Callout - Code Blocks
4+
title: Callout - Code Blocks
5+
weight: 200
6+
---
7+
8+
9+
## Code Block Multi line
10+
11+
{{<call-out "" "Example:" "" >}}
12+
To start the container with the `debian` image:
13+
14+
```sh
15+
sudo docker run \
16+
--env=NGINX_LICENSE_JWT="YOUR_JWT_HERE" \
17+
--env=NGINX_AGENT_SERVER_GRPCPORT=443 \
18+
--env=NGINX_AGENT_SERVER_HOST=agent.connect.nginx.com \
19+
--env=NGINX_AGENT_SERVER_TOKEN="YOUR_NGINX_ONE_DATA_PLANE_KEY_HERE" \
20+
--env=NGINX_AGENT_TLS_ENABLE=true \
21+
--restart=always \
22+
--runtime=runc \
23+
-d private-registry.nginx.com/nginx-plus/agent:debian
24+
```
25+
26+
{{</call-out>}}
27+
28+
## Code Block Single line
29+
30+
{{<call-out "" "Example:" "" >}}
31+
How to read load nginx config
32+
33+
```sh
34+
nginx -s reload
35+
```
36+
37+
{{</call-out>}}
38+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
---
3+
description: Callout - Lists
4+
title: Callout - Lists
5+
weight: 200
6+
---
7+
8+
9+
## Text with Ordered List in note
10+
11+
- **Using an instance's configuration for the group configuration**: If an instance is the first to join a config sync group and the group's configuration hasn't been defined, the instance’s configuration will become the group’s configuration. Any instances added later will automatically inherit this configuration.
12+
13+
{{< note >}} If you add multiple instances to a single config sync group, simultaneously (with automation), follow these steps. Your instances will inherit your desired configuration:
14+
15+
1. Create a config sync group.
16+
1. Add a configuration to the config sync group, so all instances inherit it.
17+
1. Add the instances in a separate operation.
18+
19+
Your instances should synchronize with your desired configuration within 30 seconds. {{< /note >}}
20+
21+
22+
## Text with Unordered List in note
23+
24+
- **Using an instance's configuration for the group configuration**: If an instance is the first to join a config sync group and the group's configuration hasn't been defined, the instance’s configuration will become the group’s configuration. Any instances added later will automatically inherit this configuration.
25+
26+
{{< note >}} If you add multiple instances to a single config sync group, simultaneously (with automation), follow these steps. Your instances will inherit your desired configuration:
27+
28+
- Create a config sync group.
29+
- Add a configuration to the config sync group, so all instances inherit it.
30+
- Add the instances in a separate operation.
31+
32+
Your instances should synchronize with your desired configuration within 30 seconds. {{< /note >}}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
description: Code Block usages
3+
title: Code Block usages
4+
weight: 100
5+
toc: true
6+
---
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
description: Code Blocks - Spacing and OL/UL
3+
title: Code Blocks - Spacing and OL/UL
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+
```

exampleSite/content/test-product/code-blocks.md renamed to exampleSite/content/test-product/code-blocks/code-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: Test Product code blocks
3-
title: Test Product code blocks
2+
description: Code Blocks - with root and non-root
3+
title: Code Blocks - with root and non-root
44
weight: 200
55
---
66

0 commit comments

Comments
 (0)