From 793425accac28fd0bea3e406404b9b351556fddb Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 30 Dec 2009 17:21:27 +0000 Subject: Better note/warning distinctions. --- docs/conf.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 98452669f..58b985869 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -242,6 +242,39 @@ _PREAMBLE = r""" } \makeatother +% Redefine these colors to your liking in the preamble. +\definecolor{TitleColor}{rgb}{0,0,0} +\definecolor{InnerLinkColor}{rgb}{0.208,0.374,0.486} +\definecolor{OuterLinkColor}{rgb}{0.216,0.439,0.388} +% Redefine these colors to something not white if you want to have colored +% background and border for code examples. +\definecolor{VerbatimColor}{rgb}{1,1,1} +\definecolor{VerbatimBorderColor}{rgb}{1,1,1} + +\makeatletter +% Notices / Admonitions +% +\newcommand{\py@veryheavybox}{ + \setlength{\fboxrule}{2pt} + \setlength{\fboxsep}{7pt} + \setlength{\py@noticelength}{\linewidth} + \addtolength{\py@noticelength}{-2\fboxsep} + \addtolength{\py@noticelength}{-2\fboxrule} + \setlength{\shadowsize}{3pt} + \Sbox + \minipage{\py@noticelength} +} +\newcommand{\py@endveryheavybox}{ + \endminipage + \endSbox + \fbox{\TheSbox} +} +\renewcommand{\py@noticestart@warning}{\py@veryheavybox} +\renewcommand{\py@noticeend@warning}{\py@endveryheavybox} +\renewcommand{\py@noticestart@note}{\py@heavybox} +\renewcommand{\py@noticeend@note}{\py@endheavybox} +\makeatother + \sloppy """ -- cgit v1.2.3