Skip to content

Commit 5ce4037

Browse files
author
nginx
committed
Pre OSS commit
2 parents eda2b09 + d9f571f commit 5ce4037

File tree

1,819 files changed

+772168
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,819 files changed

+772168
-161
lines changed

.cloudcannon/postbuild

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
## Find and fix broken images and links caused by how the baseURL is set in the config.yml
4+
find public -type f -name "*.html" -exec sed -i 's/="\/\//="\//g' {} \;
5+
6+
## Add the CloudCannon 'editable' class to content divs
7+
find public -type f -name "index.html" -exec sed -i 's/class="content/& editable/g' {} \;

.cloudcannon/prebuild

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
## check the version of the hugo theme currently being used
4+
## if it is different from the one defined in the go.mod file
5+
## then run hugo mod get -u to update the theme
6+
7+
theme_version=$(grep -o 'v[0-9]\+\(\.[0-9]\+\)\{2\}' go.mod)
8+
9+
current_theme_version=$(hugo mod graph | grep -o 'v[0-9]\+\(\.[0-9]\+\)\{2\}')
10+
11+
printf "Theme version in go.mod is: %s \n" "$theme_version"
12+
13+
printf "Theme version in use by Hugo is: %s \n" "$current_theme_version"
14+
15+
16+
# if the theme version in go.mod is the same as the one in use by Hugo, run hugo mod clean to clear any outdated theme files from the cache
17+
# if the theme version in go.mod is different from the one in use by Hugo, update it by running hugo mod get -u
18+
19+
if [ "$theme_version" == "$current_theme_version" ]; then
20+
printf "Theme version in go.mod is the same as the one in use by Hugo. Cleaning the cache. \n"
21+
hugo mod clean ;
22+
elif [ "$theme_version" != "$current_theme_version" ]; then
23+
printf "Updating theme version to %s \n" "$current_theme_version"
24+
hugo mod get -u ;
25+
# if an error occurs, exit with a non-zero status code
26+
else
27+
printf "An error occurred: unable to retrieve the latest version of the Hugo theme.\n"
28+
exit 1
29+
fi

.cloudcannon/preinstall

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
install-hugo 0.134.2

.cloudcannon/schemas/concept.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title:
3+
# Remove or change to false to turn off the right-hand in-page ToC
4+
toc: true
5+
# Add a short description (150 chars or less) for the doc. Include keywords for SEO.
6+
# The description text appears in search results and at the top of the doc.
7+
description: ""
8+
# Assign weights in increments of 100
9+
# Lower numbers appear higher in the document list
10+
weight:
11+
tags: [ "docs" ]
12+
---
13+
14+
## Overview
15+
16+
Briefly describe the goal of this document, that is, what the user will learn or accomplish by reading what follows.
17+
18+
## Concept 1 - format as a noun phrase
19+
20+
This is where you explain the concept. Provide information that will help the user understand what the element/feature is and how it fits into the overall product.
21+
22+
Organize content in this section with H3 and H4 headings.
23+
24+
## Concept 2 - format as a noun phrase
25+
26+
## Concept 3 - format as a noun phrase
27+
28+
## What's Next
29+
30+
- Provide up to 5 links to related topics (optional).
31+
- Format as a bulleted list.

.cloudcannon/schemas/default.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title:
3+
# Remove or set to false to turn off the right-hand in-page ToC
4+
toc: true
5+
# Add a short description (150 chars or less) for the doc. Include keywords for SEO.
6+
# The description text appears in search results and at the top of the doc.
7+
description: ""
8+
# Assign weights in increments of 100
9+
# Lower numbers appear higher in the document list
10+
weight:
11+
tags: [ "docs" ]
12+
---
13+
14+
## Overview
15+
16+
Briefly describe the goal of this document, that is, what the user will learn or accomplish by reading what follows.
17+
18+
Introduce and explain any new concepts the user may need to understand before proceeding.
19+
20+
## Before You Begin
21+
22+
To complete the instructions in this guide, you need the following:
23+
24+
1. Provide any prerequisites here.
25+
2. Format as a numbered or bulleted list as appropriate.
26+
3. Keep the list entries grammatically parallel.1. Provide any prerequisites here.
27+
28+
## Goal 1 - write as a verb phrase
29+
30+
Add introductory text. Say what the user will be doing.
31+
32+
To do xzy, take the following steps:
33+
34+
1. This is where you provide the steps that the user must take to accomplish the goal.
35+
36+
```bash
37+
code examples should be nested within the list
38+
```
39+
40+
2. Format as numbered lists.
41+
42+
{{< note >}}Add notes like this.{{</note>}}
43+
44+
3. If there is only one step, you don't need to format it as a numbered list.
45+
46+
## Goal 2 - write as a verb phrase
47+
48+
## Goal 3 - write as a verb phrase
49+
50+
## Discussion
51+
52+
Use the discussion section to expand on the information presented in the steps above.
53+
54+
This section contains the "why" information.
55+
56+
This information lives at the end of the document so that users who just want to follow the steps don't have to scroll through a wall of explanatory text to find them.
57+
58+
## Verification
59+
60+
Explain how the user can verify the steps completed successfully.
61+
62+
## What's Next
63+
64+
- Provide up to 5 links to related topics (optional).
65+
- Format as a bulleted list.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
headless: true
3+
---

.cloudcannon/schemas/includes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
docs: ""
3+
---

.cloudcannon/schemas/nms/policy.md

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
---
2+
title:
3+
# Remove or set to false to turn off the right-hand in-page ToC
4+
toc: true
5+
# Add a short description (150 chars or less) for the doc. Include keywords for SEO.
6+
# The description text appears in search results and at the top of the doc.
7+
description: ""
8+
# Assign weights in increments of 100
9+
# Lower numbers appear higher in the document list
10+
weight:
11+
tags: [ "docs" ]
12+
---
13+
14+
## Overview
15+
16+
<!--
17+
If your topic is for a global policy, add the following include:
18+
19+
{{< include "acm/how-to/policies-intro" >}}
20+
21+
- OR -
22+
23+
If your topic is for an API GW policy, add this include:
24+
25+
{{< include "acm/how-to/policies-proxy-intro.md" >}}
26+
27+
-->
28+
29+
---
30+
31+
## About XYZ Policy
32+
33+
<!--
34+
Explain what the policy does and what it can be used for.
35+
-->
36+
37+
#### Intended Audience
38+
39+
<!--
40+
Specify the intended audience for this guide, that is, who is responsible for applying and/or configuring the policy? For example, and Infrastructure Administrator.
41+
-->
42+
43+
---
44+
45+
## Workflow for Applying Policy
46+
47+
<!--
48+
Add the high-level steps the user must take to apply the policy. For example:
49+
50+
- Create an environment or edit an existing one.
51+
- Check the advanced settings for the environment to see if the policy has been applied.
52+
- Edit the policy to make changes for each environment. Save and publish the changes.
53+
54+
-->
55+
56+
---
57+
58+
## Policy Settings
59+
60+
<!-- Update the following table with the policy's params -->
61+
62+
The following table lists the configurable settings and their default values for the policy.
63+
64+
65+
{{< bootstrap-table "table table-striped table-bordered" >}}
66+
67+
| Field | Datatype | Possible Values | Description | Required | Default |
68+
|--------------|----------|---------------------|----------------------------------------------------|----------|-----------------------|
69+
| `users.id` | integer | A unique int >= 1 | Description for value. | Yes | System assigned |
70+
| `users.name` | string | Example: `Jane Doe` | A short description of what the field is used for. | Yes | Add the default value |
71+
| `user.age` | integer | 1–110 | Description for the value | Yes | |
72+
73+
{{< /bootstrap-table >}}
74+
75+
76+
---
77+
78+
## Adding XYZ Policy
79+
80+
{{<tabs name="policy-implementation">}}
81+
82+
{{%tab name="API"%}}
83+
84+
{{<see-also>}}{{< include "acm/how-to/access-acm-api.md" >}}{{</see-also>}}
85+
86+
To create an XYZ policy using the REST API, send an HTTP `POST` request to the Add-Endpoint-Name-Here endpoint.
87+
88+
89+
{{< bootstrap-table "table table-striped table-bordered" >}}
90+
91+
| Method | Endpoint |
92+
|--------|---------------------|
93+
| `POST` | `/path/to/endpoint` |
94+
95+
{{</bootstrap-table>}}
96+
97+
98+
<details open>
99+
<summary>JSON request</summary>
100+
101+
``` json
102+
{
103+
"users": [
104+
{
105+
"id": 1,
106+
"name": "John Doe",
107+
"age": 24
108+
},
109+
{
110+
"id": 2,
111+
"name": "Jane Doe",
112+
"age": 28
113+
}
114+
]
115+
}
116+
```
117+
118+
</details>
119+
120+
{{%/tab%}}
121+
122+
{{%tab name="UI"%}}
123+
124+
To create an XYZ policy using the web interface:
125+
126+
1. Go to the FQDN for your NGINX Management Suite host in a web browser and log in. Then, from the Launchpad menu, select **API Connectivity Manager**.
127+
2. Add other steps here
128+
3. As a numbered list.
129+
130+
{{%/tab%}}
131+
132+
{{</tabs>}}
133+
134+
---
135+
136+
## Verify the Policy
137+
138+
<!--
139+
Add verification instructions to confirm that the policy has been correctly implemented and is being enforced.
140+
-->
141+
142+
Confirm that the policy has been set up and configured correctly by taking these steps:
143+
144+
- Add steps to verify policy was applied successfully to the the management plane.
145+
146+
Confirm the policy is being enforced:
147+
148+
- Add steps to verify policy is being enforced on the data plane. What can users expect to see?
149+
150+
---
151+
152+
## Troubleshooting
153+
154+
<!-- Add troubleshooting steps for issues users might encounter and can self-solve. The purpose of this section is to deflect customer calls to Support. -->
155+
156+
For help resolving common issues when setting up and configuring the policy, follow the steps in this section. If you cannot find a solution to your specific issue, reach out to [NGINX Customer Support]({{< relref "support/contact-support.md" >}}) for assistance.
157+
158+
### Issue 1
159+
160+
Add a description for the issue. Include any error messages users might see.
161+
162+
Resolution/Workaround:
163+
164+
1. Add steps here
165+
2. As a
166+
3. numbered list.
167+
168+
### Issue 2
169+
170+
Add a description for the issue. Include any error messages users might see.
171+
172+
Resolution/Workaround:
173+
174+
1. Add steps here
175+
2. As a
176+
3. numbered list.

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Set the default behavior for correcting line endings,
2+
# in case people don't have core.autocrlf set.
3+
* text=auto
4+

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ A clear and concise description of what you expected to happen.
2424

2525
### Your environment
2626

27-
- Version of this project or specific commit
28-
<!-- - Version of any relevant project languages -->
27+
- Version/release of this project or specific commit
28+
<!-- - Version/release of any relevant project languages -->
2929
- Target deployment platform
3030

3131
### Additional context

.github/about.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# GitHub Configurations
2+
3+
This directory contains settings used by GitHub for Actions, identifying code reviewers, issue and pull request templates, and more.
4+
5+
## Workflows
6+
7+
### check-broken-links
8+
9+
The check-broken-links workflow relies on the following projects:
10+
11+
- https://github.com/BoundfoxStudios/action-hugo-link-check
12+
- https://github.com/fenneclab/hugo-bin/releases
13+
14+
The hugo-bin project lets you add Hugo as a dependency in your npm package.json file. The action-hugo-link-check Action requires this, as that is how it identifies which version of Hugo to run to build your docs.
15+
16+
> Note: The release version numbers in the hugo-bin project do not align with the actual Hugo releases. Check the README and versions in the hugo-bin repo to find out which releases correspond to Hugo releases.

0 commit comments

Comments
 (0)