add support for using --output-format=md (MarkDown)#4117
add support for using --output-format=md (MarkDown)#4117branfosj merged 24 commits intoeasybuilders:developfrom
Conversation
…and '--avail-easyconfig-constants --output-format md'
…blocks triggering failing docs tests
|
@boegel is this a blocker for 4.7.0? |
To me, yes, I really want this finished and merged before releasing EasyBuild v4.7.0... I'll have time to finish it this week (working on it right now). |
…e control over title level in md_title_and_table
…with gen_easyblocks_overview_md
…locks_overview_* functions
branfosj
left a comment
There was a problem hiding this comment.
I think this is the right syntax to get rid of most of the problems in the https://github.com/easybuilders/easybuild-docs/actions/runs/3836711232/jobs/6531176502 without changing the internal links.
| '', | ||
| ' '.join(software[key][-1]['description'].split('\n')).lstrip(' '), | ||
| '', | ||
| "*homepage*: %s" % software[key][-1]['homepage'], |
There was a problem hiding this comment.
| "*homepage*: %s" % software[key][-1]['homepage'], | |
| "*homepage*: <%s>" % software[key][-1]['homepage'], |
|
|
||
| lines.extend([ | ||
| '', | ||
| '<a anchor="%s"/>' % key.lower(), |
There was a problem hiding this comment.
| '<a anchor="%s"/>' % key.lower(), |
| letter = key[0].lower() | ||
| lines.extend([ | ||
| '', | ||
| '<a anchor="%s"/>' % letter, |
There was a problem hiding this comment.
| '<a anchor="%s"/>' % letter, |
| lines.extend([ | ||
| '', | ||
| '<a anchor="%s"/>' % letter, | ||
| "### *%s*" % letter.upper(), |
There was a problem hiding this comment.
| "### *%s*" % letter.upper(), | |
| "### %s" % letter.upper(), |
|
|
||
| # links to per-letter tables | ||
| key_letters = nub(sorted(k[0].lower() for k in software.keys())) | ||
| letter_links = ' - '.join(['<a href="#' + x + '">' + x + '</a>' for x in ascii_lowercase if x in key_letters]) |
There was a problem hiding this comment.
| letter_links = ' - '.join(['<a href="#' + x + '">' + x + '</a>' for x in ascii_lowercase if x in key_letters]) | |
| letter_links = ' - '.join(['[' + x + '](#' + x + ')' for x in ascii_lowercase if x in key_letters]) |
| # quick links per software package | ||
| lines.extend([ | ||
| '', | ||
| ' - '.join('<a href="#%s">%s</a>' % (k.lower(), k) for k in sorted_keys if k[0].lower() == letter), |
There was a problem hiding this comment.
| ' - '.join('<a href="#%s">%s</a>' % (k.lower(), k) for k in sorted_keys if k[0].lower() == letter), | |
| ' - '.join('[%s](#%s)' % (k, k.lower()) for k in sorted_keys if k[0].lower() == letter), |
branfosj
left a comment
There was a problem hiding this comment.
We'll put the suggested changes into a future PR
|
This seemingly broke the test suite with the type "developement" |
eb --avail-cfgfile-constants --output-format mdeb --avail-easyconfig-constants --output-format mdeb --avail-easyconfig-licenses --output-format mdeb --avail-easyconfig-params --output-format mdeb --avail-easyconfig-templates --output-format mdeb --avail-toolchain-opts ... --output-format mdeb --list-easyblocks --output-format mdeb --list-software --output-format mdeb --list-toolchains --output-format mdeb --help-mdgen_easyblocks_overview_md