Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .crd-ref-docs-cloud.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
processor:
docPaths: []
ignoreTypes:
- ".*List$"
# Exclude collection wrappers by name: BGPPrefixList is a resource.
- "[.]NetworkFabricIdentityList$"
- "[.]VPCAttachmentList$"
- "[.]VPCList$"
ignoreFields: []

render:
Expand Down
32 changes: 30 additions & 2 deletions .crd-ref-docs-network-bgp.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,39 @@
processor:
docPaths: []
ignoreTypes:
- ".*List$"
# Exclude collection wrappers by name: BGPPrefixList is a resource.
- "[.]BGPAdvertisementList$"
- "[.]BGPCommunitySetList$"
- "[.]BGPPeerList$"
- "[.]BGPPeerProfileList$"
- "[.]BGPPolicyList$"
- "[.]BGPPrefixListList$"
- "[.]BGPRouterClassList$"
- "[.]BGPRouterList$"
- "[.]BGPStaticRouteList$"
- "[.]BGPVRFInstanceList$"
- "[.]EgressShardList$"
- "[.]FRRRouterParametersList$"
- "[.]FabricEndpointList$"
- "[.]FabricReleaseAuthorizationList$"
- "[.]FabricRolloutPolicyList$"
- "[.]FabricRouterDeploymentList$"
- "[.]FabricRouterRevisionList$"
- "[.]FabricTopologyList$"
- "[.]NetworkEgressPolicyList$"
- "[.]NetworkGatewayList$"
- "[.]NetworkServiceList$"
- "[.]ServiceEndpointList$"
- "[.]ServiceRoutePolicyList$"
- "[.]ServiceVIPBindingList$"
# The revision's configuration lists every BGP spec by name; walking
# those wrappers first would hide the policy types from their sections.
- "FabricNamed.*"
# Egress and service resources have their own reference.
- "[.]EgressShard.*"
- "[.]ServiceEndpoint.*"
- "[.]ServiceRoutePolicy.*"
- "[.]ServiceVIPBinding.*"
- "NetworkGateway"
- "NetworkGatewaySpec"
- "NetworkGatewayStatus"
Expand All @@ -16,7 +45,6 @@ processor:
- "NetworkEgressPolicySpec"
- "NetworkEgressPolicyStatus"
ignoreFields: []

render:
kubernetes: {}
markdown:
Expand Down
27 changes: 25 additions & 2 deletions .crd-ref-docs-network-gateway.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,31 @@
processor:
docPaths: []
ignoreTypes:
- ".*List$"
# Exclude collection wrappers by name: BGPPrefixList is a resource.
- "[.]BGPAdvertisementList$"
- "[.]BGPCommunitySetList$"
- "[.]BGPPeerList$"
- "[.]BGPPeerProfileList$"
- "[.]BGPPolicyList$"
- "[.]BGPPrefixListList$"
- "[.]BGPRouterClassList$"
- "[.]BGPRouterList$"
- "[.]BGPStaticRouteList$"
- "[.]BGPVRFInstanceList$"
- "[.]EgressShardList$"
- "[.]FRRRouterParametersList$"
- "[.]FabricEndpointList$"
- "[.]FabricReleaseAuthorizationList$"
- "[.]FabricRolloutPolicyList$"
- "[.]FabricRouterDeploymentList$"
- "[.]FabricRouterRevisionList$"
- "[.]FabricTopologyList$"
- "[.]NetworkEgressPolicyList$"
- "[.]NetworkGatewayList$"
- "[.]NetworkServiceList$"
- "[.]ServiceEndpointList$"
- "[.]ServiceRoutePolicyList$"
- "[.]ServiceVIPBindingList$"
- "AFI"
- "SAFI"
- "AddressFamily"
Expand Down Expand Up @@ -70,7 +94,6 @@ processor:
- "BGPPrefixListSpec"
- "BGPPrefixListStatus"
ignoreFields: []

render:
kubernetes: {}
markdown:
Expand Down
10 changes: 9 additions & 1 deletion .crd-ref-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
processor:
ignoreTypes:
- ".*List$"
# Exclude collection wrappers by name: BGPPrefixList is a resource.
- "[.]EdgeAttachmentList$"
- "[.]EdgeInstanceList$"
- "[.]EdgeProviderList$"
- "[.]EdgeRouteIndexList$"
- "[.]EdgeRouteList$"
- "[.]EdgeServiceList$"
- "[.]TrafficPolicyBindingList$"
- "[.]TrafficPolicyList$"

render:
kubernetes: {}
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# ---
# Workflow: Documentation
# Checks local Markdown navigation, API resource coverage and generated references.
# Runs for all PR bases, including stacked PRs, and pushes to main.
# No cluster, container runtime, eBPF build or secrets are required.
# Produces no deployment artifacts.
# ---
name: Documentation
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: docs-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# -- documentation
# Parse Markdown with CommonMark rules before checking links and anchors.
# Regenerate APIs into a temporary directory so drift fails without editing Git.
documentation:
name: Documentation
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
with:
go-version-file: go.mod
- name: Install Markdown parser
run: |
python3 -m venv "$RUNNER_TEMP/docs-venv"
"$RUNNER_TEMP/docs-venv/bin/python" -m pip install -r hack/docs/requirements.txt
- name: Check links, anchors and resource coverage
run: |
"$RUNNER_TEMP/docs-venv/bin/python" -m unittest discover -s hack/docs -p 'test_*.py'
"$RUNNER_TEMP/docs-venv/bin/python" hack/docs/check.py
- name: Check generated API references
run: python3 hack/docs/generate_api.py --check
Loading
Loading