From d34d54f751fd7da086e5d6f7bea30bb9d9bfca20 Mon Sep 17 00:00:00 2001 From: Fabian Rodriguez Date: Thu, 19 Dec 2024 14:54:14 -0300 Subject: [PATCH] Rename event_hook.md to event-hook --- app/_gateway_entities/{event_hook.md => event-hook.md} | 2 +- app/_how-tos/create-a-custom-webhook-slack.md | 2 +- app/_how-tos/create-a-lambda-event-hook.md | 2 +- app/_how-tos/create-a-log-event-hook.md | 2 +- app/_how-tos/create-a-webhook-with-kong-gateway.md | 2 +- app/_landing_pages/gateway/entities.yaml | 2 +- app/_plugins/blocks/entity_example.rb | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename app/_gateway_entities/{event_hook.md => event-hook.md} (99%) diff --git a/app/_gateway_entities/event_hook.md b/app/_gateway_entities/event-hook.md similarity index 99% rename from app/_gateway_entities/event_hook.md rename to app/_gateway_entities/event-hook.md index 6b15786bc..ddd14c3cc 100644 --- a/app/_gateway_entities/event_hook.md +++ b/app/_gateway_entities/event-hook.md @@ -2,7 +2,7 @@ title: Event Hooks content_type: reference entities: - - event_hook + - event-hook tier: enterprise description: Event Hooks allow {{site.base_gateway}} monitor to communicate with target services or resources, notifying the target resource that an event was triggered. related_resources: diff --git a/app/_how-tos/create-a-custom-webhook-slack.md b/app/_how-tos/create-a-custom-webhook-slack.md index 3699ffed3..7b79ae992 100644 --- a/app/_how-tos/create-a-custom-webhook-slack.md +++ b/app/_how-tos/create-a-custom-webhook-slack.md @@ -6,7 +6,7 @@ works_on: products: - gateway entities: - - event_hook + - event-hook tier: enterprise tags: - eventhooks diff --git a/app/_how-tos/create-a-lambda-event-hook.md b/app/_how-tos/create-a-lambda-event-hook.md index 453e1a67b..e80c27b82 100644 --- a/app/_how-tos/create-a-lambda-event-hook.md +++ b/app/_how-tos/create-a-lambda-event-hook.md @@ -3,7 +3,7 @@ title: Create an Event Hook that can run custom code content_type: how_to entities: - - event_hook + - event-hook works_on: - on-prem products: diff --git a/app/_how-tos/create-a-log-event-hook.md b/app/_how-tos/create-a-log-event-hook.md index cd2397c37..0a96b3ec6 100644 --- a/app/_how-tos/create-a-log-event-hook.md +++ b/app/_how-tos/create-a-log-event-hook.md @@ -3,7 +3,7 @@ title: Configure an Event Hook to log events content_type: how_to entities: - - event_hook + - event-hook works_on: - on-prem products: diff --git a/app/_how-tos/create-a-webhook-with-kong-gateway.md b/app/_how-tos/create-a-webhook-with-kong-gateway.md index 98869cbcc..541dbaa45 100644 --- a/app/_how-tos/create-a-webhook-with-kong-gateway.md +++ b/app/_how-tos/create-a-webhook-with-kong-gateway.md @@ -5,7 +5,7 @@ content_type: how_to products: - gateway entities: - - event_hook + - event-hook tier: enterprise works_on: - on-prem diff --git a/app/_landing_pages/gateway/entities.yaml b/app/_landing_pages/gateway/entities.yaml index d14579b32..5bacbb4eb 100644 --- a/app/_landing_pages/gateway/entities.yaml +++ b/app/_landing_pages/gateway/entities.yaml @@ -56,4 +56,4 @@ rows: - blocks: - type: entity_card config: - entity: event_hook + entity: event-hook diff --git a/app/_plugins/blocks/entity_example.rb b/app/_plugins/blocks/entity_example.rb index df29a0429..80c58fb26 100644 --- a/app/_plugins/blocks/entity_example.rb +++ b/app/_plugins/blocks/entity_example.rb @@ -39,7 +39,7 @@ def render(context) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize def formats(page) return page['tools'] unless page['layout'] == 'gateway_entity' - return page['tools'] unless page['slug'] != 'event_hook' + return page['tools'] unless page['slug'] != 'event-hook' page['tools'].dup << 'ui' end