mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-07-24 04:45:04 +02:00
* Do extra docs validation. Explicitly disallow semantic markup in docs.
* Forgot to add new requirement.
* Improve test.
* TEMP - make CI fail.
* Remove unnecessary import.
* Make sure ANSIBLE_COLLECTIONS_PATH is set.
* Revert "TEMP - make CI fail."
This reverts commit 445c56e7e1bcd844be59f1df9df00a9c8334ff55.
* Make sure sanity tests from older Ansible versions don't complain.
(cherry picked from commit dd1e48c388
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
8d4ba59f17
commit
3ab4c8d137
2 changed files with 12 additions and 4 deletions
|
@ -12,9 +12,14 @@ import subprocess
|
|||
|
||||
def main():
|
||||
"""Main entry point."""
|
||||
if not os.path.isdir(os.path.join('docs', 'docsite')):
|
||||
return
|
||||
p = subprocess.run(['antsibull-docs', 'lint-collection-docs', '.'], check=False)
|
||||
env = os.environ.copy()
|
||||
suffix = ':{env}'.format(env=env["ANSIBLE_COLLECTIONS_PATH"]) if 'ANSIBLE_COLLECTIONS_PATH' in env else ''
|
||||
env['ANSIBLE_COLLECTIONS_PATH'] = '{root}{suffix}'.format(root=os.path.dirname(os.path.dirname(os.path.dirname(os.getcwd()))), suffix=suffix)
|
||||
p = subprocess.run(
|
||||
['antsibull-docs', 'lint-collection-docs', '--plugin-docs', '--disallow-semantic-markup', '--skip-rstcheck', '.'],
|
||||
env=env,
|
||||
check=False,
|
||||
)
|
||||
if p.returncode not in (0, 3):
|
||||
print('{0}:0:0: unexpected return code {1}'.format(sys.argv[0], p.returncode))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue