Skip to content

Conversation

felixfontein
Copy link
Collaborator

@felixfontein felixfontein commented Jun 15, 2025

Generalizes the code from ansible/ansible-documentation#2385 so it can be used in other contexts.

(I'm planning to add YAML validation to code blocks in extra docs to antsibull-nox.)

To do:

  • Polish.
  • Find row/column in tables.
  • Maybe figure out how to undo directive registration, since this is a rather destructive process. (Might not be possible without accessing docutils internals, but 🤷)

@felixfontein felixfontein marked this pull request as ready for review June 15, 2025 19:21
@felixfontein
Copy link
Collaborator Author

I think this is a good first version. Finding the actual code inside tables is something we can add later. And unregistering directives resp. registering them only temporary doesn't look very realistic, when looking at docutils' code...

@felixfontein felixfontein merged commit e3570da into ansible-community:main Jun 16, 2025
6 checks passed
@felixfontein felixfontein deleted the rst-find-code branch June 16, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant