Do extra docs validation. Explicitly disallow semantic markup in docs.

This commit is contained in:
Felix Fontein 2023-04-16 14:05:26 +02:00
parent 5d61cb2b8d
commit 4a12806a75

View File

@ -15,7 +15,7 @@ def main():
"""Main entry point.""" """Main entry point."""
if not os.path.isdir(os.path.join('docs', 'docsite')): if not os.path.isdir(os.path.join('docs', 'docsite')):
return return
p = subprocess.run(['antsibull-docs', 'lint-collection-docs', '.'], check=False) p = subprocess.run(['antsibull-docs', 'lint-collection-docs', '--plugin-docs', '--disallow-semantic-markup', '--skip-rstcheck', '.'], check=False)
if p.returncode not in (0, 3): if p.returncode not in (0, 3):
print('{0}:0:0: unexpected return code {1}'.format(sys.argv[0], p.returncode)) print('{0}:0:0: unexpected return code {1}'.format(sys.argv[0], p.returncode))