diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-06-19 15:43:41 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-06-19 15:43:41 +0000 |
commit | e9e0cf59085cb3b3d77c8a2962fd8b80ac4d0c9d (patch) | |
tree | 33f3f6ac491d86fdef94b9a1cd9d6bbda9bfabf5 /manual/rockbox-html.cfg | |
parent | 8d9b9d247b7415f002fcc4253b4d0818e7f5fbaf (diff) | |
download | rockbox-e9e0cf59085cb3b3d77c8a2962fd8b80ac4d0c9d.tar.gz rockbox-e9e0cf59085cb3b3d77c8a2962fd8b80ac4d0c9d.zip |
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
Diffstat (limited to 'manual/rockbox-html.cfg')
-rw-r--r-- | manual/rockbox-html.cfg | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/manual/rockbox-html.cfg b/manual/rockbox-html.cfg index 284bcb36e4..2572125887 100644 --- a/manual/rockbox-html.cfg +++ b/manual/rockbox-html.cfg | |||
@@ -12,9 +12,16 @@ div.center { margin-left:auto; margin-right:auto; } | |||
12 | .fancyvrb { background-color:\#c6d6f5; } | 12 | .fancyvrb { background-color:\#c6d6f5; } |
13 | table.multicols { width:95\%; margin-left:auto; margin-right:auto; text-align:justify; } | 13 | table.multicols { width:95\%; margin-left:auto; margin-right:auto; text-align:justify; } |
14 | .crosslinks { color:\#ffffff; text-align:center; background-color:\#6887bb; padding:8px; } | 14 | .crosslinks { color:\#ffffff; text-align:center; background-color:\#6887bb; padding:8px; } |
15 | div.crosslinks>p>a { color:\#ffffff; } | 15 | div.crosslinks>a { color:\#ffffff; } |
16 | hr { display:none; } | 16 | hr { display:none; } |
17 | } | 17 | } |
18 | \EndPreamble | 18 | \EndPreamble |
19 | \Configure{Link}{a}{href=}{name=}{} | 19 | \Configure{Link}{a}{href=}{name=}{} |
20 | 20 | \Configure{@HEAD}{\HCode{<script type="text/javascript" src="gsearch.js"></script>}} | |
21 | \Configure{BODY}{\HCode{<body onload="gsearch();">}}{\HCode{</body>}} | ||
22 | \Configure{crosslinks*}{next}{up}{prev}{} | ||
23 | \Configure{crosslinks+}% | ||
24 | {\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'>}}% | ||
25 | {\HCode{</div>}}% | ||
26 | {\HCode{<div class='crosslinks'>}}% | ||
27 | {\HCode{</div>}} | ||