Skip to content

Commit 890d730

Browse files
committed
Review comments
1 parent 58743b3 commit 890d730

3 files changed

Lines changed: 16 additions & 15 deletions

File tree

doc/conf.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@
110110
# This patterns also effect to html_static_path and html_extra_path
111111
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "venv", "landing-page"]
112112

113-
# The name of the Pygments (syntax highlighting) style to use.
114-
pygments_style = "dfetch"
115113

116114
# If true, `todo` and `todoList` produce output, else they produce nothing.
117115
todo_include_todos = False
@@ -277,6 +275,16 @@
277275
]
278276

279277

278+
def _set_latex_pygments_style(app):
279+
if app.builder.name.startswith("latex"):
280+
app.config.pygments_style = "dfetch"
281+
282+
283+
def setup(app):
284+
"""Apply custom Pygments style only for LaTeX builds."""
285+
app.connect("builder-inited", _set_latex_pygments_style)
286+
287+
280288
# -- Options for manual page output ---------------------------------------
281289

282290
# One entry per manual page. List of tuples

doc/dfetch_preamble.inc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@
6969
\usepackage{etoolbox}
7070
\setlength{\arrayrulewidth}{0.4pt}
7171
\arrayrulecolor{dfborder}
72-
\renewcommand{\vline}{} % suppress all vertical column rules
7372
\renewcommand{\arraystretch}{1.35} % generous row height (website 0.5rem top/bottom)
7473
\setlength{\tabcolsep}{8pt} % horizontal cell padding (website 0.875rem)
75-
\AtBeginEnvironment{tabulary}{\small}
76-
\AtBeginEnvironment{longtable}{\small}
74+
\AtBeginEnvironment{tabulary}{\small\renewcommand{\vline}{}}
75+
\AtBeginEnvironment{longtable}{\small\renewcommand{\vline}{}}
7776
\providecommand{\sphinxstyletheadfamily}{\sffamily}
7877
\renewcommand{\sphinxstyletheadfamily}{\small\bfseries}
7978

doc/howto/patching.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,20 +134,14 @@ You can verify the formatted patch applies cleanly before submitting:
134134
135135
$ git apply --check formatted-some-project.patch
136136
137+
.. scenario-include:: ../features/format-patch-in-git.feature
138+
137139
.. tab:: SVN
138140

139141
.. code-block:: console
140142
141143
$ svn patch formatted-some-project.patch
142144
143-
.. asciinema:: ../asciicasts/format-patch.cast
144-
145-
.. tabs::
146-
147-
.. tab:: Git
148-
149-
.. scenario-include:: ../features/format-patch-in-git.feature
150-
151-
.. tab:: SVN
152-
153145
.. scenario-include:: ../features/format-patch-in-svn.feature
146+
147+
.. asciinema:: ../asciicasts/format-patch.cast

0 commit comments

Comments
 (0)