Skip to content

Commit f03c98f

Browse files
Updated files with 'repo_helper'. (#21)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 8797015 commit f03c98f

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ replace = : str = "{new_version}"
1717
[bumpversion:file:doc-source/index.rst]
1818

1919
[bumpversion:file:pyproject.toml]
20+
search = version = "{current_version}"
21+
replace = version = "{new_version}"

.pre-commit-config.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
exclude: ^$
55

66
repos:
7+
- repo: https://github.com/repo-helper/pyproject-parser
8+
rev: v0.2.3
9+
hooks:
10+
- id: reformat-pyproject
11+
712
- repo: https://github.com/pre-commit/pre-commit-hooks
813
rev: v3.4.0
914
hooks:
@@ -68,7 +73,7 @@ repos:
6873
- id: forbid-crlf
6974

7075
- repo: https://github.com/repo-helper/formate
71-
rev: v0.4.4
76+
rev: v0.4.5
7277
hooks:
7378
- id: formate
7479
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$

doc-source/conf.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,16 @@
6666
}
6767

6868
latex_elements = {
69-
"fncychap": "\\usepackage[Bjarne]{fncychap}\n\\ChNameAsIs\n\\ChTitleAsIs\n",
69+
"printindex": "\\begin{flushleft}\n\\printindex\n\\end{flushleft}",
70+
"tableofcontents": "\\pdfbookmark[0]{\\contentsname}{toc}\\sphinxtableofcontents",
7071
}
7172

73+
74+
def setup(app):
75+
# 3rd party
76+
from sphinx_toolbox.latex import better_header_layout
77+
78+
app.connect("config-inited", lambda app, config: better_header_layout(config))
79+
80+
7281
nitpicky = True

doc-source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tox-recreate-hook
55
.. start short_desc
66
77
.. documentation-summary::
8+
:meta:
89

910
.. end short_desc
1011

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ extensions = [
5858
"sphinx_toolbox.more_autosummary",
5959
"sphinx_toolbox.documentation_summary",
6060
"sphinx_toolbox.tweaks.param_dash",
61+
"sphinx_toolbox.tweaks.latex_layout",
6162
"sphinx_toolbox.tweaks.latex_toc",
6263
"sphinx.ext.intersphinx",
6364
"sphinx.ext.mathjax",
@@ -92,7 +93,6 @@ toctree_plus_types = [
9293
"exception",
9394
"flag",
9495
"function",
95-
"method",
9696
"namedtuple",
9797
"protocol",
9898
"role",

0 commit comments

Comments
 (0)