Skip to content

Commit 7704bf1

Browse files
committed
Ensure the project name for Sphinx doesn't have underscores, as they break the PDF rendering.
1 parent 3ebe5ca commit 7704bf1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

repo_helper/templates/conf._py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ rst_prolog = f""".. |pkgname| replace:: {{ modname }}
2626
"""
2727

2828
author = "{{ rtfd_author }}"
29-
project = "{{ modname }}"
29+
project = "{{ modname }}".replace("_", "-")
3030
slug = re.sub(r'\W+', '-', project.lower())
3131
release = version = __version__
3232
copyright = "{{ copyright_years }} {{ author }}" # pylint: disable=redefined-builtin

tests/test_files/test_docs_/test_make_conf_alabaster_._py_

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rst_prolog = f""".. |pkgname| replace:: hello-world
2323
"""
2424

2525
author = "Joe Bloggs"
26-
project = "hello-world"
26+
project = "hello-world".replace('_', '-')
2727
slug = re.sub(r'\W+', '-', project.lower())
2828
release = version = __version__
2929
copyright = "2020-2021 E. Xample" # pylint: disable=redefined-builtin

tests/test_files/test_docs_/test_make_conf_domdf_sphinx_theme_._py_

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rst_prolog = f""".. |pkgname| replace:: hello-world
2323
"""
2424

2525
author = "Joe Bloggs"
26-
project = "hello-world"
26+
project = "hello-world".replace('_', '-')
2727
slug = re.sub(r'\W+', '-', project.lower())
2828
release = version = __version__
2929
copyright = "2020-2021 E. Xample" # pylint: disable=redefined-builtin

tests/test_files/test_docs_/test_make_conf_furo_._py_

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rst_prolog = f""".. |pkgname| replace:: hello-world
2323
"""
2424

2525
author = "Joe Bloggs"
26-
project = "hello-world"
26+
project = "hello-world".replace('_', '-')
2727
slug = re.sub(r'\W+', '-', project.lower())
2828
release = version = __version__
2929
copyright = "2020-2021 E. Xample" # pylint: disable=redefined-builtin

tests/test_files/test_docs_/test_make_conf_sphinx_rtd_theme_._py_

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rst_prolog = f""".. |pkgname| replace:: hello-world
2323
"""
2424

2525
author = "Joe Bloggs"
26-
project = "hello-world"
26+
project = "hello-world".replace('_', '-')
2727
slug = re.sub(r'\W+', '-', project.lower())
2828
release = version = __version__
2929
copyright = "2020-2021 E. Xample" # pylint: disable=redefined-builtin

0 commit comments

Comments
 (0)