aboutsummaryrefslogtreecommitdiff
path: root/docs/source/conf.py
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-16 09:41:53 +0200
committerGitHub <noreply@github.com>2022-09-16 09:41:53 +0200
commit0e3a0ec7d485a81b7ca38997e93bea69ad95d79a (patch)
tree9a7e58d1bccf9346f0fe9c79de5480cc67f6dabf /docs/source/conf.py
parenta8a56b188ca0c929dbf409b41dfef4f50e19fb30 (diff)
parente2573b734efa17c476afac54a98c50aac62cb5c6 (diff)
downloadpodman-0e3a0ec7d485a81b7ca38997e93bea69ad95d79a.tar.gz
podman-0e3a0ec7d485a81b7ca38997e93bea69ad95d79a.tar.bz2
podman-0e3a0ec7d485a81b7ca38997e93bea69ad95d79a.zip
Merge pull request #15825 from edsantiago/fix_readthedocs
[CI:DOCS] Fix broken titles on readthedocs
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index b58bb3f46..345e289e1 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -86,12 +86,12 @@ def convert_markdown_title(app, docname, source):
if docpath.endswith(".md"):
# Convert pandoc title line into eval_rst block for myst_parser
#
- # Remove the ending "(1)" to avoid it from being displayed
+ # Remove the ending " 1" (section) to avoid it from being displayed
# in the web tab. Often such a text indicates that
# a web page got an update. For instance GitHub issues
# shows the number of new comments that have been written
# after the user's last visit.
- source[0] = re.sub(r"^% (.*)(\(\d\))", r"```{title} \g<1>\n```", source[0])
+ source[0] = re.sub(r"^% (.*)\s(\d)", r"```{title} \g<1>\n```", source[0])
def setup(app):
app.connect("source-read", convert_markdown_title)