src_dir = sys.argv[1]
dest_dir = sys.argv[2]
- convert_rfc_html(src_dir, TMP_DIR)
- build_rfcs(TMP_DIR, dest_dir)
+ #convert_rfc_html(src_dir, TMP_DIR)
+ #build_rfcs(TMP_DIR, dest_dir)
copy_css(dest_dir)
generate_site_index(dest_dir)
}
+.homepage > input {
+ font-size: 16px;
+ width: 40%;
+}
+
/*---------------------- Syntax Highlighting -----------------------------*/
td.linenos { background-color: #f0f0f0; padding-right: 10px; }
span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; }
<!DOCTYPE html>
-<html>
+<html style='height: 100%;'>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>RFC Czar: RFC for the rest of us.</title>
<link rel="stylesheet" href="rfc.css">
</head>
-<body>
-<div id='container'>
- <div id="background"></div>
- <table cellspacing=0 cellpadding=0>
- <thead>
+<body style="height: 100%;" class="homepage">
+<table style="width: 100%;">
<tr>
- <th class=docs><h1>RFC Czar</h1></th>
- <th class=code></th>
+ <td style="text-align: center; vertical-align: middle; top: 40%;">
+ <center>
+ <h2>
+ RFCs for <a href="rfc7231.html">rest of us</a>.<br>
+ </h2>
+ <div>
+ <input type="text" placeholder="Type an RFC name or keywords"></input>
+ </div>
+ </center>
+ </td>
</tr>
- </thead>
- <tbody>
- <tr id='section-{{ num }}'>
- <td class=docs>
- <p>
- RFC Czar gives you access to all the IETF RFCs, in an easy-to-understand two column format.
- </p>
- <p>
- Try it on an <a href=''>example RFC</a>.
- </p>
- </td>
- <td class=code>
- <div class='highlight'>
- <b>Related Stack Overflow questions:</b>
- <ul>
- {% for question in questions %}
- <li><a href={{ question['url'] }}>{{ question['title'] }}</a></li>
- {% endfor %}
- </ul>
- </div>
- </td>
- </tr>
- </table>
-</div>
+</table>
</body>
+</html>