summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/preamble.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/preamble.inc b/doc/preamble.inc
index 58665c52f..d9e528ef4 100644
--- a/doc/preamble.inc
+++ b/doc/preamble.inc
@@ -46,7 +46,7 @@
\renewcommand{\footrulewidth}{0.4pt}
}
-\renewenvironment{notice}[2]{
+\newenvironment{ptxdistwarning}[2]{
\def\py@noticetype{#1}
\csname py@noticestart@#1\endcsname
\begin{minipage}[c]{\textwidth}
@@ -70,6 +70,15 @@
\end{minipage}
\csname py@noticeend@\py@noticetype\endcsname }
+% compatibility to old sphinx versions
+\ifdefined\sphinxadmonition
+\let\sphinxadmonition\ptxdistwarning
+\let\endsphinxadmonition\endptxdistwarning
+\else
+\let\notice\ptxdistwarning
+\let\endnotice\endptxdistwarning
+\fi
+
\definecolor{VerbatimColor}{gray}{0.95}
\definecolor{VerbatimBorderColor}{gray}{0.75}