Skip to content

Commit b51ac9d

Browse files
authored
Merge branch 'main' into docs/CE-1060-add-change-organization-owners
2 parents 4e64d88 + f1c3d43 commit b51ac9d

File tree

1,703 files changed

+23976
-11572
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,703 files changed

+23976
-11572
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
### What
2+
<!-- Explain what you changed and provide a list of changed page names. -->
3+
4+
### Why
5+
<!-- Explain why this change is necessary and how it benefits users. -->
6+
7+
### Screenshots
8+
<!-- Optional. Show additions to the sidebar or new formatting. -->
9+
10+
----------
11+
12+
### Merge Checklist
13+
_If items do not apply to your changes, add (N/A) and mark them as complete._
14+
15+
#### Pull Request
16+
- [ ] Description links to related pull requests or issues, if any.
17+
18+
#### Content
19+
- [ ] Redirects have been added to `content/terraform-docs-common/redirects.jsonc` for moved, renamed, or deleted pages.
20+
- [ ] API documentation and the API Changelog have been updated.
21+
- [ ] Links to related content where appropriate (e.g., API endpoints, permissions, etc.).
22+
- [ ] Pages with related content are updated and link to this content when appropriate.
23+
- [ ] Sidebar navigation files have been updated for added, deleted, reordered, or renamed pages.
24+
- [ ] New pages have metadata (page name and description) at the top.
25+
- [ ] New images are 2048 px wide. They have HashiCorp standard annotation color (#F92672) and format (rectangle with rounded corners), blurred sensitive details (e.g. credentials, usernames, user icons), and descriptive alt text in the markdown for accessibility.
26+
- [ ] New code blocks have the correct syntax and line breaks to eliminate horizontal scroll bars.
27+
- [ ] UI elements (button names, page names, etc.) are bolded.
28+
- [ ] The Vercel website preview successfully deployed.
29+
30+
#### Reviews
31+
- [ ] I or someone else reviewed the content for technical accuracy.
32+
- [ ] I or someone else reviewed the content for typos, punctuation, spelling, and grammar.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
### What
2+
<!-- Explain what you changed and provide a list of changed page names. -->
3+
4+
### Why
5+
<!-- Explain why this change is necessary and how it benefits users. -->
6+
7+
### Screenshots
8+
<!-- Optional. Show additions to the sidebar or new formatting. -->
9+
10+
----------
11+
12+
### Merge Checklist
13+
_If items do not apply to your changes, add (N/A) and mark them as complete._
14+
15+
#### Pull Request
16+
- [ ] Description links to related pull requests or issues, if any.
17+
18+
#### Content
19+
- [ ] You added redirects to `content/terraform-docs-common/redirects.jsonc` for moved, renamed, or deleted pages **across all affected versions**. Refer to [Redirects](https://github.com/hashicorp/web-unified-docs/blob/main/docs/content-guide/redirects.md#example-redirects) for examples and guidance.
20+
- [ ] Links to related content where appropriate (e.g., CLI, language, API endpoints, permissions, etc.).
21+
- [ ] Pages with related content are updated and link to this content when appropriate.
22+
- [ ] Sidebar navigation files have been updated for added, deleted, reordered, or renamed pages.
23+
- [ ] New pages have metadata (page name and description) at the top.
24+
- [ ] New images are 2048 px wide. They have HashiCorp standard annotation color (#F92672) and format (rectangle with rounded corners), blurred sensitive details (e.g. credentials, usernames, user icons), and descriptive alt text in the markdown for accessibility.
25+
- [ ] New code blocks have the correct syntax and line breaks to eliminate horizontal scroll bars.
26+
- [ ] UI elements (button names, page names, etc.) are bolded.
27+
- [ ] The Vercel website preview successfully deployed.
28+
29+
#### Reviews
30+
- [ ] I or someone else reviewed the content for technical accuracy.
31+
- [ ] I or someone else reviewed the content for typos, punctuation, spelling, and grammar.

.github/actions/reload-dev-portal/action.yml

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

.github/advanced-issue-labeler.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
policy:
10-
- template: [ docs.yml]
10+
- template: [docs.yml]
1111
section:
1212
- id: [product]
1313
label:
@@ -35,4 +35,6 @@ policy:
3535
keys: ['Waypoint']
3636
- name: 'Triage'
3737
keys: ['No product', 'Other product']
38+
- name: 'Runtime'
39+
keys: ['Nomad', 'Consul']
3840

.github/labeler.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ HCP:
4444
'content/hcp-docs/**'
4545
]
4646

47+
# Add 'Nomad' label to changes under 'content/nomad'
48+
#
49+
# Label | Rule
50+
# --------------- | ------------------------------------------------------------
51+
# Nomad | Default; applies to all doc updates
52+
53+
Nomad:
54+
- any:
55+
- changed-files:
56+
- any-glob-to-any-file: [
57+
'content/nomad/**'
58+
]
59+
4760
# Add 'Packer' label to changes under 'content/packer'
4861
#
4962
# Label | Rule
@@ -217,15 +230,23 @@ Waypoint:
217230
'content/hcp-docs/content/docs/waypoint/**'
218231
]
219232

220-
# Add 'HCP Docs' label to changes under 'content/hcp-docs'
233+
# Add 'Runtime' label to changes under 'content/consul', 'content/nomad', 'content/hcp-docs/content/docs/cli' and 'content/hcp-docs/content/docs/hcp'
221234
#
222235
# Label | Rule
223236
# --------------- | ------------------------------------------------------------
224-
# HCP Docs | Default; applies to all doc updates
237+
# Runtime | Default; applies to all doc updates
238+
# Runtime | Updates to Consul documentation
239+
# Runtime | Updates to Nomad documentation
240+
# Runtime | Updates to HCP CLI documentation
241+
# Runtime | Updates to HCP platform documentation
242+
225243

226-
HCP Docs:
244+
Runtime:
227245
- any:
228246
- changed-files:
229247
- any-glob-to-any-file: [
230-
'content/hcp-docs/**'
231-
]
248+
'content/consul/**',
249+
'content/nomad/**',
250+
'content/hcp-docs/content/docs/cli/**',
251+
'content/hcp-docs/content/docs/hcp/**'
252+
]

.github/pull_request_template.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ Please go to the `Preview` tab and select the appropriate template:
33
* [Consul](?expand=1&labels=Consul&title=Consul+Docs&template=consul_pull_request_template.md)
44
* [HCP services](?expand=1&template=hcp_pull_request_template.md)
55
* [Nomad](?expand=1&labels=Nomad&title=Nomad+Docs&template=nomad_pull_request_template.md)
6+
7+
### Terraform
8+
9+
* [HCP Terraform](?expand=1&labels=hcp,terraform&title=HCP+Terraform+Docs&template=hcp_terraform_pull_request_template.md)
10+
* [Terraform](?expand=1&labels=terraform&title=Terraform+Docs&template=terraform_pull_request_template.md)
611
* [Terraform Enterprise](?expand=1&template=ptfe_release_pull_request_template.md)

.github/workflows/algolia-prod.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Algolia Sync - Production
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- 'main'
@@ -21,7 +22,7 @@ jobs:
2122
cache: 'npm'
2223
node-version-file: 'package.json'
2324

24-
- run: npm i
25+
- run: npm ci
2526
- run: npm run prebuild -- --get-real-file-changed-metadata --build-algolia-index
2627
- run: npm run algolia
2728
env:

.github/workflows/build-pr-preview.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Build Preview
22
run-name: 'Build Preview for "${{ github.event.pull_request.title }}" (#${{ github.event.pull_request.number }})'
33

44
on:
5+
# 1: Change this to `pull_request` to see changes while testing this file in a PR.
6+
# 2: This is because `pull_request_target` only works from the context of the base branch
7+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target
8+
# 3: Change this back to `pull_request_target` before merge for security reasons
59
pull_request_target:
610
types: [opened, synchronize]
711
# Hello Security 👋, we are checking to make sure forked repo PR changed paths are only in content/** inside the job security-check.
@@ -105,17 +109,11 @@ jobs:
105109
cache: 'npm'
106110
node-version-file: 'package.json'
107111

108-
- name: Use cache
112+
- name: Cache Next.js build
109113
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
110114
with:
111-
path: |
112-
~/.npm
113-
${{ github.workspace }}/.next/cache
114-
# Generate a new cache whenever packages or source files change.
115-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.mjs', '**/*.ts', '**/*.tsx', '**/*.mdx', '**/*.json') }}
116-
# If source files changed but packages didn't, rebuild from a prior cache.
117-
restore-keys: |
118-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
115+
path: ${{ github.workspace }}/.next/cache
116+
key: ${{ runner.os }}-nextjs-build-${{ hashFiles('package-lock.json', 'next.config.js') }}
119117

120118
- name: Install Vercel CLI
121119
run: npm i --global vercel@latest
@@ -184,17 +182,6 @@ jobs:
184182
with:
185183
repository: hashicorp/dev-portal
186184
path: ./unified-docs-frontend-preview
187-
- name: Use cache
188-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
189-
with:
190-
path: |
191-
~/.npm
192-
${{ github.workspace }}/unified-docs-frontend-preview/.next/cache
193-
# Generate a new cache whenever packages or source files change.
194-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.mdx') }}
195-
# If source files changed but packages didn't, rebuild from a prior cache.
196-
restore-keys: |
197-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
198185

199186
- name: Setup Node.js
200187
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
@@ -203,6 +190,12 @@ jobs:
203190
cache-dependency-path: 'unified-docs-frontend-preview/package-lock.json'
204191
node-version-file: 'unified-docs-frontend-preview/package.json'
205192

193+
- name: Cache Next.js build
194+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
195+
with:
196+
path: ${{ github.workspace }}/unified-docs-frontend-preview/.next/cache
197+
key: ${{ runner.os }}-nextjs-build-devportal-${{ hashFiles('unified-docs-frontend-preview/package-lock.json', 'unified-docs-frontend-preview/next.config.js') }}
198+
206199
- name: Setup Vercel CLI
207200
run: npm i --global vercel@latest
208201

.github/workflows/copy-cloud-docs-for-tfe.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: Generate version-metadata for workflow
5353
working-directory: '${{github.workspace}}/new-docs-pr'
5454
run: |
55-
npm i
55+
npm ci
5656
npm run prebuild -- --only-build-version-metadata
5757
5858
- name: Create the new TFE version folder for RELEASE PR

.github/workflows/create-tfe-release-notes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
default: true
2626

2727
env:
28-
GITHUB_TOKEN: ${{ secrets.TFE_GITHUB_TOKEN_010623 }}
28+
GITHUB_TOKEN: ${{ secrets.TFE_GITHUB_TOKEN }}
2929
GITHUB_USER: [email protected]
3030
DEV: ${{ inputs.dev-mode }}
3131
NOTIFY: ${{ inputs.notify }}

0 commit comments

Comments
 (0)