Skip to content

Commit

Permalink
Also ignore official roles.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Oct 4, 2022
1 parent 6fce1f2 commit b20c44f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/antsibull_docs/lint_plugin_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from antsibull_core.compat import asyncio_run
from antsibull_core.venv import FakeVenvRunner

from sphinx_antsibull_ext import roles as antsibull_roles

from .lint_helpers import (
load_collection_info,
)
Expand Down Expand Up @@ -161,6 +163,7 @@ def _lint_collection_plugin_docs(collections_dir: str, collection_name: str,
rst_results = check_rst_content(
rst_content, filename=path,
ignore_directives=['rst-class'],
ignore_roles=list(antsibull_roles.ROLES),
)
result.extend([(path, result[0], result[1], result[2]) for result in rst_results])
return result
Expand Down

0 comments on commit b20c44f

Please sign in to comment.