autoprogram icon indicating copy to clipboard operation
autoprogram copied to clipboard

New option :label:

Open Paebbels opened this issue 5 years ago • 5 comments

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 ''

Paebbels avatar Jan 09 '20 17:01 Paebbels

@langston-barrett any thoughts on this change?

Paebbels avatar Jun 11 '21 20:06 Paebbels

@Paebbels Seems fine to me, please re-open your PR whenever you're ready to add it.

langston-barrett avatar Aug 30 '22 13:08 langston-barrett

OK.

Paebbels avatar Aug 30 '22 17:08 Paebbels

@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 avatar Mar 08 '23 16:03 Paebbels

@Paebbels Feel free to open PRs or open issues with any suggested improvements or new features!

langston-barrett avatar Mar 08 '23 21:03 langston-barrett