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

add document source for each group #712

Merged
merged 2 commits into from
Aug 18, 2016
Merged

add document source for each group #712

merged 2 commits into from
Aug 18, 2016

Conversation

erich-wang
Copy link
Member

add field docsource to support document contribution from community.
CI builder server will map the docsource to http path in this repo.

yield ''
yield '{}:summary: {}'.format(INDENT, help_file.short_summary)
yield '{}:description: {}'.format(INDENT, help_file.long_summary)
yield '{}:docsource: {}'.format(INDENT, help_file.doc_source)
Copy link
Contributor

@BurtBiel BurtBiel Aug 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like we would need to specify docsource in every help file. I'd much rather have a simple check that switches on the first param in the help file path to determine the help file path. Example (untested):
switches = {
'ad': '<path to ad _help.py',
'login': '',
etc.
}
docsource = switches[help_file.command.split()[0]] #Resolved

Copy link
Member Author

@erich-wang erich-wang Aug 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I add dedicated dictionary to store the map between group name and the help file path since they are not exactly one-one map, e.g. 'resource' and 'tag' are mapped to same help file under resource module.
The only shortcoming is we must maintain the dictionary if moving the help files. #Closed

@BurtBiel BurtBiel self-assigned this Aug 17, 2016
@BurtBiel
Copy link
Contributor

:shipit:

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

Successfully merging this pull request may close these issues.

4 participants