Skip to content

Commit bebcbb2

Browse files
authored
Merge pull request #1052 from sphinx-contrib/cleanup-documentation
Cleanup documentation
2 parents 008004b + 97e73a4 commit bebcbb2

File tree

11 files changed

+194
-232
lines changed

11 files changed

+194
-232
lines changed

doc/advanced-extensions.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ this node with Sphinx Confluence Builder:
3838
def depart_custom_node(self, node):
3939
self.body.append(self.context.pop())
4040
41+
.. raw:: latex
42+
43+
\newpage
44+
4145
Confluence Storage Format Translator Helpers
4246
--------------------------------------------
4347

doc/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@
8181
# -- Options for Latex output --------------------------------------------
8282

8383
latex_elements = {
84+
# explicit verbatim spacing (looks better?)
85+
'sphinxsetup': r'''
86+
verbatimsep=0.75em,
87+
''',
8488
# remove empty pages
8589
'extraclassoptions': 'openany,oneside',
8690
# custom title
@@ -104,11 +108,18 @@
104108
# disable hyphenatation
105109
# disable justified text
106110
# remove italics from links
111+
# new page for each section
112+
# minimize spacing between admonitions
107113
'preamble': r'''
108114
\usepackage{datetime2}
109115
\usepackage[none]{hyphenat}
110116
\usepackage[document]{ragged2e}
111117
\def\sphinxcrossref#1{#1}
118+
\newcommand{\sectionbreak}{\newpage}
119+
\NewDocumentEnvironment{ScbShrinkAdmonition}{O{}}
120+
{\vspace{-.6\baselineskip}}{\vspace{-.6\baselineskip}}
121+
\BeforeBeginEnvironment{sphinxadmonition}{\begin{ScbShrinkAdmonition}}
122+
\AfterEndEnvironment{sphinxadmonition}{\end{ScbShrinkAdmonition}}
112123
''',
113124
}
114125

0 commit comments

Comments
 (0)