diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-30 17:21:27 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-30 17:21:27 +0000 |
| commit | 793425accac28fd0bea3e406404b9b351556fddb (patch) | |
| tree | 1dac70abbc9dea24b2b97d9bad0f7aa5b1f9c2a3 /docs/conf.py | |
| parent | 5d83d181a110c3a8dbb293711e99ae6ba13f0d3f (diff) | |
| download | pyramid-793425accac28fd0bea3e406404b9b351556fddb.tar.gz pyramid-793425accac28fd0bea3e406404b9b351556fddb.tar.bz2 pyramid-793425accac28fd0bea3e406404b9b351556fddb.zip | |
Better note/warning distinctions.
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 33 |
1 files changed, 33 insertions, 0 deletions
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 """ |
