Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: formatting updates to api reference #276

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ef36bb0
test: removes apischema coverage exception (#255)
mathetake Jan 31, 2025
5cb2bb5
ci: upgrades Envoy Gateway to v1.3.0 (#259)
mathetake Jan 31, 2025
bc44655
updates for better headers and a back to top button
ericmariasis Feb 2, 2025
91336ea
fixing whitespace in config.yaml
ericmariasis Feb 2, 2025
4ed8aff
ran precommit
ericmariasis Feb 2, 2025
357f28a
updating for more user friendly bulleted list approach
ericmariasis Feb 7, 2025
5439428
docs: removal of deprecated kubectl command in installation.md (#264)
ericmariasis Feb 1, 2025
23cab14
chore: fixes PR style check (#266)
mathetake Feb 1, 2025
3ed81cd
ci: cleanup PR Style Check GHA (#268)
mathetake Feb 1, 2025
41e4271
ci: relaxes PR title length check (#269)
mathetake Feb 1, 2025
bcd2d13
docs: add note for Windows users in basic usage (#265)
ericmariasis Feb 1, 2025
2bbf52d
chore: more clarify what to do on Style check failure (#272)
mathetake Feb 2, 2025
89de59a
Fix description render issue
ericmariasis Feb 7, 2025
e98802b
ci: skip style checks for dependabot PRs (#282)
leseb Feb 3, 2025
008a7e3
build(deps): bump github.com/envoyproxy/go-control-plane/envoy from 1…
dependabot[bot] Feb 3, 2025
707d761
build(deps): bump github.com/openai/openai-go from 0.1.0-alpha.50 to …
dependabot[bot] Feb 3, 2025
69085d2
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.35.0 to 1.36.0 …
dependabot[bot] Feb 3, 2025
757f275
build(deps): bump github.com/google/cel-go from 0.23.1 to 0.23.2 (#279)
dependabot[bot] Feb 3, 2025
6d1fc67
test: resolve warnings in envoy.yaml (#283)
leseb Feb 3, 2025
6f0470f
build(deps): bump github.com/aws/aws-sdk-go-v2/config from 1.29.3 to …
dependabot[bot] Feb 3, 2025
ef2e428
ci: add issue title check (#273)
soma00333 Feb 3, 2025
78ec796
ci: adjust issue/pr style checks (#284)
mathetake Feb 3, 2025
d4df342
ci: stricter permissions on style/tests workflows (#288)
mathetake Feb 4, 2025
63865c7
controller: mark all volume mounts ReadOnly=true (#252)
daixiang0 Feb 4, 2025
219ffce
examples: adds token rate limit (#289)
mathetake Feb 4, 2025
ff82f6f
test: clean up real provider extproc test (#291)
mathetake Feb 4, 2025
3aefe8c
examples: simplifies token_ratelimit.yaml (#292)
mathetake Feb 5, 2025
32c49d1
controller: eliminates context.Background (#295)
mathetake Feb 6, 2025
e44314b
extproc: eliminates context.Background (#296)
mathetake Feb 6, 2025
44470e6
extproc: eliminates context.Background in config loader (#297)
mathetake Feb 6, 2025
061a659
chore: stricter golangci-lint (#298)
mathetake Feb 6, 2025
9c7279a
docs: more comment about generated resources in API (#294)
mathetake Feb 6, 2025
03885ea
docs: adds architecture overview (#293)
mathetake Feb 6, 2025
3a12cf4
e2e: support AWS Session Token in real provider test (#299)
yuzisun Feb 6, 2025
214934a
chore: fixes CEL validation test target name (#300)
mathetake Feb 6, 2025
d328bc8
chore: updates tools (#301)
mathetake Feb 6, 2025
923cf40
Merge branch 'main' into issue_241_new
ericmariasis Feb 7, 2025
a899e98
Merge branch 'main' into issue_241_new
ericmariasis Feb 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions site/crd-ref-docs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ render:
- name: ExtProc
package: github.com/envoyproxy/gateway/api/v1alpha1
link: https://gateway.envoyproxy.io/docs/api/extension_types/#extproc

navigation:
includeTOC: true
includeBackToTopLinks: true
9 changes: 6 additions & 3 deletions site/crd-ref-docs/templates/gv_details.tpl
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{{- define "gvDetails" -}}
{{- $gv := . -}}

## {{ $gv.GroupVersionString }}
<a name="{{ lower (replace $gv.GroupVersionString " " "-" ) }}"></a>
# {{ $gv.GroupVersionString }}

{{ $gv.Doc }}

{{- if $gv.Kinds }}
### Resource Types
## Resource Types
{{- range $gv.SortedKinds }}
- {{ $gv.TypeForKind . | markdownRenderTypeLink }}
- {{ markdownRenderTypeLink ($gv.TypeForKind .) }}
{{- end }}
{{ end }}

{{ range $gv.SortedTypes }}
{{ template "type" . }}
{{ end }}

[Back to Packages](#api_references)

{{- end -}}
6 changes: 3 additions & 3 deletions site/crd-ref-docs/templates/gv_list.tpl
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{{- define "gvList" -}}
{{- $groupVersions := . -}}


---
id: api_references
title: API Reference
---

## Packages
<a id="api_references"></a>
# Packages
{{- range $groupVersions }}
- {{ markdownRenderGVLink . }}
- [{{ .GroupVersionString }}](#{{ lower (replace .GroupVersionString " " "-" ) }})
{{- end }}

{{ range $groupVersions }}
Expand Down
22 changes: 15 additions & 7 deletions site/crd-ref-docs/templates/type.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- $type := . -}}
{{- if markdownShouldRenderType $type -}}

#### {{ $type.Name }}
### {{ $type.Name }}

{{ if $type.IsAlias }}_Underlying type:_ _{{ markdownRenderTypeLink $type.UnderlyingType }}_{{ end }}

Expand All @@ -16,26 +16,34 @@ _Appears in:_
{{- end }}

{{ if $type.Members -}}
| Field | Type | Required | Description |
| --- | --- | --- | --- |
{{ if $type.GVK -}}
| `apiVersion` | _string_ | |`{{ $type.GVK.Group }}/{{ $type.GVK.Version }}`
| `kind` | _string_ | |`{{ $type.GVK.Kind }}`
- **apiVersion**
- **Type:** _string_
- **Value:** `{{ $type.GVK.Group }}/{{ $type.GVK.Version }}`
- **kind**
- **Type:** _string_
- **Value:** `{{ $type.GVK.Kind }}`
{{ end -}}

{{ range $type.Members -}}
{{- with .Markers.notImplementedHide -}}
{{- else -}}
| `{{ .Name }}` | _{{ markdownRenderType .Type }}_ | {{ with .Markers.optional }} {{ "false" }} {{ else }} {{ "true" }} {{end}} | {{ template "type_members" . }} |
- **{{ .Name }}**
- **Type:** _{{ markdownRenderType .Type }}_
- **Required:** {{ if .Markers.optional }}No{{ else }}Yes{{ end }}
{{- if .Doc }}
- **Description:** {{ .Doc }}
{{- end }}
{{ end -}}
{{- end -}}
{{- end -}}

{{ if $type.EnumValues -}}
| Value | Description |
| ----- | ----------- |
{{ range $type.EnumValues -}}
| `{{ .Name }}` | {{ markdownRenderFieldDoc .Doc }} |
{{ end -}}
{{- end -}}

{{- end -}}
{{- end -}}
Loading