Skip to content

Commit ba7d518

Browse files
committed
add hugo theme content and new oss-acknowledgements doc
1 parent e699f6b commit ba7d518

File tree

280 files changed

+150732
-37
lines changed

Some content is hidden

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

280 files changed

+150732
-37
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ Thumbs.db
1414
# Logs #
1515
########
1616
*.log
17+
18+
node_modules/*
19+
.markdownlint.json
20+
resources/*
21+
22+
# Local Netlify folder
23+
.netlify

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# Changelog
1+
# CHANGELOG
22

3-
## 1.0.0 (Month Date, Year)
3+
<!--- next entry here -->
44

5-
Initial release of the NGINX template repository.
5+
## 0.27.1
6+
2023-03-13
7+
8+
### Fixes
9+
10+
- try out new CSP settings (e5a60a06434eb618630ddce6c140cb570ab6ef96)

README.md

Lines changed: 45 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,66 @@
1-
# NGINX Template Repository
1+
# nginx-hugo-theme
22

3-
## How do I use this template?
3+
A documentation theme for F5 NGINX projects using [Hugo](https://gohugo.io/).
44

5-
**DO NOT FORK** -- this template is meant to be used from the **[`Use this template`](https://github.com/nginxinc/template-repository/generate)** feature.
5+
## Installation
66

7-
1. Click on **[`Use this template`](https://github.com/nginxinc/template-repository/generate)**
8-
2. Give a name to your project
9-
3. Wait until the first run of CI finishes (Github Actions will process the template and commit to your new repo)
10-
4. Clone your new project and happy coding!
7+
1. Add the `nginx-hugo-theme` theme as a module mount to your project's config file:
118

12-
**NOTE**: **WAIT** until the first CI run on GitHub Actions before cloning your new project.
9+
```toml
10+
[module]
11+
[[module.imports]]
12+
path="github.com/nginxinc/nginx-hugo-theme"
13+
```
1314

14-
## What is included on this template?
15+
## Usage
1516

16-
This template includes all the scaffolding you need to get started on a standards compliant NGINX repository:
17+
### Create a new doc
1718

18-
- Standard license for NGINX OSS projects
19-
- Standard `.gitignore` with minimal defaults
20-
- Issue and PR templates
21-
- Contributing guidelines
22-
- Support guidelines
23-
- Security guidelines for reporting major vulnerabilities
24-
- NGINX Code of Conduct
25-
- README placeholder
26-
- Changelog placeholder
27-
- Codeowners placeholder
19+
Run `hugo new <path/doc-title.md>` to add a new doc.
2820

29-
---
21+
> Using the `hugo new` command adds *all* of our pre-configured frontmatter to the new file.
3022

31-
<!-- DELETE THE LINES ABOVE THIS AND WRITE YOUR PROJECT README BELOW -- PLACEHOLDER SECTIONS HAVE BEEN INCLUDED FOR YOUR CONVENIENCE -->
23+
### Build the docs
3224

33-
# nginx_hugo_theme
25+
- Run `hugo` to build static HTML for your docs.
26+
- Run `hugo server` to run the Hugo development server, so you can watch your changes as you work.
27+
Open `localhost:1313` (`127.0.0.1:1313`) in a browser window to view the docs.
3428

35-
## Requirements
29+
### Shortcodes
3630

37-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam elit turpis, varius et arcu elementum, viverra rhoncus sem. Aliquam nec sodales magna, et egestas enim. Mauris lobortis ultrices euismod. Pellentesque in arcu lacus. Mauris cursus laoreet nulla, ac vehicula est. Vestibulum eu mauris quis lorem consectetur aliquam ac nec quam. Vestibulum commodo pharetra mi, at bibendum neque faucibus ut. Mauris et tortor sed sem consectetur eleifend ut non magna. Praesent feugiat placerat nibh, varius viverra orci bibendum sed. Vestibulum dapibus ex ut pulvinar facilisis. Quisque sodales enim et augue tempor mattis. Suspendisse finibus congue felis, ac blandit ligula. Praesent condimentum ultrices odio quis semper. Nunc ultrices, nibh quis mattis pellentesque, elit nulla bibendum felis, quis dapibus erat turpis ac urna.
31+
See [Hugo Shortcodes](https://gohugo.io/content-management/shortcodes/) for an overview.
3832

39-
## Getting Started
33+
This theme contains the following custom shorcodes:
4034

41-
Duis sit amet sapien vel velit ornare vulputate. Nulla rutrum euismod risus ac efficitur. Curabitur in sagittis elit, a semper leo. Suspendisse malesuada aliquam velit, eu suscipit lorem vehicula at. Proin turpis lacus, semper in placerat in, accumsan non ipsum. Cras euismod, elit eget pretium laoreet, tortor nulla finibus tortor, nec hendrerit elit turpis ut eros. Quisque congue nisi id mauris molestie, eu condimentum dolor rutrum. Nullam eleifend elit ac lobortis tristique. Pellentesque nec tellus non mauris aliquet commodo a eu elit. Ut at feugiat metus, at tristique mauris. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;
35+
**Callouts**:
4236

43-
## How to Use
37+
- caution.html
38+
- important.html
39+
- note.html
40+
- see-also.html
41+
- tip.html
42+
- warning.html
4443

45-
Maecenas at vehicula justo. Suspendisse posuere elementum elit vel posuere. Etiam quis pulvinar massa. Integer tempor semper risus, vitae maximus eros ullamcorper vitae. In egestas, ex vitae gravida sodales, ipsum dolor varius est, et cursus lorem dui a mi. Morbi faucibus ut nisi id faucibus. Sed quis ullamcorper ex. In et dolor id nunc interdum suscipit.
44+
**Formatting**:
4645

47-
## Contributing
46+
- collapse.html - Make a collapsible section.
47+
- comment.html - Insert a comment that won't be rendered at build time.
48+
- raw-html.html - Insert raw HTML into a markdown doc.
4849

49-
Please see the [contributing guide](https://github.com/nginxinc/nginx-hugo-theme/blob/main/CONTRIBUTING.md) for guidelines on how to best contribute to this project.
50+
**Custom data**:
5051

51-
## License
52+
- openapi.html - Render an OpenAPI spec using ReDoc.
53+
- metrics.html - Imports data from a JSON file and presents it in table format.
54+
55+
### Includes
56+
57+
This theme contains a custom shortcode called "includes" that lets you reuse content.
58+
To use this shortcode, you must add an "includes" folder to the folder that contains your site content (e.g., `content/includes`).
59+
60+
You can reuse the content of any file in the includes directory using the following shortcode syntax:
61+
62+
```md
63+
{{< include "filename.md" >}}
64+
```
5265

53-
[Apache License, Version 2.0](https://github.com/nginxinc/nginx-hugo-theme/blob/main/LICENSE)
5466

55-
&copy; [F5, Inc.](https://www.f5.com/) 2023

_redirects_product

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/ /docs/ 301
2+
* /docs/404.html 404

_redirects_web-docs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/ /nginx-controller/ 301
2+
* /nginx-controller/404.html 404

archetypes/api.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "API Reference v<version>"
3+
description: "Represents the state of NGINX Controller's API for v<version>"
4+
date: 2019-11-15T13:21:02-07:00
5+
weight: 10
6+
draft: false
7+
toc: false
8+
tags: ["api"]
9+
categories: []
10+
doctypes: ["reference"]
11+
menu: "api"
12+
version: ["<version>"]
13+
# Create a new entry in the Jira DOCS Catalog and add the ticket ID (DOCS-<number>) below
14+
docs: "DOCS-000"
15+
---
16+
17+
{{< openapi spec="/specs/release-<version>/openapi.yaml" >}}

archetypes/blog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: ""
3+
description: ""
4+
date: {{ .Date }}
5+
weight: 20
6+
draft: false
7+
---

archetypes/concept.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
# Change draft status to false to publish doc
5+
draft: true
6+
# Description
7+
# Add a short description (150 chars) for the doc. Include keywords for SEO.
8+
# The description text appears in search results and at the top of the doc.
9+
description: ""
10+
# Assign weights in increments of 100
11+
weight:
12+
toc: true
13+
tags: [ "docs" ]
14+
# Create a new entry in the Jira DOCS Catalog and add the ticket ID (DOCS-<number>) below
15+
docs: "DOCS-000"
16+
# Taxonomies
17+
# These are pre-populated with all available terms for your convenience.
18+
# Remove all terms that do not apply.
19+
categories: ["installation", "platform management", "load balancing", "api management", "service mesh", "security", "analytics"]
20+
doctypes: ["concept"]
21+
journeys: ["researching", "getting started", "using", "renewing", "self service"]
22+
personas: ["devops", "netops", "secops", "support"]
23+
versions: []
24+
authors: []
25+
---
26+
27+
## Overview
28+
29+
Briefly describe the goal of this document, that is, what the user will learn or accomplish by reading what follows.
30+
31+
## Concept 1 - format as a noun phrase
32+
33+
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.
34+
35+
Organize content in this section with H3 and H4 headings.
36+
37+
## Concept 2 - format as a noun phrase
38+
39+
## Concept 3 - format as a noun phrase
40+
41+
## What's Next
42+
43+
- Provide up to 5 links to related topics (optional).
44+
- Format as a bulleted list.

archetypes/default.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
# Change draft status to false to publish doc.
5+
draft: true
6+
# Description
7+
# Add a short description (150 chars) for the doc. Include keywords for SEO.
8+
# The description text appears in search results and at the top of the doc.
9+
description: ""
10+
# Assign weights in increments of 100
11+
weight:
12+
toc: true
13+
tags: [ "docs" ]
14+
# Create a new entry in the Jira DOCS Catalog and add the ticket ID (DOCS-<number>) below
15+
docs: "DOCS-000"
16+
# Taxonomies
17+
# These are pre-populated with all available terms for your convenience.
18+
# Remove all terms that do not apply.
19+
categories: ["installation", "platform management", "load balancing", "api management", "service mesh", "security", "analytics"]
20+
doctypes: ["task"]
21+
journeys: ["researching", "getting started", "using", "renewing", "self service"]
22+
personas: ["devops", "netops", "secops", "support"]
23+
versions: []
24+
authors: []
25+
26+
---
27+
28+
## Overview
29+
30+
Briefly describe the goal of this document, that is, what the user will learn or accomplish by reading what follows.
31+
32+
Introduce and explain any new concepts the user may need to understand before proceeding.
33+
34+
## Before You Begin
35+
36+
To complete the instructions in this guide, you need the following:
37+
38+
1. Provide any prerequisites here.
39+
2. Format as a numbered or bulleted list as appropriate.
40+
3. Keep the list entries grammatically parallel.1. Provide any prerequisites here.
41+
42+
## Goal 1 - write as a verb phrase
43+
44+
Add introductory text. Say what the user will be doing.
45+
46+
To do xzy, take the following steps:
47+
48+
1. This is where you provide the steps that the user must take to accomplish the goal.
49+
50+
```bash
51+
code examples should be nested within the list
52+
```
53+
54+
2. Format as numbered lists.
55+
56+
{{< note >}}Add notes like this.{{</note>}}
57+
58+
3. If there is only one step, you don't need to format it as a numbered list.
59+
60+
## Goal 2 - write as a verb phrase
61+
62+
## Goal 3 - write as a verb phrase
63+
64+
## Discussion
65+
66+
Use the discussion section to expand on the information presented in the steps above.
67+
68+
This section contains the "why" information.
69+
70+
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.
71+
72+
## Verification
73+
74+
Explain how the user can verify the steps completed successfully.
75+
76+
## What's Next
77+
78+
- Provide up to 5 links to related topics (optional).
79+
- Format as a bulleted list.

archetypes/openapi.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
# Change draft status to false to publish doc
5+
draft: true
6+
# Description
7+
# Add a short description (150 chars) for the doc. Include keywords for SEO.
8+
# The description text appears in search results and at the top of the doc.
9+
description: ""
10+
# Assign weights in increments of 100
11+
weight:
12+
doctypes: ["reference"]
13+
toc: true
14+
tags: [ "api" ]
15+
menu: api
16+
layout: api
17+
# Create a new entry in the Jira DOCS Catalog and add the ticket ID (DOCS-<number>) below
18+
docs: "DOCS-000"
19+
# Taxonomies
20+
# These are pre-populated with all available terms for your convenience.
21+
# Remove all terms that do not apply.
22+
categories: ["installation", "platform management", "load balancing", "api management", "service mesh", "security", "analytics"]
23+
doctypes: ["reference"]
24+
journeys: ["researching", "getting started", "using"]
25+
personas: ["devops", "netops", "secops", "support"]
26+
versions: ["<version>"]
27+
authors: []
28+
---
29+
30+
{{< openapi spec="/path/to/openapi.yaml" >}}

0 commit comments

Comments
 (0)