projects
/
rnaseq-cwl-training.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7fd7d18
)
bin/lesson_check.py: allow 'language-*' code blocks (#532)
author
Toby Hodges <tbyhdgs@gmail.com>
Mon, 21 Dec 2020 19:21:47 +0000
(20:21 +0100)
committer
GitHub <noreply@github.com>
Mon, 21 Dec 2020 19:21:47 +0000
(13:21 -0600)
bin/lesson_check.py
patch
|
blob
|
history
diff --git
a/bin/lesson_check.py
b/bin/lesson_check.py
index 2f7e773ea07bd550b9a97aa97bcfc2ccaf762b81..0c1535758e725e50e7ef6a430153c296292f025f 100644
(file)
--- a/
bin/lesson_check.py
+++ b/
bin/lesson_check.py
@@
-76,17
+76,6
@@
KNOWN_CODEBLOCKS = {
'error',
'output',
'source',
'error',
'output',
'source',
- 'language-bash',
- 'html',
- 'language-c',
- 'language-cmake',
- 'language-cpp',
- 'language-make',
- 'language-matlab',
- 'language-python',
- 'language-r',
- 'language-shell',
- 'language-sql',
'warning'
}
'warning'
}
@@
-399,7
+388,7
@@
class CheckBase:
for node in self.find_all(self.doc, {'type': 'codeblock'}):
cls = self.get_val(node, 'attr', 'class')
for node in self.find_all(self.doc, {'type': 'codeblock'}):
cls = self.get_val(node, 'attr', 'class')
- self.reporter.check(cls in KNOWN_CODEBLOCKS,
+ self.reporter.check(cls in KNOWN_CODEBLOCKS
or cls.startswith('language-')
,
(self.filename, self.get_loc(node)),
'Unknown or missing code block type {0}',
cls)
(self.filename, self.get_loc(node)),
'Unknown or missing code block type {0}',
cls)