Skip to content

Commit 8ba299f

Browse files
authored
Merge pull request #4162 from branfosj/auto
fix several linter issues for auto-generated MarkDown
2 parents 694d7bb + 7add3ab commit 8ba299f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

easybuild/tools/docs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def avail_cfgfile_constants_md(go_cfg_constants):
164164
for section in go_cfg_constants:
165165
if section != go_cfg_constants['DEFAULT']:
166166
doc.extend([
167-
"### Only in '%s' section:" % section,
167+
"## Only in '%s' section:" % section,
168168
'',
169169
])
170170
table_titles = ["Constant name", "Constant help", "Constant value"]
@@ -565,8 +565,8 @@ def avail_easyconfig_templates_md():
565565
doc.extend(md_title_and_table(title, table_titles, table_values, title_level=2))
566566
doc.append('')
567567

568-
title = 'Template names/values as set in easyconfig'
569-
doc.extend([title, '-' * len(title), ''])
568+
title = '## Template names/values as set in easyconfig'
569+
doc.extend([title, ''])
570570
for name in TEMPLATE_NAMES_CONFIG:
571571
doc.append('* ``%%(%s)s``' % name)
572572
doc.append('')
@@ -812,7 +812,7 @@ def list_software_md(software, detailed=True):
812812
letter = key[0].lower()
813813
lines.extend([
814814
'',
815-
"### %s" % letter.upper(),
815+
"## %s" % letter.upper(),
816816
'',
817817
])
818818

@@ -1326,7 +1326,7 @@ def gen_easyblock_doc_section_md(eb_class, path_to_examples, common_params, doc_
13261326
for base in eb_class.__bases__:
13271327
bname = base.__name__
13281328
if base in all_eb_classes:
1329-
bases.append("<a href='#" + bname.lower() + "'>``" + bname + "``</a>")
1329+
bases.append("[``" + bname + "``](#" + bname.lower() + ")")
13301330
else:
13311331
bases.append('``' + bname + '``')
13321332

test/framework/docs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
[g](#g)
367367
368368
369-
### G
369+
## G
370370
371371
* GCC
372372
* gzip"""
@@ -378,7 +378,7 @@
378378
[g](#g)
379379
380380
381-
### G
381+
## G
382382
383383
384384
[GCC](#gcc) - [gzip](#gzip)
@@ -714,7 +714,7 @@ def test_avail_cfgfile_constants(self):
714714

715715
md_patterns = [
716716
r"^# Constants available \(only\) in configuration files",
717-
r"^### Only in 'DEFAULT' section:",
717+
r"^## Only in 'DEFAULT' section:",
718718
r"^``HOME``\s*\|Current user's home directory, expanded '~'\s*\|``%s``$" % os.getenv('HOME'),
719719
r"^``USER``\s*\|Current username, translated uid from password file\s*\|``%s``" % os.getenv('USER'),
720720
]

0 commit comments

Comments
 (0)