* [ptxdist] [PATCH 1/2] doc: it's an open project, thus use open fonts
@ 2019-03-10 14:17 Enrico Jorns
2019-03-10 14:17 ` [ptxdist] [PATCH 2/2] doc: 'notice' environment was replaced by 'sphinxadmonition' Enrico Jorns
0 siblings, 1 reply; 2+ messages in thread
From: Enrico Jorns @ 2019-03-10 14:17 UTC (permalink / raw)
To: ptxdist; +Cc: Enrico Joerns
From: Enrico Joerns <ejo@pengutronix.de>
This replaces LT Project font by Open Sans.
Signed-off-by: Enrico Joerns <ejo@pengutronix.de>
---
doc/preamble.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/preamble.inc b/doc/preamble.inc
index 43041ee01..58665c52f 100644
--- a/doc/preamble.inc
+++ b/doc/preamble.inc
@@ -4,8 +4,8 @@
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
\IfFileExists{iffont.sty}{
\usepackage{iffont}
- \settofirstfound{\mainfont}{LTProjekt, DejaVu Sans, Liberation Sans}
- \settofirstfound{\boldfont}{LTProjekt Heavy, DejaVu Sans Bold, Liberation Sans Bold}
+ \settofirstfound{\mainfont}{Open Sans, DejaVu Sans, Liberation Sans}
+ \settofirstfound{\boldfont}{Open Sans Bold, DejaVu Sans Bold, Liberation Sans Bold}
\setmainfont[BoldFont=\boldfont]{\mainfont}
\setsansfont[BoldFont=\boldfont]{\mainfont}
\settofirstfound{\monofont}{Inconsolata, DejaVu Sans Mono, Liberation Sans Mono}
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ptxdist] [PATCH 2/2] doc: 'notice' environment was replaced by 'sphinxadmonition'
2019-03-10 14:17 [ptxdist] [PATCH 1/2] doc: it's an open project, thus use open fonts Enrico Jorns
@ 2019-03-10 14:17 ` Enrico Jorns
0 siblings, 0 replies; 2+ messages in thread
From: Enrico Jorns @ 2019-03-10 14:17 UTC (permalink / raw)
To: ptxdist; +Cc: Enrico Joerns
From: Enrico Joerns <ejo@pengutronix.de>
Spinx deprecated 'notice' environment in 1.6b1 and finally removed in
1.7.0b1.
Anyway, environment renewal to show warning symbol for note rst
directive was not working in between.
This patch both fixes warning symbol in sphinx versions between 1.6b1
and 1.7.0b1 and tex generation error after version 1.7.0b1:
| ! LaTeX Error: Environment notice undefined.
Instead of renewing a possible non-existing environment, we create a
new one and override sphinxadmonition environment only if it existed
before, or notice environment if not.
Signed-off-by: Enrico Joerns <ejo@pengutronix.de>
---
doc/preamble.inc | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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}
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-03-10 14:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-10 14:17 [ptxdist] [PATCH 1/2] doc: it's an open project, thus use open fonts Enrico Jorns
2019-03-10 14:17 ` [ptxdist] [PATCH 2/2] doc: 'notice' environment was replaced by 'sphinxadmonition' Enrico Jorns
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox