From 4ab05d51eb2d576ae1f9d0722efe547190f19f0f Mon Sep 17 00:00:00 2001 From: Michael Gielda Date: Sat, 12 Apr 2014 00:58:53 +0200 Subject: Added HTML theme, closes #4 --- doc/source/antmicro-sphinx/antmicro.sty | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/source/antmicro-sphinx/antmicro.sty (limited to 'doc/source/antmicro-sphinx/antmicro.sty') diff --git a/doc/source/antmicro-sphinx/antmicro.sty b/doc/source/antmicro-sphinx/antmicro.sty new file mode 100644 index 0000000..114159e --- /dev/null +++ b/doc/source/antmicro-sphinx/antmicro.sty @@ -0,0 +1,32 @@ +\usepackage{xcolor} + +\definecolor{AMaubergine}{rgb}{0.2,0.18,0.22} +\definecolor{AMorange}{rgb}{0.84,0.32,0.28} + +% Redefine these colors to your liking in the preamble. +\definecolor{TitleColor}{named}{AMorange} +\definecolor{InnerLinkColor}{named}{AMorange} +\definecolor{OuterLinkColor}{named}{AMorange} +% Redefine these colors to something not white if you want to have colored +% background and border for code examples. +%\definecolor{VerbatimColor}{rgb}{0.92,0.92,0.92}%{0.99,0.77,0.65} +%\definecolor{VerbatimBorderColor}{named}{AMaubergine} + +\makeatletter + \fancypagestyle{normal}{ + \fancyhf{} + \headheight 40pt + \setlength{\topmargin}{-20mm} + \fancyfoot[LE,RO]{{\py@HeaderFamily\thepage}} + \fancyfoot[LO,RE]{{\py@HeaderFamily \@title}} + \fancyhead[LO]{{\py@HeaderFamily\nouppercase{\rightmark}}} + \fancyhead[RE]{{\py@HeaderFamily\nouppercase{\leftmark}}} + \fancyhead[LE,RO]{{\includegraphics[height=25pt]{logo-400.png}}} + \renewcommand{\headrulewidth}{0.4pt} + \renewcommand{\footrulewidth}{0.4pt} + } +\makeatother + +\PassOptionsToClass{openany}{\sphinxdocclass} + +\renewcommand{\releasename}{} -- cgit v1.2.3