forked from kazurof/GoogleJavaStyle-ja
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakehtml.rb
More file actions
29 lines (24 loc) · 743 Bytes
/
makehtml.rb
File metadata and controls
29 lines (24 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# convert textile to html
#
require "RedCloth"
require "erb"
f = File.open("GoogleJavaStyle-ja.textile" , "r:utf-8")
result = RedCloth.new(f.read).to_html
erb = ERB.new(DATA.read)
out = File.open("index.html" , "w:utf-8")
out.write(erb.result)
__END__
<%# coding: UTF-8 %><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css"/>
<title>Google Java Style (非公式和訳)</title>
<meta name="keywords" content="java, Google,コーディング規約">
<meta name="description" content="本文書はGoogleのJavaコーディング規約である Google Java Style の非公式和訳です。">
</head>
<body>
<%= result %>
</body>
</html>