summaryrefslogtreecommitdiff
path: root/doc/source/antmicro-sphinx/antmicro.sty
diff options
context:
space:
mode:
authorMichael Gielda <mgielda@antmicro.com>2014-04-12 00:58:53 +0200
committerMichael Gielda <mgielda@antmicro.com>2014-04-12 00:58:53 +0200
commit4ab05d51eb2d576ae1f9d0722efe547190f19f0f (patch)
tree335b93e80aa4744bf2c9147afab620b47e0c2c3c /doc/source/antmicro-sphinx/antmicro.sty
parent653dd7496122bb6baae8c02a8b80ab76fc54842d (diff)
Added HTML theme, closes #4
Diffstat (limited to 'doc/source/antmicro-sphinx/antmicro.sty')
-rw-r--r--doc/source/antmicro-sphinx/antmicro.sty32
1 files changed, 32 insertions, 0 deletions
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}{}