Split schema and project documentation into focused contracts
This commit is contained in:
1 parent
b0e6402d66
commit
d0d7233700
21 files changed
+405
-327
No files matched your search
@@ -11,7 +11,10 @@ links = {}
|
||||
errors = []
|
||||
|
||||
for document in documents:
|
||||
text = re.sub(r'```.*?```', '', document.read_text(), flags=re.S)
|
||||
source = document.read_text()
|
||||
if len(re.findall(r'^```', source, flags=re.M)) % 2:
|
||||
errors.append(f'{document.relative_to(root)}: unclosed code block')
|
||||
text = re.sub(r'```.*?```', '', source, flags=re.S)
|
||||
targets = []
|
||||
for reference in re.findall(r'\[[^\]]*\]\(([^)]+)\)', text):
|
||||
if re.match(r'[a-zA-Z]+:|#', reference):
|
||||
|
||||
Reference in new issue
Block a user