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

Refactor rule loading so we can correctly load markdown help files #2362

Merged
merged 2 commits into from Aug 30, 2022

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Aug 29, 2022

We now load the markdown help using lazy loading so we no longer need to manually load the documentation files when we load the rules.

This also allows us to add markdown documentation for the internal rules, which are not loaded using the normal loader.

@ssbarnea ssbarnea requested review from a team as code owners August 29, 2022 17:16
@ssbarnea ssbarnea changed the title Refactor help loading Refactor rule markdown help loading Aug 29, 2022
@ssbarnea ssbarnea added the bug label Aug 29, 2022
We now load the markdown help using lazy loading so we no longer need
to manually load the documentation files when we load the rules.

This also allows us to add markdown documentation for the internal
rules, which are not loaded using the normal loader.
As we observed that our old loading was failing to correctly identify
the filename from which each rule originated, we reworked to use a
more standard import_module() approach.

This is fixing a bug we observed with loading the markdown help file
for some of the internal rules.
@ssbarnea ssbarnea changed the title Refactor rule markdown help loading Refactor rule loading so we can correctly load markdown help files Aug 30, 2022
@ssbarnea ssbarnea merged commit 2bf3e9a into ansible:main Aug 30, 2022
@ssbarnea ssbarnea deleted the fix/docs2 branch August 30, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants