Browse files

Merge pull request #8 from cfh463/master

Changed selected TOC style and fixed opensearch url definition
  • Loading branch information...
2 parents 25c9729 + 04a1254 commit 8d835f177de1e53696f2035571354695294ec622 @cfh463 cfh463 committed Jul 5, 2012
Showing with 7 additions and 3 deletions.
  1. +2 −1 docs.rb
  2. +5 −2 public/stylesheets/application.css
View
3 docs.rb
@@ -74,7 +74,8 @@ class Docs < Sinatra::Base
search['results'].each do |result|
xml_string += '<item>'
xml_string += ' <title><![CDATA[' + result['title'] + ']]></title>'
-xml_string += ' <link>http://edgedocs.rhomobile.com/' + result['docid'] + '</link>'
+xml_string += ' <link>' + request.base_url + '/' + result['docid'] + '</link>'
+xml_string += '<pubDate>' + File.mtime('docs/' + result['docid'] + '.txt').to_s + '</pubDate>'
xml_string += ' <description><![CDATA['
xml_string += result['snippet_text']
xml_string += ' ]]></description>'
View
7 public/stylesheets/application.css
@@ -18,7 +18,7 @@ body {
background: #fff;
min-width: 1000px;
margin: 0;
- padding-top: 125px;
+ padding-top: 165px;
background:url("/images/header_background.jpg") repeat-x scroll 0 0 transparent;color:#000000;
}
@@ -185,8 +185,11 @@ p, ul, blockquote, pre, table {
color: #555;
cursor:pointer;
}
+#docsnav .current {
+ background-color:#222;
+}
#docsnav .current a {
- color:#222;
+ color:white;
font-weight:bold;
}
#docsnav h3 {

0 comments on commit 8d835f1

Please sign in to comment.