summaryrefslogtreecommitdiff
path: root/doc/source/antmicro-sphinx/antmicro.sty
diff options
context:
space:
mode:
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}{}