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

render module documentation inside collections #2225

Open
evgeni opened this issue Feb 4, 2020 · 8 comments
Open

render module documentation inside collections #2225

evgeni opened this issue Feb 4, 2020 · 8 comments

Comments

@evgeni
Copy link
Contributor

evgeni commented Feb 4, 2020

Feature Request

Use Case

Currently, only README.md from a collection is rendered on Galaxy and the DOCUMENTATION from inside any module that is part of the collection is completely ignored.

As discussed with @gundalow during cfgmgmtcamp :)

Proposed Solution

Alternatives

None

Implementation

No idea

@evgeni
Copy link
Contributor Author

evgeni commented Feb 4, 2020

related, but not identical to #1937

@gundalow
Copy link
Collaborator

gundalow commented Feb 5, 2020

Thanks for raising this.
Part one, shoukd be live in the next week or two.

Part 2: Versioned docs, hasn't been discussed in detail yet.

@geerlingguy
Copy link
Contributor

@gundalow - Is there any status update on this? We're readying a new release of the Kubernetes collection and I'm realizing that one new module that's been added (k8s_exec) doesn't have any publicly-viewable documentation—right now the only way for a user to know how to use it is via reading the source or using ansible-doc on the CLI (so it's not very google-able).

@gundalow
Copy link
Collaborator

Auto-generated docs in docs.ansible.com/collection/NAMESPACE/COLLECTIONS are still a week or two away due to people being off for personal reasons.

As long as BOTMETA.yml and the nwo/scenario files are correct we will generate the docs.

@evgeni
Copy link
Contributor Author

evgeni commented Feb 16, 2020

Does that mean the feature will only be available for migrated collections (those refered to with migrated_to in BOTMETA), and not for new ones? Because that's what my original request was about :)

@geerlingguy
Copy link
Contributor

@gundalow (and @samccann, who I think I mentioned this to in passing): It sounds like the docs on docs.ansible.com will be only for what's in BOTMETA.yml (which means modules from 2.9, but not any new modules in collections), and maybe someday also docs from Automation Hub collections (supported collections).

However, it doesn't sound like there's any plan for documentation from general collections (e.g. anything new) or from new modules in existing collections (e.g. community.general et all)—so this is more critical to figure out.

Otherwise, we'll end up mired in an interminable situation like we had with roles: ansible/proposals#19 (aside: 'ansible/proposals' seems discouraging, only 11% of any issues in that repo result in any action, and there have only been two proposals that had any concrete action in the past year...).

@samccann
Copy link
Contributor

I think the docs pipeline to docs.ansible.com will pick up new modules within a migrated collection. It will reflect all modules within ACD (once it is available). But that still leaves new collections that come out between ACD versions as well as changes to collections, and collections that aren't part for ACD need a way to display the module content.

(and of course the docs pipeline isn't available yet so all migrated content currently has no way to view the docs other than go back to the 'latest' docs for now).

@bcoca
Copy link
Member

bcoca commented Mar 24, 2020

related ansible/ansible#67928 , current galaxy/ah efforts on displaying docs rely on ansible-doc --json, this adds listing plugins that are documentable, so it should help with the future features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants