autoprogram
autoprogram copied to clipboard
New option :label:
Please add a new option :label:, that adds a labels to all the created reST output:
if is_program:
yield '.. program:: ' + title
yield ''
+ if 'label' in self.options:
+ yield ''
+ yield '.. _%s:' % (self.options.get('label') + title).replace(" ", "-")
yield title
yield ('!' if is_subgroup else '?') * len(title)
yield ''
@langston-barrett any thoughts on this change?
@Paebbels Seems fine to me, please re-open your PR whenever you're ready to add it.
OK.
@langston-barrett I have now some time and I would like to re-open the PR.
While checking what was changed in the last year/months, I still see a lot of inefficient and bad Python code.
If you like, you can get a full code review and then decide what to enhanced and when to do it.
@Paebbels Feel free to open PRs or open issues with any suggested improvements or new features!