-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Docs. Remove helpers. #8647
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
base: main
Are you sure you want to change the base?
Docs. Remove helpers. #8647
Conversation
@vbotka This PR was evaluated as a potentially problematic PR for the following reasons:
Such PR can only be merged by human. Contact a Core team member to review this PR on IRC: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least lists_mergeby
should be kept.
This is up to you. I have no resources to manage conformant versions within the repository. Please keep the helpers at your discretion if you don't accept this PR. |
@felixfontein I am revisiting this pending PR. It is not entirely clear to me how we should handle it. Back in the day I assumed we did not want to have dynamic code under the Then you commented that " I have mixed feelings about the entire idea: on one hand it might be interesting to have the docs showcasing actual test results, on the other hand, if we were to embrace that idea I think we might want to create a better, integrated, structure for this, potentially tapping on both unit and integration tests. For that, we would likely need to create standard structures/elements in the 3 subdirectories: Back to this PR, could you please clarify what you mean it should be kept? Are you actually referring to the playbooks and accompanying files in Appreciate your thoughts on the matter. TIA |
One additional comment here, after I tumbled deeper into the rabbit hole. There are these 3 distinct PRs related to this matter:
After reading comments in all three and my own rumblings in the previous comment here, I am leaning towards an idea of a solution that would look like this:
Further automation and segregation of duties might be applied here, that's just a brain dump. About this PR (and the others), I think we might be lenient and keep that working code in place, but we should block other plugins from creating new "helpers" in the same way. @vbotka @felixfontein what do you think? |
Still the same. Remove the helpers or keep them at your discretion and maintenance. Then, I'll take care of the docs. |
ping @felixfontein |
That would be preferred. But, that requires code somewhere. What you describe next:
would be my favorite solution, but right now we don't have such a tool, neither a generic one inside the repo, nor one outside. Until that happens, we should keep the helpers. Generally, about the tool: I think it's somewhat comparable to Python doctests (https://docs.python.org/3/library/doctest.html). My idea would be that the tool allows you to provide some hidden setup code as comments in the RST files, some public code in there that defines what has to be run (together with the hidden setup code), and the output (resp. some part of it). The tool would have two modes: a) update the output, b) check the output (for CI, to point out that the output needs to be updated).
CI should run the tool to make sure no updates are needed, and it should be somewhat easy to use (especially for not so experienced contributors). Note that I tried out using docutils to find code blocks to lint YAML in them in ansible/ansible-documentation#2385, maybe something similar could be used to implement this. Or maybe the tool should operate on a lower level where it simply treats RST documents as a text file and uses pattern matching for finding the appropriate places. (Downside: if you put an example for this tool inside a code block, the tool will likely not notice that it's inside a code block and still process it...) |
For the record. I don't maintain docs/docsite/helper/* anymore. |
Hi @gundalow, you asked before about how the development and tools team could help, this issue here might be the kickstart for something interesting. |
SUMMARY
Let's remove the helpers. Quoting from #8645
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION