Commit Graph

26 Commits

Author SHA1 Message Date
Jamie Tanna 128f446e08 docs: ensure that config in documentation is error and warning free (#43727)
* docs: skip validation on JSON files that aren't Renovate config

As part of future changes, we'll enable validation on all JSON code
snippets to run Config Validation.

Before we do that, we should opt-out JSON snippets that aren't anything
related to Renovate config.

* docs: don't validate invalid Renovate config

As it's intentionally referencing a manager that doesn't exist.

* docs: don't validate partial Renovate config

As part of future changes, we'll enable validation on all JSON code
snippets to run Config Validation.

There are several code snippets we have that are part of a Renovate JSON,
but it doesn't make sense to convert these to a fully passing config, as
it'd reduce clarity on what we're trying to explain.

* docs: convert `baseBranchPatterns` snippets to code blocks

So we can validate them.

* docs: make sure that `datasourceTemplate` is set

So this passes validation.

* docs: clarify that `force` is global config

As it may not be clear, so we can make it extra clear with a `.js` file,
and note that it's global self-hosted config.

* docs: make sure `packageRules` is an array

* docs: `matchBaseBranches` needs `baseBranchPatterns` to be set

* docs: correct typo for `prBodyColumns`

* docs: mark global config snippets as such

As part of future changes, we'll use this to detect whether it's global
self-hosted configuration.

* docs: make sure `packageRules` wraps its children

* docs: add `allowedHeaders`

* docs: ignore deprecation warnings

As part of future changes, we'll use this to note that we don't care
about the validation warnings.

* docs: make sure `customManagers` wraps its children

* docs: make sure `fleet` wraps its children

* docs: validate JSON snippets are valid Renovate config

To make sure that we're always presenting valid JSON configuration to
our users, we can validate them as part of `check-fenced-code`.

As well as configuration errors we can warn for warnings, but allow code
blocks to opt-out, for instance when there's a known deprecation
affecting the code block.

We need to make sure to set `allowedEnv` for various code snippets that
reference environment variables.

* docs(development): document fenced code block checks

* docs: wrap `configType` and `ignoreConfigWarnings` in `{ ... }`

As otherwise we see build failures i.e.

    WARNING -  Doc file 'modules/platform/gitlab/index.md' contains a link
       '../../../self-hosted-configuration.md#autodiscoverrepoorder', but the doc
       'self-hosted-configuration.md' does not contain an anchor '#autodiscoverrepoorder'.

This needs to be wrapped alongside all other options like `title`.

* fixup! docs: wrap `configType` and `ignoreConfigWarnings` in `{ ... }`
2026-06-02 13:29:48 +00:00
Sebastian Poxhofer 9a27d7aa78 ci(prettier): add prettier plugin for admonitions (#43615)
* ci: add local mkdocs-admonitions plugin for prettier to allow admonition preservation

* docs: remove uses of `prettier-ignore` for admonitions

* test: rather use await expect

* chore: use named group exclusively
2026-05-27 09:39:52 +00:00
Jamie Tanna 33e857e04a docs: migrate all admonitions and lists to using 2-space indents (#43607)
* docs: ensure 2 spaces used for generated admonitions

As a follow-up to 4b0146ab7b and
1844916259b6dc17f532e491eb93f6116327c324., this correctly renders
admonitions with 2 spaces (1 indent).

* fixup! docs: use 2-space indentation for Markdown (#43537)

Plus using 3-space for mixed-style `<ul>` and `<ol>`s.

* fixup! docs: use 2-space indentation for Markdown (#43537)

As otherwise it breaks the rendering of the table.
2026-05-26 20:03:23 +00:00
Anne Stellingwerf 9fae0192a1 docs: introduce JSON schema validation and migration checks (#38145)
* docs: introduce JSON schema validation and migration checks

* refactor(tools): enhance code clarity with additional typings, comments, and optional chaining

* ci(workflows): add build steps to lint and type-check jobs

* Update tools/check-fenced-code.mjs

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Partial revert

* docs(jsonata): fix wording in code block title in readme

* ci(workflows): remove redundant build steps from workflows

* ci(workflows): remove redundant build steps from workflows

* refactor(tools): simplify error reporting

* Incorporate feedback

* Incorporate feedback

* Incorporate feedback

---------

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Jamie Tanna <jamie.tanna@mend.io>
2025-10-07 10:54:48 +00:00
Szava Maczika 9aa84388ee docs: Change incorrect log remapping (#37503) 2025-08-14 08:06:04 +00:00
RahulGautamSingh c477fb09e1 feat(datasource/custom): add toml support (#36136)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-06-29 09:08:39 +00:00
RahulGautamSingh bc7d0595d0 feat(config): managerFilePatterns (#34615)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-05-04 08:30:24 +00:00
RahulGautamSingh 5c29fe8cc6 docs(datasources/custom): add link to online tester for jsonata rules (#31486) 2024-09-23 14:26:50 +00:00
RahulGautamSingh fbdb06d019 docs: fix broken link (#30383)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-07-25 17:01:50 +00:00
HonkingGoose 94e333fedb docs(datasource/custom): rewrite debugging section (#30250)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2024-07-22 13:51:29 +00:00
Sebastian Poxhofer a13ab2cffa chore(datasource/custom): log data before jsonata processing (#30241) 2024-07-18 21:00:59 +00:00
Aleksandr Mezin f921c68488 feat(datasource/custom): allow isStable in output (#29928) 2024-06-29 05:52:07 +00:00
HonkingGoose b56e545852 docs(custom datasource): improve styling (#27747) 2024-03-06 14:15:24 +00:00
andaryjo c479b213dd feat(datasource/custom): add currentValue to template metadata (#27038) 2024-02-04 09:09:49 +00:00
Michael Kriese 4b7a5e7b62 docs: use relative links (#26044) 2023-11-29 18:10:17 +00:00
Sebastian Poxhofer 0e9a452969 docs(datasource/custom): fixs false header size and missing format type (#26023) 2023-11-29 08:12:12 +00:00
Aleksandr Mezin a8c83970ac feat(datasource/custom): expose newDigest in result (#26007) 2023-11-28 09:28:09 +00:00
Aleksandr Mezin 7611162834 feat(datasource/custom): add html format (#24403)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2023-11-28 07:39:22 +00:00
nSimon (Nicolas) f7b74c3f8b feat(datasource/custom): add ability for local registry (file://) (#25734) 2023-11-24 06:05:46 +00:00
nSimon (Nicolas) 53401eb36f feat(datasource/custom): allow to fetch from YAML data endpoint (#25695) 2023-11-13 11:01:56 +00:00
RahulGautamSingh 6f9d37a6c0 feat(migrate): regexManagers -> customManagers (#24451)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-09-24 08:55:56 +00:00
HonkingGoose b8c7a2ddb8 docs: improve custom datasource text (#23962)
Co-authored-by: Anne Stellingwerf <astellin@opentext.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-08-24 11:44:55 +00:00
Petr Ruzicka b7627b2a6a docs(datasource): add helm chart customDatasources example (#23954) 2023-08-19 12:12:53 +00:00
Asifur Rahman Arnab 37862b6c08 feat: add plain format type for customDatasources (#23563)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2023-08-03 14:20:36 +00:00
Uli 908777cdcc docs(datasource): Add additional examples for custom datasource (#23558)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
2023-08-01 18:09:43 +00:00
Sebastian Poxhofer f26d21fcc3 feat(datasource): implement custom datasource (#23147) 2023-07-10 18:22:35 +00:00