Skip to content

Commit

Permalink
Fix the CI
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <[email protected]>
  • Loading branch information
gaborbernat committed Feb 25, 2022
1 parent 47cf25e commit a03c518
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from docutils import nodes
from sphinx import addnodes
from sphinx.util import logging

import tox

Expand All @@ -25,8 +26,8 @@ def generate_draft_news():
issue = f"{home}/issue"
fragments_path = ROOT_SRC_TREE_DIR / "docs" / "changelog"
for pattern, replacement in (
(r"[^`]@([^,\s]+)", fr"`@\1 <{home}/\1>`_"),
(r"[^`]#([\d]+)", fr"`#pr\1 <{issue}/\1>`_"),
(r"[^`]@([^,\s]+)", rf"`@\1 <{home}/\1>`_"),
(r"[^`]#([\d]+)", rf"`#pr\1 <{issue}/\1>`_"),
):
for path in fragments_path.glob("*.rst"):
path.write_text(re.sub(pattern, replacement, path.read_text()))
Expand Down Expand Up @@ -136,3 +137,5 @@ def parse_node(env, text, node):
nitpick_ignore = [
("py:class", "tox.interpreters.InterpreterInfo"),
]
# workaround for https://github.com/sphinx-doc/sphinx/issues/10112
logging.getLogger("sphinx.ext.extlinks").setLevel(40)

0 comments on commit a03c518

Please sign in to comment.