Skip to content

docs: update plugin docs with ADC and Ingress Controller examples#13336

Merged
Yilialinn merged 14 commits into
apache:masterfrom
Yilialinn:docs/update-plugins-with-tabs
May 12, 2026
Merged

docs: update plugin docs with ADC and Ingress Controller examples#13336
Yilialinn merged 14 commits into
apache:masterfrom
Yilialinn:docs/update-plugins-with-tabs

Conversation

@Yilialinn
Copy link
Copy Markdown
Contributor

Summary

Update plugin documentation for aws-lambda, public-api, real-ip, authz-keycloak, and serverless plugins with comprehensive configuration examples for different deployment methods.

Changes

  • Add ADC (API7 Declarative Config) examples: Show how to configure each plugin using declarative YAML configuration
  • Add Ingress Controller examples: Provide both Gateway API and APISIX CRD examples for Kubernetes deployments
  • Improve Admin API examples: Update curl commands to use admin_key environment variable for better security
  • Add multi-tab interface: Organize examples using tabs to make it easier for users to find their preferred configuration method
  • Enhance example descriptions: Improve clarity and add more context for each example

Related PRs

  • api7/docs#1554 (aws-lambda, public-api, real-ip, serverless-functions)
  • api7/docs#1556 (authz-keycloak)

Testing

All examples have been verified for syntax correctness and formatting. The documentation builds successfully with the changes.

Update plugin documentation for aws-lambda, public-api, real-ip,
authz-keycloak, and serverless plugins with:

- Add ADC (API7 Declarative Config) configuration examples
- Add Ingress Controller (Gateway API and APISIX CRD) configuration examples
- Update examples with admin_key environment variable usage
- Improve example descriptions and formatting
- Add multi-tab interface for different configuration methods

These updates enhance the documentation by providing examples for
multiple ways to configure APISIX plugins, making it easier for users
working with different deployment methods.

Related: api7/docs#1554, api7/docs#1556
@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. doc Documentation things labels May 7, 2026
OpenCode added 4 commits May 7, 2026 11:32
…ples

Update Chinese documentation for aws-lambda, public-api, real-ip,
authz-keycloak, and serverless plugins to match the English version
updates:

- Add ADC (API7 Declarative Config) configuration examples
- Add Ingress Controller (Gateway API and APISIX CRD) examples
- Add multi-tab interface for different configuration methods
- Translate new example descriptions and instructions to Chinese
- Keep code blocks and YAML configurations in English
- Update curl commands to use admin_key environment variable

This ensures Chinese-speaking users have the same comprehensive
documentation as English-speaking users.
Remove '// Annotate N' style comments and convert circled number
annotations (❶ ❷ ❸) to standard list format with dashes.

APISIX documentation does not use API7's annotation style with
inline comments and circled numbers. Instead, use standard markdown
lists or inline explanations.

Changes:
- Remove all '// Annotate N' comments from code blocks
- Convert ❶ ❷ ❸ ❹ ❺ etc. to standard '- ' list items
- Applied to both English and Chinese documentation

This ensures consistency with APISIX documentation standards.
Replace English punctuation with Chinese punctuation in Chinese
documentation where appropriate:
- , (comma) → ,(Chinese comma)
- : (colon) → :(Chinese colon)
- ; (semicolon) → ;(Chinese semicolon)

Chinese documentation should use Chinese punctuation marks to
follow proper Chinese writing conventions.

Affected plugins:
- authz-keycloak (116 changes)
- aws-lambda (80 changes)
- public-api (56 changes)
- real-ip (52 changes)
- serverless (30 changes)
- Remove trailing spaces from markdown files (MD009)
- Fix Chinese punctuation (commas and spacing around parentheses)
- Apply autocorrect fixes to Chinese documentation
@Yilialinn Yilialinn force-pushed the docs/update-plugins-with-tabs branch from d497515 to 4955b3b Compare May 7, 2026 04:46
- Change English comma to Chinese comma in zh public-api.md line 41
- Remove broken link to apisix-cli.md (file does not exist in APISIX docs)
- Keep plain text 'reload APISIX' consistent with other plugin docs
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates multiple plugin documentation pages (EN + ZH) to add richer, deployment-specific configuration examples (Admin API, ADC, and Kubernetes via Ingress Controller), and to reorganize examples using a tabbed UI.

Changes:

  • Added ADC (declarative YAML) examples and Kubernetes Ingress Controller examples (Gateway API + APISIX CRD) across several plugin docs.
  • Refactored/expanded examples and descriptions (including improved Admin API commands using ${admin_key} patterns).
  • Added canonical links and reorganized sections (notably in serverless and authz-keycloak docs).

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
docs/zh/latest/plugins/serverless.md Adds canonical link + tabbed examples for configuring serverless plugins across Admin API/ADC/Ingress Controller.
docs/zh/latest/plugins/real-ip.md Adds ADC + Ingress Controller examples for typical real-ip configurations.
docs/zh/latest/plugins/public-api.md Adds admin_key note + tabbed examples for Prometheus and batch endpoint exposure across deployment methods.
docs/zh/latest/plugins/aws-lambda.md Adds ADC + Ingress Controller examples for IAM/API-key Lambda integrations and improves walkthrough content.
docs/zh/latest/plugins/authz-keycloak.md Major expansion with Docker/Kubernetes setup tabs and tabbed configuration examples (Admin API/ADC/Ingress Controller).
docs/en/latest/plugins/serverless.md Major expansion: multiple tabbed scenarios (logging, custom vars, response body modification) + canonical link.
docs/en/latest/plugins/real-ip.md Adds canonical link + tabbed Admin API/ADC/Ingress Controller examples; refines narrative.
docs/en/latest/plugins/public-api.md Adds admin_key note + tabbed examples across Admin API/ADC/Ingress Controller.
docs/en/latest/plugins/aws-lambda.md Adds tabbed examples across Admin API/ADC/Ingress Controller and improves walkthrough visuals/text.
docs/en/latest/plugins/authz-keycloak.md Major expansion with Docker/Kubernetes setup tabs and tabbed configuration examples (Admin API/ADC/Ingress Controller).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/en/latest/plugins/serverless.md
Comment thread docs/en/latest/plugins/serverless.md Outdated
Comment thread docs/en/latest/plugins/serverless.md Outdated
Comment thread docs/zh/latest/plugins/serverless.md
Comment thread docs/zh/latest/plugins/authz-keycloak.md Outdated
Comment thread docs/en/latest/plugins/real-ip.md Outdated
Comment thread docs/en/latest/plugins/real-ip.md Outdated
Yilialinn and others added 4 commits May 7, 2026 16:01
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
- Fix multi-line Lua JSON strings in serverless plugin docs (EN & ZH)
- Fix broken anchor link in authz-keycloak ZH docs
- Fix grammar issues in real-ip EN docs
Remove all # highlight-start, # highlight-end, and # highlight-next-line
annotations from plugin documentation as they are MDX-specific syntax
not supported in standard Markdown.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 17 comments.

Comment thread docs/en/latest/plugins/serverless.md
Comment thread docs/en/latest/plugins/real-ip.md
Comment thread docs/en/latest/plugins/public-api.md
Comment thread docs/en/latest/plugins/aws-lambda.md
Comment thread docs/en/latest/plugins/authz-keycloak.md
Comment thread docs/zh/latest/plugins/aws-lambda.md Outdated
Comment thread docs/en/latest/plugins/public-api.md Outdated
Comment thread docs/zh/latest/plugins/public-api.md Outdated
Comment thread docs/zh/latest/plugins/authz-keycloak.md Outdated
Comment thread docs/zh/latest/plugins/aws-lambda.md Outdated
Yilialinn added 2 commits May 9, 2026 16:04
- Add Tabs/TabItem imports to all plugin documentation files
- Fix multi-line Lua in serverless.md (convert to single-line JSON strings)
- Fix duplicate route IDs in aws-lambda docs (use unique IDs for each scenario)
- Fix incorrect public-api description (clarify plugin uri vs route uri)
- Fix Chinese punctuation (use full-width punctuation, add spaces after commas)
Chinese copywriting rules require no space after Chinese punctuation marks
when followed by Chinese text.
@Yilialinn Yilialinn requested a review from kayx23 May 9, 2026 08:12
- Remove TODO comment in EN public-api.md
- Add link to batch-requests plugin doc in both EN and ZH versions
Comment thread docs/en/latest/plugins/aws-lambda.md
- ADC: Change uris from /aws-lambda to /aws-lambda/*
- HTTPRoute: Change from Exact match to PathPrefix match with /aws-lambda/
- ApisixRoute: Change paths from /aws-lambda to /aws-lambda/*

This ensures the verification request GET /aws-lambda/api7-docs will match
the routes in all deployment methods (Admin API, ADC, Ingress Controller)
@Yilialinn Yilialinn requested a review from kayx23 May 9, 2026 08:40
@Yilialinn Yilialinn merged commit f698d7e into apache:master May 12, 2026
7 checks passed
@Yilialinn Yilialinn deleted the docs/update-plugins-with-tabs branch May 12, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Documentation things size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants