Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

much better

  • Loading branch information...
commit cba8859ff7c900c9660a8cc356fee27aab4564da 1 parent c2f5120
@schacon schacon authored
View
6 lib/git-scribe.rb
@@ -122,7 +122,7 @@ def do_site
`xsltproc --stringparam html.stylesheet stylesheets/handbookish.css --nonet #{xsldir}/chunk.xsl book.xml`
source = File.read('index.html')
- html = Nokogiri::XML.parse(source)
+ html = Nokogiri::HTML.parse(source, nil, 'utf-8')
sections = []
c = -1
@@ -196,7 +196,7 @@ def do_site
source = File.read(section['href'])
puts source
- html = Nokogiri::XML.parse(source)
+ html = Nokogiri::HTML.parse(source, nil, 'utf-8')
content = html.css('div.section').first.to_html
@@ -215,7 +215,7 @@ def do_site
}
f.puts page_template.render( data )
end
- File.unlink(section['href'])
+ #File.unlink(section['href'])
puts i
puts section['title']
View
5 site/default/index.html
@@ -1,5 +1,8 @@
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" />
<title>{{title}}</title>
</head>
<body>
View
5 site/default/page.html
@@ -1,5 +1,8 @@
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link rel="stylesheet" href="stylesheets/handbookish.css" type="text/css" />
<title>Page {{title}}</title>
</head>
Please sign in to comment.
Something went wrong with that request. Please try again.