rockbox/manual/rockbox-html.cfg
Dominik Riebeling e9e0cf5908 Manual: add search box to HTML output.
To allow easy searching the HTML (multi page) output add a search box that
queries Google. The Google search will get restricted to the location the
manual is stored. Google seems to happily accept a subfolder when specifying a
domain to search. For this to work the search box has to be created dynamically
with the help of a bit JavaScript.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30017 a1c6a512-1295-4272-9138-f99709370657
2011-06-19 15:43:41 +00:00

27 lines
1.4 KiB
INI

% $Id$ %
\Preamble{xhtml}
\begin{document}
\Css{%
body { background-color:\#b6c6e5; color:black; font-family:sans-serif; }
img { border:0px solid \#d6d6f5; }
table.float, table.figure, table.longtable { border: outset 2px \#fff; margin-left:auto; margin-right:auto; }
td { background-color: \#c6d6f5; margin:2px; padding: 0px; }
td>p { margin:2px; padding:0px; }
td>hr { display:block; height:0px; border:1px solid \#b6c6e5; background-color:\#b6c6e5; }
div.center { margin-left:auto; margin-right:auto; }
.fancyvrb { background-color:\#c6d6f5; }
table.multicols { width:95\%; margin-left:auto; margin-right:auto; text-align:justify; }
.crosslinks { color:\#ffffff; text-align:center; background-color:\#6887bb; padding:8px; }
div.crosslinks>a { color:\#ffffff; }
hr { display:none; }
}
\EndPreamble
\Configure{Link}{a}{href=}{name=}{}
\Configure{@HEAD}{\HCode{<script type="text/javascript" src="gsearch.js"></script>}}
\Configure{BODY}{\HCode{<body onload="gsearch();">}}{\HCode{</body>}}
\Configure{crosslinks*}{next}{up}{prev}{}
\Configure{crosslinks+}%
{\HCode{<div style='float:left;'><a href='http://www.rockbox.org'><img src='http://www.rockbox.org/rockbox100.png'/></a></div><div id='gsearch' style='float:right;'>Enable JavaScript to show search field.</div><div style='clear:both;' class='crosslinks'>}}%
{\HCode{</div>}}%
{\HCode{<div class='crosslinks'>}}%
{\HCode{</div>}}