From 5e196215b7e2b64cc0de8126b7ed86d832116f1e Mon Sep 17 00:00:00 2001 From: Janine Chan <64388808+janine-c@users.noreply.github.com> Date: Fri, 15 May 2026 17:19:27 -0600 Subject: [PATCH] Add rule to flag id-for-anchoring placeholder Flags the literal id-for-anchoring placeholder text from the collapse-content shortcode template so writers replace it with a unique, descriptive ID before merging. Co-Authored-By: Claude Opus 4.7 (1M context) --- styles/Datadog/id_placeholder.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 styles/Datadog/id_placeholder.yml diff --git a/styles/Datadog/id_placeholder.yml b/styles/Datadog/id_placeholder.yml new file mode 100644 index 0000000..10b2d3c --- /dev/null +++ b/styles/Datadog/id_placeholder.yml @@ -0,0 +1,8 @@ +# This file is used to flag the `id-for-anchoring` placeholder left over from the `collapse-content` shortcode template. +extends: existence +message: "Replace the 'id-for-anchoring' placeholder with a unique, descriptive ID for this collapse-content section so anchor links work." +link: "https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md" +nonword: true +level: error +tokens: + - 'id-for-anchoring'