Files
renovate/tools/docs
Jamie Tanna b1c232a2ad fix(json-schema): correctly link options to the heading they're documented under (#46672)
As part of #43020, we're making an option's `parents` explicit, which
isn't possible without breaking the docs links that our JSON Schema
contains.

We previously incorrectly generated the `See also` link for an option,
by taking the first of its `parents` which isn't `.`, and assume the
option is documented under that parent, which isn't true for options
that can be valid in multiple places.

To fix this, we track which headings are output, and then linking to
them accordingly.

By fixing this, we see the following diffs:

```diff
-#packagerulesenabled
+#enabled
-#packagerulesfetchchangelogs
+#fetchchangelogs
-#ansiblemanagerfilepatterns
+#managerfilepatterns
```

We can also add a test to catch this breakage in the future.

Co-authored-by: Claude Opus 5 <jamie.tanna+claude-code@mend.io>
2026-10-07 15:19:54 +00:00
..