Skip to content

Commit

Permalink
Configure Sphinx to disable justification for the index.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed May 12, 2021
1 parent 303024f commit 19521b2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
5 changes: 4 additions & 1 deletion repo_helper/templates/conf._py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ autodoc_default_options = {
'exclude-members': ','.join(config["autodoc_exclude_members"]),
}

latex_elements = {}
latex_elements = {
"printindex": "\\begin{flushleft}\n\\printindex\n\\end{flushleft}",
}


def setup(app):
from sphinx_toolbox.latex import better_header_layout
Expand Down
4 changes: 3 additions & 1 deletion tests/test_files/test_docs_/test_make_conf_alabaster_._py_
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ autodoc_default_options = {
"exclude-members": ','.join(config["autodoc_exclude_members"]),
}

latex_elements = {}
latex_elements = {
"printindex": "\\begin{flushleft}\n\\printindex\n\\end{flushleft}",
}


def setup(app):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ autodoc_default_options = {
"exclude-members": ','.join(config["autodoc_exclude_members"]),
}

latex_elements = {}
latex_elements = {
"printindex": "\\begin{flushleft}\n\\printindex\n\\end{flushleft}",
}


def setup(app):
Expand Down
4 changes: 3 additions & 1 deletion tests/test_files/test_docs_/test_make_conf_furo_._py_
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ autodoc_default_options = {
"exclude-members": ','.join(config["autodoc_exclude_members"]),
}

latex_elements = {}
latex_elements = {
"printindex": "\\begin{flushleft}\n\\printindex\n\\end{flushleft}",
}


def setup(app):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ autodoc_default_options = {
"exclude-members": ','.join(config["autodoc_exclude_members"]),
}

latex_elements = {}
latex_elements = {
"printindex": "\\begin{flushleft}\n\\printindex\n\\end{flushleft}",
}


def setup(app):
Expand Down

0 comments on commit 19521b2

Please sign in to comment.