Skip to content

Commit 676937b

Browse files
committedFeb 11, 2025
docs: Rebase - Merge remote-tracking branch 'origin' into unit-docs
2 parents 7223c03 + be7acf7 commit 676937b

40 files changed

+3196
-19
lines changed
 

‎.github/workflows/ossf_scorecard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ jobs:
5656

5757
# Upload the results to GitHub's code scanning dashboard.
5858
- name: Upload SARIF results to code scanning
59-
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
59+
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
6060
with:
6161
sarif_file: results.sarif

‎archetypes/concept.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
# We use sentence case and present imperative tone
3+
title: "{{ replace .Name "-" " " | title }}"
4+
# Weights are assigned in increments of 100: determines sorting order
5+
weight: i00
6+
# Creates a table of contents and sidebar, useful for large documents
7+
toc: false
8+
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this
9+
type: concept
10+
# Intended for internal catalogue and search, case sensitive:
11+
# Agent, N4Azure, NIC, NIM, NGF, NAP-DOS, NAP-WAF, NGINX One, NGINX+, Solutions, Unit
12+
product:
13+
# Intended for internal catalogue
14+
docs: "DOCS-000"
15+
---
16+
17+
[//]: # "These are Markdown comments to guide you through document structure. Remove them as you go, as well as any unnecessary sections."
18+
[//]: # "Use underscores for _italics_, and double asterisks for **bold**."
19+
[//]: # "Backticks are for `monospace`, used sparingly and reserved mostly for executable names - they can cause formatting problems. Avoid them in tables: use italics instead."
20+
21+
[//]: # "Begin each document with a sentence or two explaining what the purpose of the guide is, and what high-level actions to expect. No need to adhere precisely the example text given anywhere in this template."
22+
23+
This guide provides an overview of <concept>, which is used <for/in> <action 1>, <action 2> and <action 3>.
24+
25+
It is an example of a <other concept>, and is closely related to <third concept>.
26+
27+
---
28+
29+
## Background
30+
31+
[//]: # "Explain what the concept is. If possible, relate it to another commonly known concept or software."
32+
[//]: # "This relates the new idea to the reader using their existing knowledge, helping their understanding of it and thus what its purpose is in context."
33+
34+
---
35+
36+
## Use cases
37+
38+
[//]: # "Name the individual use case sections after the actual use case itself, e.g "Route traffic between applications"
39+
40+
### Use case 1
41+
42+
[//]: # "A description for a use case should be a high level outline of a particular problem, then explain how the subject concept is the solution for the issue."
43+
44+
[//]: # "If it helps, include a diagram of some kind. Ensure your description provides all the context required, however: a diagram is an aid to explain things, not a replacement."
45+
46+
```mermaid
47+
# You can use Mermaid to draw diagrams in a codeblock with mermaid as the language.
48+
# Read their documentation for usage: https://mermaid.js.org/intro/
49+
```
50+
51+
Starting from the <top/left> of the diagram, you can see that <thing> is connected to <other thing>: this relationship is established when configuring <parameter> as part of <file name>.
52+
53+
[//]: # "End a particular use case section with links to other pages, such as instructional documentation, other concepts, or reference information (Such as API specifications)."
54+
55+
- [Additional reading 1](some-external-link)
56+
- [Additional reading 2]({{< ref "/some/internal/link.md" >}})
57+
- Additional reading 3
58+
59+
### Use case 2
60+
61+
---
62+
63+
## Conclusion
64+
65+
[//]: # "Summarize everything that the reader will have learned by reading this entire concept document."
66+
[//]: # "It should fulfill the promise made by the introductory paragraph at the top of the document."
67+
[//]: # "Since each use case provides links to additional documents, you may not need to link to more,"
68+
[//]: # "or even include the final 'See also' section."
69+
70+
---
71+
72+
## See also
73+
74+
[//]: # "Link to related documents, such as concepts, reference material or similar use cases."

‎archetypes/default.md

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
# We use sentence case and present imperative tone
3+
title: "{{ replace .Name "-" " " | title }}"
4+
# Weights are assigned in increments of 100: determines sorting order
5+
weight: i00
6+
# Creates a table of contents and sidebar, useful for large documents
7+
toc: false
8+
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this
9+
type: how-to
10+
# Intended for internal catalogue and search, case sensitive:
11+
# Agent, N4Azure, NIC, NIM, NGF, NAP-DOS, NAP-WAF, NGINX One, NGINX+, Solutions, Unit
12+
product:
13+
# Intended for internal catalogue
14+
docs: "DOCS-000"
15+
---
16+
17+
[//]: # "These are Markdown comments to guide you through document structure. Remove them as you go, as well as any unnecessary sections."
18+
[//]: # "Use underscores for _italics_, and double asterisks for **bold**."
19+
[//]: # "Backticks are for `monospace`, used sparingly and reserved mostly for executable names - they can cause formatting problems. Avoid them in tables: use italics instead."
20+
21+
[//]: # "Begin each document with a sentence or two explaining what the purpose of the guide is, and what high-level actions to expect. No need to adhere precisely the example text given anywhere in this template."
22+
23+
This guide explains how to <X> with <Y>. In involves the use of <A>, <B> and <C>, demonstrating how <X> works with an example <Z>.
24+
25+
---
26+
27+
## Before you begin
28+
29+
[//]: # "List everything someone will need installed or configured before it's required. Link directly to installation guides where possible."
30+
31+
To complete this guide, you will need the following prerequisites:
32+
33+
- [Requirement 1](some-external-link)
34+
- [Requirement 2]({{< ref "/some/internal/link.md" >}})
35+
- Requirement 3
36+
37+
[//]: # "Note the style of link for requirement two: keep the markdown extension. Links are resolved from the root of the documentation folder, often /site."
38+
39+
---
40+
41+
## Step 1
42+
43+
[//]: # "Explain the initial step: this is usually creating or configuring a resource. Sub-steps may not be necessary, depending on complexity."
44+
45+
```shell
46+
# We typically show examples of commands or code in one code block, which can be easily copied by a reader using a button connected to the block.
47+
```
48+
```text
49+
# A second code block is used underneath the first to show what kind of example output to expect from the command. Truncate unnecessary output with ellipses (...).
50+
```
51+
52+
### Sub-step 1
53+
54+
[//]: # "Sub-steps are ways of breaking steps into even smaller sections. Each step or sub-step should focus on one thing at a time: a user should be able to stop at the end of section and come back afterwards without leaving their software in a non-functional state."
55+
56+
---
57+
58+
### Sub-step 2
59+
60+
[//]: # "A useful final sub-step for a given section is some kind of verification or testing, so the reader is confident the steps have been successful."
61+
62+
---
63+
64+
## Step 2
65+
66+
[//]: # "Explain any additional steps required. If the how-to guide involves multiple components, each component can have its own step for delineation."
67+
68+
### Sub-step 1
69+
70+
---
71+
72+
### Sub-step 2
73+
74+
---
75+
76+
## Step 3
77+
78+
[//]: # "The final step of a how-to guide is usually a final test, and summarizes all of the previous steps taken to accomplish the purpose of the guide."
79+
80+
### Sub-step 1
81+
82+
---
83+
84+
### Sub-step 2
85+
86+
---
87+
88+
## See also
89+
90+
[//]: # "Link to related documents, such as concepts, reference material or similar use cases."

‎archetypes/tutorial.md

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
---
2+
# We use sentence case and present imperative tone
3+
title: "{{ replace .Name "-" " " | title }}"
4+
# Weights are assigned in increments of 100: determines sorting order
5+
weight: i00
6+
# Creates a table of contents and sidebar, useful for large documents
7+
toc: false
8+
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this
9+
type: tutorial
10+
# Intended for internal catalogue and search, case sensitive:
11+
# Agent, N4Azure, NIC, NIM, NGF, NAP-DOS, NAP-WAF, NGINX One, NGINX+, Solutions, Unit
12+
product:
13+
# Intended for internal catalogue
14+
docs: "DOCS-000"
15+
---
16+
17+
[//]: # "These are Markdown comments to guide you through document structure. Remove them as you go, as well as any unnecessary sections."
18+
[//]: # "Use underscores for _italics_, and double asterisks for **bold**."
19+
[//]: # "Backticks are for `monospace`, used sparingly and reserved mostly for executable names - they can cause formatting problems. Avoid them in tables: use italics instead."
20+
21+
[//]: # "Begin each document with a sentence or two explaining what the purpose of the guide is, and what high-level actions to expect. No need to adhere precisely the example text given anywhere in this template."
22+
23+
This guide is a tutorial on how to set up <thing>. While going through the steps of this tutorial, <concept 1>, <concept 2> and <concept 3> will be introduced and explained to understand how <thing> works.
24+
25+
By the end of the tutorial, you should have enough working knowledge of <thing> to develop your own <configuration/application/etc>.
26+
27+
## Background
28+
29+
[//]: # "The largest difference between a tutorial and a how-to document is the scope of detail included. While working on the tutorial, consider what overlap might exist with a concept document."
30+
[//]: # "We want to reduce the amount of context switching a reader has to go through, so it might be beneficial to convert some text content into an include for re-use between a tutorial and a concept document."
31+
32+
<thing> is a common use for <product>: it enables the ability to use <feature 1>, <feature 2> and <feature 3>, which are important when configuring <product> for <use case>.
33+
34+
---
35+
36+
## Before you begin
37+
38+
[//]: # "List everything someone will need installed or configured before it's required. Link directly to installation guides where possible."
39+
40+
To complete this guide, you will need the following prerequisites:
41+
42+
- [Requirement 1](some-external-link)
43+
- [Requirement 2]({{< ref "/some/internal/link.md" >}})
44+
- Requirement 3
45+
46+
[//]: # "Note the style of link for requirement two: keep the markdown extension. Links are resolved from the root of the documentation folder, often /site."
47+
48+
---
49+
50+
## Step 1
51+
52+
[//]: # "The text immediately following a heading in a tutorial should likely explain a concept to build a mental model of what the reader is about to do."
53+
[//]: # "If it's a successive step (One after the first), you might refer to work already done to follow the sequence of operations."
54+
55+
The first thing required for setting up <thing> is <step name>. This is the <service/host/etcetera> that the <thing> will run on. The <component> that is set-up from this step is necessary for <requirement>, and will be connected to <other component> and <third component> in a later step. The <thing> we are configuring will look something along the lines of this by the end:
56+
57+
[//]: # "If it helps, include a diagram of some kind. Ensure your description provides all the context required, however: a diagram is an aid to explain things, not a replacement."
58+
59+
```mermaid
60+
# You can use Mermaid to draw diagrams in a codeblock with mermaid as the language.
61+
# Read their documentation for usage: https://mermaid.js.org/intro/
62+
```
63+
64+
Starting from the <top/left> of the diagram, you can see that <thing> is connected to <other thing>: this relationship is established when configuring <parameter> as part of <file name>.
65+
66+
---
67+
68+
### Sub-step 1
69+
70+
[//]: # "The sub-steps of a tutorial should show the exact steps a reader should take to accomplish an action, and what to expect when doing so."
71+
[//]: # "Though there may be multiple ways to accomplish a task, focus on showing the reader the exact way to do one."
72+
[//]: # "You can mention alternative paths, but do not give unnecessary detail: it detracts from the task at hand."
73+
74+
To set up <component>, start by running the following command. It will create <dependency 1>: take note of the <unique identifier> value, as it will be used for connecting <other component> in later steps.
75+
76+
```shell
77+
# We typically show examples of commands or code in one code block, which can be easily copied by a reader using a button connected to the block.
78+
```
79+
```text
80+
# A second code block is used underneath the first to show what kind of example output to expect from the command. Truncate unnecessary output with ellipses (...).
81+
```
82+
83+
To verify the creation of <component>, you can also inspect information about it using <command>. The output should look something like this:
84+
85+
```shell
86+
<a copyable, single line command>
87+
```
88+
```
89+
<the output of that command, possibly truncated and with changed IPs or domains>
90+
```
91+
92+
---
93+
94+
### Sub-step 2
95+
96+
---
97+
98+
## Step 2
99+
100+
[//]: # "Explain any additional steps required. If the tutorial involves multiple components, each component can have its own step for delineation."
101+
102+
---
103+
104+
### Sub-step 1
105+
106+
---
107+
108+
### Sub-step 2
109+
110+
---
111+
112+
## Conclusion
113+
114+
[//]: # "Summarize everything that the reader will have learned and accomplished by the end of this tutorial."
115+
[//]: # "It should fulfill the promise made by the introductory paragraph at the top of the document."
116+
[//]: # "You may wish to link to another tutorial as the next logical step, but that could also be part of the 'See also' section."
117+
118+
---
119+
120+
## See also
121+
122+
[//]: # "Link to related documents, such as concepts, reference material or similar use cases."

‎config/_default/config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ enableGitInfo = true
1616
ngf = '/nginx-gateway-fabric/:sections[1:]/:filename'
1717
nim = '/nginx-instance-manager/:sections[1:]/:filename'
1818
nms = '/nginx-management-suite/:sections[1:]/:filename'
19+
agent = '/nginx-agent/:sections[1:]/:filename'
1920

2021
[caches]
2122
[caches.modules]

‎content/agent/_index.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "NGINX Agent"
3+
description: "NGINX Agent is a companion daemon for your NGINX Open Source or NGINX Plus instance."
4+
linkTitle: "NGINX Agent"
5+
menu: docs
6+
url: /nginx-agent/
7+
cascade:
8+
logo: "NGINX-product-icon.png"
9+
---

0 commit comments

Comments
 (0)
Failed to load comments.