Skip to content

Commit 76f3be2

Browse files
Merge branch 'main' into feat-insomnia-postman-feature-comparison-2128
2 parents 5ec4e11 + d0ebfff commit 76f3be2

File tree

61 files changed

+11289
-7139
lines changed

Some content is hidden

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

61 files changed

+11289
-7139
lines changed

.github/copilot-instructions.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
This is a docs repository for the Kong Developer site (https://developer.konghq.com/). We use Jekyll, Netlify, Ruby, and then write our docs in Markdown and YAML. Please use these guidelines when you are asked to create a PR, write a commit, or review a PR:
2+
3+
## Required Before Each Commit
4+
- Run `make run` before committing any changes to ensure there aren't any issues with the site building
5+
6+
## Repository Structure
7+
- The /tools directory contains all the information about how our different tooling works, such as automated tests, autogenerating new plugin scaffolding, and changelog generator
8+
9+
## PR reviews
10+
11+
When you leave PR reviews, always provide GitHub suggestions with actionable feedback that the PR creator can directly commit. For example, don't say "Change this variable.", instead, create a comment with a suggestion that changes the variable to the correct one.
12+
13+
## Key Guidelines
14+
- We write three types of docs: reference, landing page (written in yaml), and how-tos
15+
- When you write or edit a doc, use app/contributing/index.md to format the body text (as well as code blocks) correctly for each page type
16+
- When writing or editing UI steps, use the formats listed in docs/ui-steps-standards.md
17+
- When adding tags to the frontmatter, follow the instructions here: docs/update-tag-schema.md
18+
- For anything that is added to the frontmatter of a doc, use docs/front-matter-reference.md for a reference

.github/reusable-steps/install-deps/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
run: bundle install --jobs 4 --retry 3
2727

2828
# Configure Node to build assets
29-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
29+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
3030
with:
3131
node-version: "22"
3232

.github/styles/base/Dictionary.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ unescaped
871871
ungroup
872872
ungrouped
873873
Unicode
874-
Unicode
874+
unicode
875875
unix
876876
unmanaged
877877
unmarshalled

.github/workflows/check-links-scheduled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: bundle install --jobs 4 --retry 3
4242

4343
# Configure Node to build assets
44-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6
44+
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
4545
with:
4646
node-version: "22"
4747
- name: Cache node modules

.github/workflows/generate-gateway-plugins-changelogs.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
required: true
1313
default: 'main'
1414
type: string
15+
dev_site_base_branch:
16+
description: 'Dev site base branch, e.g. main'
17+
required: true
18+
type: string
1519
release_date:
1620
description: 'Release date for the version (YYYY/MM/DD format). Only used when version is specified.'
1721
required: true
@@ -46,7 +50,7 @@ jobs:
4650
token: ${{ steps.app-token.outputs.token }}
4751

4852
- name: Setup Node.js
49-
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
53+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
5054
with:
5155
node-version: '18'
5256
cache: 'npm'
@@ -106,7 +110,7 @@ jobs:
106110
107111
- name: Create pull request
108112
if: steps.changes.outputs.changed == 'true'
109-
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7
113+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
110114
with:
111115
title: Generate Gateway and plugins changelogs for version ${{ inputs.version }}
112116
commit-message: Generate Gateway and plugins changelogs for version ${{ inputs.version }}
@@ -120,6 +124,9 @@ jobs:
120124
labels: skip-changelog,review:general
121125
token: ${{ steps.app-token.outputs.token }}
122126
branch: auto/generate-gateway-plugins-changelogs-${{ github.run_number }}
127+
base: ${{ inputs.dev_site_base_branch }}
128+
add-paths: |
129+
app/**
123130
124131
- name: No changes detected
125132
if: steps.changes.outputs.changed == 'false'
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
name: Generate Kong Configuration JSON
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Kong version to generate config for (e.g., 3.9)'
8+
required: true
9+
type: string
10+
kong_ee_branch:
11+
description: 'Branch to use from kong-ee repository'
12+
required: true
13+
default: 'main'
14+
type: string
15+
dev_site_base_branch:
16+
description: 'Dev site base branch, e.g. main'
17+
required: true
18+
type: string
19+
kong_conf_path:
20+
description: 'Path to kong.conf file in kong-ee repo (relative to repo root)'
21+
required: false
22+
default: 'kong.conf.default'
23+
type: string
24+
25+
permissions:
26+
contents: write
27+
pull-requests: write
28+
29+
jobs:
30+
generate-kong-conf-json:
31+
name: Generate Kong Configuration JSON
32+
runs-on: ubuntu-latest
33+
timeout-minutes: 20
34+
steps:
35+
- name: Harden Runner
36+
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
37+
with:
38+
egress-policy: audit
39+
40+
- name: Create GitHub App Token
41+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf
42+
id: app-token
43+
with:
44+
app-id: ${{ vars.GH_APP_KONG_DOCS_ID }}
45+
private-key: ${{ secrets.GH_APP_KONG_DOCS_SECRET }}
46+
owner: Kong
47+
48+
- name: Checkout developer.konghq.com
49+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
50+
with:
51+
token: ${{ steps.app-token.outputs.token }}
52+
53+
- name: Setup Node.js
54+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
55+
with:
56+
node-version: '18'
57+
cache: 'npm'
58+
cache-dependency-path: tools/kong-conf-to-json/package-lock.json
59+
60+
- name: Install kong-conf-to-json dependencies
61+
run: |
62+
cd tools/kong-conf-to-json
63+
npm ci
64+
65+
- name: Checkout kong-ee repository
66+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
67+
with:
68+
repository: 'Kong/kong-ee'
69+
token: ${{ steps.app-token.outputs.token }}
70+
path: 'kong-ee'
71+
ref: ${{ inputs.kong_ee_branch }}
72+
73+
- name: Create kong-conf data directory
74+
run: |
75+
mkdir -p app/_data/kong-conf
76+
77+
- name: Generate kong.conf JSON
78+
run: |
79+
cd tools/kong-conf-to-json
80+
node run.js --file="../../kong-ee/${{ inputs.kong_conf_path }}" --version="${{ inputs.version }}"
81+
82+
- name: Generate index file
83+
run: |
84+
cd tools/kong-conf-to-json
85+
node index-file.js
86+
87+
- name: Check for changes
88+
id: changes
89+
run: |
90+
if git diff --quiet; then
91+
echo "changed=false" >> $GITHUB_OUTPUT
92+
else
93+
echo "changed=true" >> $GITHUB_OUTPUT
94+
fi
95+
96+
- name: Create pull request
97+
if: steps.changes.outputs.changed == 'true'
98+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
99+
with:
100+
title: Generate Kong configuration JSON for version ${{ inputs.version }}
101+
commit-message: Generate Kong configuration JSON for version ${{ inputs.version }}
102+
body: |
103+
**Changes:**
104+
- Generated JSON representation of kong.conf file
105+
- Updated kong-conf index file with version information
106+
- Processed Kong version ${{ inputs.version }}
107+
108+
labels: skip-changelog,review:general
109+
token: ${{ steps.app-token.outputs.token }}
110+
branch: auto/generate-kong-conf-json-${{ github.run_number }}
111+
base: ${{ inputs.dev_site_base_branch }}
112+
add-paths: |
113+
app/**
114+
115+
- name: No changes detected
116+
if: steps.changes.outputs.changed == 'false'
117+
run: |
118+
echo "No changes detected in the kong-conf JSON files. No pull request will be created."

.github/workflows/sync-deck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
node extract-help.js
2929
node fetch-versions.js
3030
- name: Create pull request
31-
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7
31+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
3232
with:
3333
title: Sync Deck Releases
3434
commit-message: Sync Deck Releases

.github/workflows/sync-konnect-oas-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
npm ci
2222
node run.js --url ${{ vars.VITE_PORTAL_API_URL }}
2323
- name: Create pull request
24-
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7
24+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
2525
with:
2626
title: Sync Konnect OAS Data
2727
commit-message: Sync Konnect OAS Data

.github/workflows/sync-kuma-submodule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
echo "EOF" >> $GITHUB_ENV
7171
- name: 'Create pull request'
7272
# https://github.com/peter-evans/create-pull-request
73-
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7
73+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
7474
id: newPR
7575
with:
7676
base: main

0 commit comments

Comments
 (0)