Skip to content

Instantly share code, notes, and snippets.

@koron
Created January 21, 2012 04:17
Show Gist options
  • Save koron/1651256 to your computer and use it in GitHub Desktop.
Save koron/1651256 to your computer and use it in GitHub Desktop.
diff --git a/_layouts/vimdoc.html b/_layouts/vimdoc.html
index 113cbf9..7b2c77b 100644
--- a/_layouts/vimdoc.html
+++ b/_layouts/vimdoc.html
@@ -1,5 +1,5 @@
<!doctype html>
-<html>
+<html manifest="cache.manifest">
<head>
<meta charset="UTF-8">
<title>Vim documentation: {{ page.helpname }}</title>
@@ -13,16 +13,7 @@
<script src="vimdoc-ja.js" type="text/javascript"></script>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
-<script type="text/javascript">
- google.load("search", "1", {language : "ja"});
- google.setOnLoadCallback(function() {
- var customSearchControl = new google.search.CustomSearchControl("001325159752250591701:65aunpq8rlg");
- customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
- var options = new google.search.DrawOptions();
- options.enableSearchboxOnly("http://www.google.com/cse?cx=001325159752250591701:65aunpq8rlg");
- customSearchControl.draw('SearchForm', options);
- }, true);
-</script>
+<script src="search_widget.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
<body>
@@ -31,7 +22,7 @@
<div id="SearchForm"></div>
<div>
<a href="http://vim-jp.org/">vim-jp</a>
- / <a href="http://vim-jp.org/vimdoc-ja/">vimdoc-ja</a>
+ / <a href="./">vimdoc-ja</a>
/ {{ page.helpname }}<br />
<a name="top"></a><h1>Vim documentation: {{ page.helpname }}</h1>
<a href="index.html">main help file</a>
diff --git a/cache.manifest b/cache.manifest
new file mode 100644
index 0000000..78f5990
--- /dev/null
+++ b/cache.manifest
@@ -0,0 +1,145 @@
+CACHE MANIFEST
+# Revision: 1
+
+############################################################################
+CACHE:
+
+style.css
+vimdoc-ja.js
+http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
+
+arabic.html
+autocmd.html
+change.html
+cmdline.html
+debug.html
+debugger.html
+develop.html
+diff.html
+digraph.html
+editing.html
+eval.html
+farsi.html
+filetype.html
+fold.html
+ft_ada.html
+ft_sql.html
+gui.html
+gui_w16.html
+gui_w32.html
+gui_x11.html
+hangulin.html
+helphelp.html
+howto.html
+if_cscop.html
+if_lua.html
+if_mzsch.html
+if_ole.html
+if_perl.html
+if_pyth.html
+if_ruby.html
+if_sniff.html
+if_tcl.html
+indent.html
+index.html
+insert.html
+intro.html
+map.html
+mbyte.html
+message.html
+mlang.html
+motion.html
+netbeans.html
+options.html
+os_390.html
+os_amiga.html
+os_beos.html
+os_dos.html
+os_mac.html
+os_mint.html
+os_msdos.html
+os_os2.html
+os_qnx.html
+os_risc.html
+os_unix.html
+os_vms.html
+os_win32.html
+pattern.html
+pi_getscript.html
+pi_gzip.html
+pi_netrw.html
+pi_paren.html
+pi_spec.html
+pi_tar.html
+pi_vimball.html
+pi_zip.html
+print.html
+quickfix.html
+quickref.html
+quotes.html
+recover.html
+remote.html
+repeat.html
+rileft.html
+russian.html
+scroll.html
+sign.html
+sponsor.html
+starting.html
+syntax.html
+tabpage.html
+tags.html
+tagsrch.html
+term.html
+tips.html
+uganda.html
+undo.html
+usr_01.html
+usr_02.html
+usr_03.html
+usr_04.html
+usr_05.html
+usr_06.html
+usr_07.html
+usr_08.html
+usr_09.html
+usr_10.html
+usr_11.html
+usr_12.html
+usr_20.html
+usr_21.html
+usr_22.html
+usr_23.html
+usr_24.html
+usr_25.html
+usr_26.html
+usr_27.html
+usr_28.html
+usr_29.html
+usr_30.html
+usr_31.html
+usr_32.html
+usr_40.html
+usr_41.html
+usr_42.html
+usr_43.html
+usr_44.html
+usr_45.html
+usr_90.html
+usr_toc.html
+various.html
+version4.html
+vi_diff.html
+vim_faq.html
+vimindex.html
+visual.html
+windows.html
+workshop.html
+
+############################################################################
+NETWORK:
+
+search_widget.js
+http://www.google.com/jsapi
+http://www.google.com/cse/style/look/default.css
+http://www.google.com/uds/
diff --git a/search_widget.js b/search_widget.js
new file mode 100644
index 0000000..6fef388
--- /dev/null
+++ b/search_widget.js
@@ -0,0 +1,12 @@
+google.load("search", "1", {language : "ja"});
+google.setOnLoadCallback(function() {
+ var customSearchControl = new google.search.CustomSearchControl(
+ "001325159752250591701:65aunpq8rlg");
+ customSearchControl.setResultSetSize(
+ google.search.Search.FILTERED_CSE_RESULTSET);
+ var options = new google.search.DrawOptions();
+ options.enableSearchboxOnly(
+ "http://www.google.com/cse?cx=001325159752250591701:65aunpq8rlg");
+ customSearchControl.draw('SearchForm', options);
+}, true);
+// vim:set ts=8 sts=2 sw=2 tw=0 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment