Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: generate yaml code blocks from json config examples #65

Closed
wants to merge 1 commit into from

Conversation

nejch
Copy link

@nejch nejch commented Jun 27, 2021

Changes:

Adds a simple postprocessor to create a tabbed json/yaml codeblock if the code in existing example blocks is valid JSON, log a warning otherwise.

The logging, yaml indent/flow and other things can still be tweaked of course, just a demo for renovatebot/renovate#7031.

I did have to bump the mkdocs stack to make sure the configuration was picked up correctly, so this may need a manual check that everything is OK, but seems fine to me so far.

Context:

For discussion in renovatebot/renovate#7031. Depends on that feature first of course.

@nejch nejch marked this pull request as ready for review June 28, 2021 04:59
@viceice viceice deleted the branch renovatebot:build December 9, 2021 13:44
@viceice viceice closed this Dec 9, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants