-
Notifications
You must be signed in to change notification settings - Fork 31
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
Deprecation by date #62
Deprecation by date #62
Conversation
My first instinct on seeing this was that it belongs in the schema because it is data manipulation, not just display. It's going to be desirable for Galaxy and other things that need to display the documentation to have access to this as well. But thinking about how it would fit into the schema, i think it goes a little beyond what the schema is responsible for. It's creating data rather than normalizing existing data. So i think this belongs here: https://github.com/ansible-community/antsibull/blob/master/antsibull/cli/doc_commands/stable.py#L256 There needs to be a function which calculates additional data from what was actually pulled out of the documentation fields. For instance, full_path for outputting the suboptions correctly will end up in that function. I think this is similar and belongs in that function as well |
@awcrosby I think this new function that I mentioned to @felixfontein above is what you were wanting as well -- a place where we can have common code that converts or adds to the raw documentation data structures so all of us generating output from it have an easier time. Maybe you'll want to hit me up on slack (or jump on irc, #ansible-docs) to talk more about whether that can work for you too? |
45d6e72
to
beb10fe
Compare
I completely restarted this branch from scratch. It now contains the schema definitions currently in use in Ansible for deprecation by date, and for (auto-)adding collection names. |
beb10fe
to
df9da48
Compare
…ow option deprecation for module options. (These are deprecated by argument spec.)
I've split up This makes the schema be compatible to what Ansible's code and validate-module's schema currently require resp. enforce. The top-level name -> option name conversions in |
|
|
Looks good, thanks! |
@abadger also thanks a lot for reviewing this one! |
No description provided.