提交 20d71e3b authored 作者: Thomas Mueller's avatar Thomas Mueller

The documentation no longer uses a frameset (except the Javadocs).

上级 5ef99d18
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Advanced Topics
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Advanced Topics</h1>
<a href="#result_sets">
......@@ -132,9 +134,6 @@ Oracle XE needs to be restarted after changing these values:
alter system set processes=100 scope=spfile;
alter system set sessions=100 scope=spfile;
</pre>
<p>
</p>
<br /><a name="transaction_isolation"></a>
<h2>Transaction Isolation</h2>
......@@ -1199,4 +1198,4 @@ OR X = 2 OR X = 2 OR X = 2 OR X = 2 OR X = 2
</tr>
</table>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Build
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Build</h1>
<a href="#portability">
......@@ -159,4 +161,5 @@ If you like to provide patches, please consider the following guidelines to simp
</li><li>Submit patches as .patch files (compressed if big). To create a patch, use for example Eclipse Team/Create Patch.
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,16 +9,19 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Change Log
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when
the database is opened almost at the same time as it is closed automatically.
Thanks a lot to Dmitry Pekar for finding this!
<ul><li>The documentation no longer uses a frameset (except the Javadocs).
</li><li>When using DB_CLOSE_DELAY, sometimes a NullPointerException is thrown when
the database is opened almost at the same time as it is closed automatically.
Thanks a lot to Dmitry Pekar for finding this!
</li><li>Java methods with variable number of parameters can now be used (for Java 1.5 or newer).
</li><li>The Japanese translation has been improved by Masahiro Ikemoto. Thanks a lot!
</li><li>The H2 Console replaced an empty user name with a single space.
......@@ -566,4 +569,5 @@ Change Log
</li><li>Using a function in a GROUP BY expression that is used in a view as a condition did not always work.
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Data Types
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Data Types</h1>
<c:forEach var="item" items="dataTypes">
......@@ -32,4 +34,5 @@ ${item.example}
<br />
</c:forEach>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -7,13 +7,15 @@ Initial Developer: H2 Group
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
H2 Database Engine
Downloads
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<link rel="alternate" type="application/atom+xml" title="H2 Newsfeed (Atom)" href="http://www.h2database.com/html/newsfeed-atom.xml" />
<link rel="alternate" type="application/rss+xml" title="H2 Newsfeed (RSS)" href="http://www.h2database.com/html/newsfeed-rss.xml" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Downloads</h1>
......@@ -43,4 +45,5 @@ H2 Database Engine
For details about changes, see the <a href="changelog.html">Change Log</a>.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Frequently Asked Questions
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Frequently Asked Questions</h1>
......@@ -205,4 +207,4 @@ For more information, see
<a href="build.html#translating">Build/Translating</a>.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Features
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Features</h1>
......@@ -1588,4 +1590,5 @@ call SELECT * FROM INFORMATION_SCHEMA.SETTINGS. The number of pages read / writt
is listed for the data and index file.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
<!--
Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Fragments</title>
<!-- [search] { -->
<script type="text/javascript" src="index.js"></script>
<script type="text/javascript" src="navigation.js"></script>
<script type="text/javascript" src="search.js"></script>
</head><body onload="highlight();">
<table class="nav" onmousemove="return mouseMove(event)"><tr class="nav"><td class="nav">
<div id="searchMenu" style="width: 180px; overflow: hidden;">
<div class="menu">
<img border="0" src="images/h2-logo.png" alt="H2 Logo" onclick="document.location='main.html'" />
</div>
<form name="searchForm" action="submit" onsubmit="return goFirst();">
<table width="100%" class="search">
<tr class="search">
<td class="search" colspan="2">
<a href="frame.html"><img border="0" src="images/language_en.gif" alt="English" /></a>
<a href="frame_ja.html"><img border="0" src="images/language_ja.gif" alt="Japanese" /></a>
</td>
</tr>
<tr class="search">
<td class="search" colspan="2">
<b> Search: </b>
</td>
</tr>
<tr class="search">
<td class="search" colspan="2">
<input id="search" name="search" type="text" size="21" maxlength="100" onkeyup="listWords(this.value, '')" /><br />
<input type="reset" id="clear" style="display:none;" value="Clear" onclick="listWords('', '');" />
</td>
</tr>
<tr class="search" style="display:none;" >
<td width="1%" class="search" style="vertical-align: middle;"><input id="highlight" type="checkbox" checked="checked" onclick="highlightCurrent(this.checked, search.value)" /></td>
<td width="99%" class="search" style="padding: 0px; vertical-align: middle;"> Highlight keyword(s) </td>
</tr>
<tr class="search">
<td class="search" colspan="2">
<table id="result" style="border: 0px;">
</table>
</td>
</tr>
</table>
</form>
<div class="menu">
<b><a href="main.html"> Home </a></b><br />
<a href="quickstart.html"> Quickstart </a><br />
<a href="installation.html"> Installation </a><br />
<a href="tutorial.html"> Tutorial </a><br />
<a href="features.html"> Features </a><br />
<a href="performance.html"> Performance </a><br />
<a href="advanced.html"> Advanced Topics </a><br />
<a href="jaqu.html"> JaQu </a><br />
<a href="download.html"> Download </a><br />
<br />
<b> Reference </b><br />
<a href="grammar.html"> SQL Grammar </a><br />
<a href="functions.html"> Functions </a><br />
<a href="datatypes.html"> Data Types </a><br />
<a href="../javadoc/index.html"> Javadoc </a><br />
<a href="../h2.pdf" target="_blank"> Docs as PDF </a><br />
<a href="sourceError.html"> Error Analyzer </a><br />
<br />
<b> Appendix </b><br />
<a href="build.html"> Build </a><br />
<a href="history.html"> History &amp; Roadmap </a><br />
<a href="links.html"> Links </a><br />
<a href="faq.html"> FAQ </a><br />
<a href="license.html"> License </a><br />
<br />
</div>
</div>
</td>
<td class="nav" style="cursor: e-resize;" onmousedown="return mouseDown(event)" onmouseup="return mouseUp(event)">&nbsp;</td>
<td class="nav" style="padding: 0px 10px 0px 0px; ">
<!-- } -->
<!-- [close] { -->
</td></tr></table>
<!-- } -->
</body></html>
\ No newline at end of file
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Functions
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Functions</h1>
......@@ -54,4 +56,5 @@ ${item.example}
<br />
</c:forEach>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
SQL Grammar
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>SQL Grammar</h1>
<h2>Commands (Data Manipulation)</h2>
......@@ -85,4 +87,5 @@ The table is used as follows:
SELECT X FROM SYSTEM_RANGE(1, 10);
</pre>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
History
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>History and Roadmap</h1>
<a href="#changelog">
......@@ -112,4 +114,5 @@ via PayPal:
</li><li>Pete Haidinyak, USA
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Installation
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Installation</h1>
......@@ -92,4 +94,5 @@ After installing, you should get the following directory structure:
</tr>
</table>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
JaQu
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>JaQu</h1>
......@@ -276,4 +278,5 @@ Some ideas for what to implement include:
<a href="http://groups.google.de/group/jlinq">Google Group about adding LINQ features to Java</a><br />
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
License
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>License</h1>
......@@ -696,4 +698,5 @@ than one year after the cause of action arose. Each party waives its rights
to a jury trial in any resulting litigation.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
H2 In Use and Links
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>H2 In Use and Links</h1>
<p>
......@@ -445,4 +447,5 @@ Volunteer database</a><br />
A database front end to register volunteers, partnership and donation for a Non Profit organization.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
H2 Database Engine
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>H2 Database Engine</h1>
<p>
......@@ -37,4 +39,5 @@ Go through the samples.
See what this database can do and how to use these features.
</p>
</div></td></tr></table></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License, Version 1.0,,
and under the Eclipse Public License, Version 1.0
(http://h2database.com/html/license.html). -->
(http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
H2 Database Engine
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<link rel="alternate" type="application/atom+xml" title="H2 Newsfeed (Atom)" href="http://www.h2database.com/html/newsfeed-atom.xml" />
<link rel="alternate" type="application/rss+xml" title="H2 Newsfeed (RSS)" href="http://www.h2database.com/html/newsfeed-rss.xml" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
<style type="text/css">
<!--
h3 { margin-top: 0px; margin-bottom: 10px; }
-->
</style>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>H2 Database Engine</h1>
<p>
......@@ -135,4 +135,4 @@ Welcome to H2, the Java SQL database. The main feature of H2 are:
</table>
</div></td></tr></table><!-- analytics --></body></html>
\ No newline at end of file
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -33,7 +33,7 @@ function frameMe(frame) {
var s = frameset + "?" + file + "&" + frame;
top.location.replace(s);
} else {
highlight();
highlightFrame();
}
return;
}
......@@ -48,7 +48,7 @@ function addHighlight(page, word, count) {
}
}
function highlight() {
function highlightFrame() {
var url = new String(top.main.location.href);
if(url.indexOf('?highlight=') < 0) {
return;
......@@ -61,6 +61,21 @@ function highlight() {
}
}
function highlight() {
var url = new String(document.location.href);
if(url.indexOf('?highlight=') < 0) {
return;
} else {
var page = url.split('highlight=')[1].split('&')[0];
var search = decodeURIComponent(url.split('search=')[1].split('#')[0]);
var word = decodeURIComponent(page);
document.body.innerHTML = highlightSearchTerms(document.body, word);
document.location = '#firstFound';
document.getElementById('search').value = search;
listWords(search, '');
}
}
function goFirstFound() {
top.main.location = '#firstFound';
/*
......@@ -125,3 +140,27 @@ function doHighlight(bodyText, searchTerm, highlightStartTag, highlightEndTag) {
}
return newText;
}
var drag = false;
var dragSize = 0;
var dragStart = 0;
function mouseDown(e) {
dragStart = e.clientX || e.pageX;
dragSize = parseInt(document.getElementById('searchMenu').style.width);
drag = true;
return false;
}
function mouseUp(e) {
drag = false;
return false;
}
function mouseMove(e) {
if (drag) {
var e = e || window.event;
var x = e.clientX || e.pageX;
dragSize += x - dragStart;
dragStart = x;
document.getElementById('searchMenu').style.width=dragSize + 'px';
}
return false;
}
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Performance
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Performance</h1>
<a href="#performance_comparison">
......@@ -432,4 +434,4 @@ See <code>src/test/org/h2/samples/optimizations.sql</code> for a few examples of
that benefit from special optimizations built into the database.
</p>
</div></td></tr></table><!-- analytics --></body></html>
\ No newline at end of file
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Quickstart
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Quickstart</h1>
<a href="#embedding">
......@@ -98,4 +100,5 @@ Close the console window.
For more information, see the <a href="tutorial.html">Tutorial</a>.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Roadmap
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Roadmap</h1>
<p>
......@@ -390,4 +392,5 @@ Of course, patches are always welcome, but are not always applied as is. Patches
</li><li>String.intern (so that Strings can be compared with ==) will not be used because some VMs have problems when used extensively.
</li></ul>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -109,10 +109,17 @@ function goFirst() {
function go(pageId, word) {
var page = pages[pageId];
var load = '../' + page.file + '?highlight=' + encodeURIComponent(word);
if(!top.main.location.href.endsWith(page.file)) {
top.main.location = load;
}
var load = '../' + page.file + '?highlight=' + encodeURIComponent(word);
if(top.main) {
if(!top.main.location.href.endsWith(page.file)) {
top.main.location = load;
}
} else {
if(!document.location.href.endsWith(page.file)) {
var search = document.getElementById('search').value;
document.location = load + '&search=' + encodeURIComponent(search);
}
}
}
function listAnd(keywords) {
......
......@@ -182,6 +182,7 @@ function sizeTextArea() {
<body style="margin:20px" onresize="sizeTextArea();" onload="sizeTextArea();" >
<h1>Online Error Analyzer</h1>
<b><a href="../html/main.html" target="_top">Home</a></b><br />
<h2>
<a href="javascript:select('input')" id="inputTab">Input</a>&nbsp;
<a href="javascript:select('details')" id="detailsTab">Details</a>&nbsp;
......
......@@ -162,6 +162,18 @@ td.searchLink a:hover {
text-decoration: underline;
}
table.nav {
border: 0px;
}
tr.nav {
border: 0px;
}
td.nav {
border: 0px;
}
table.content {
width: 100%;
height: 100%;
......
......@@ -9,9 +9,11 @@ Initial Developer: H2 Group
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
Tutorial
</title><link rel="stylesheet" type="text/css" href="stylesheet.css" />
<!-- [search] { -->
<script type="text/javascript" src="navigation.js"></script>
</head><body onload="frameMe();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<!-- } -->
<h1>Tutorial</h1>
<a href="#tutorial_starting_h2_console">
......@@ -779,4 +781,5 @@ you need to create a SQL script file using the SCRIPT command or Script tool, an
the database using the RUNSCRIPT command or the RunScript tool in the new time zone.
</p>
</div></td></tr></table><!-- analytics --></body></html>
<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>
......@@ -20,6 +20,7 @@ Initial Developer: H2 Group
<div class="menu">
<b><a href="../html/main.html" target="_top">Home</a></b><br />
<b><a href="overview.html" target="javadoc">API Overview</a></b><br />
<br />
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -121,6 +121,18 @@ td.toolbar {
padding: 0px 0px;
}
table.nav {
border: 0px;
}
tr.nav {
border: 0px;
}
td.nav {
border: 0px;
}
table.login {
background-color: #ece9d8;
border:1px solid #aca899;
......
......@@ -6,6 +6,7 @@
*/
package org.h2.samples;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
......@@ -43,6 +44,7 @@ public class Newsfeed {
if (file.endsWith(".txt")) {
content = convertHtml2Text(content);
}
new File(targetDir).mkdirs();
FileOutputStream out = new FileOutputStream(targetDir + "/" + file);
Writer writer = new OutputStreamWriter(out, "UTF-8");
writer.write(content);
......
......@@ -272,6 +272,10 @@ java org.h2.test.TestAll timer
/*
CREATE LINKED TABLE ... READONLY
CREATE FUNCTION? Function interface
main methods for the tests and make that work
Support large updates (use the transaction log to undo).
H2 Console: support single file upload and directory download (optional)
......
......@@ -141,6 +141,7 @@ public class GenerateDoc {
String link = topic.toLowerCase();
link = StringUtils.replaceAll(link, " ", "");
link = StringUtils.replaceAll(link, "_", "");
link = StringUtils.replaceAll(link, "@", "");
map.put("link", StringUtils.urlEncode(link));
list.add(map);
}
......
......@@ -64,16 +64,15 @@ public class MergeDocs {
// String start = "<body";
// String end = "</body>";
String start = "<div class=\"contentDiv\"";
String end = "</div></td></tr></table><!-- analytics --></body></html>";
String start = "<!-- } -->";
String end = "<!-- [close] { --></div></td></tr></table><!-- } --><!-- analytics --></body></html>";
int idx = text.indexOf(end);
if (idx < 0) {
throw new Error("Footer not found in file " + fileName);
}
text = text.substring(0, idx);
idx = text.indexOf(start);
idx = text.indexOf('>', idx);
idx = text.indexOf(start) + start.length();
text = text.substring(idx + 1);
return text;
}
......
......@@ -10,6 +10,7 @@ import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import org.h2.samples.Newsfeed;
import org.h2.util.IOUtils;
......@@ -29,7 +30,8 @@ public class WebSite {
"<script type=\"text/javascript\">var pageTracker=_gat._getTracker(\"UA-2351060-1\");pageTracker._initData();pageTracker._trackPageview();</script>";
private String sourceDir = "docs";
private String targetDir = "../h2web";
private String webDir = "../h2web";
private HashMap fragments = new HashMap();
/**
* This method is called when executing this application from the command
......@@ -42,9 +44,64 @@ public class WebSite {
}
private void run() throws Exception {
deleteRecursive(new File(targetDir));
copy(new File(sourceDir), new File(targetDir));
Newsfeed.main(new String[] {targetDir + "/html"});
// create the web site
deleteRecursive(new File(webDir));
loadFragments();
copy(new File(sourceDir), new File(webDir), true, true);
Newsfeed.main(new String[] {webDir + "/html"});
// create the internal documentation
copy(new File(sourceDir), new File(sourceDir), true, false);
}
private void loadFragments() throws IOException {
File dir = new File(sourceDir, "html");
File[] list = dir.listFiles();
for (int i = 0; i < list.length; i++) {
File f = list[i];
if (f.getName().startsWith("fragments")) {
FileInputStream in = new FileInputStream(f);
byte[] bytes = IOUtils.readBytesAndClose(in, 0);
String page = new String(bytes, "UTF-8");
fragments.put(f.getName(), page);
}
}
}
private String replaceFragments(String fileName, String page) {
if (fragments.size() == 0) {
return page;
}
String language = "";
int index = fileName.indexOf("_");
if (index >= 0) {
int end = fileName.indexOf('.');
language = fileName.substring(index, end);
}
String fragment = (String) fragments.get("fragments" + language + ".html");
int start = 0;
while (true) {
start = fragment.indexOf("<!-- [", start);
if (start < 0) {
break;
}
int endTag = fragment.indexOf("] { -->", start);
int endBlock = fragment.indexOf("<!-- } -->", start);
String tag = fragment.substring(start, endTag);
String replacement = fragment.substring(start, endBlock);
int pageStart = 0;
while (true) {
pageStart = page.indexOf(tag, pageStart);
if (pageStart < 0) {
break;
}
int pageEnd = page.indexOf("<!-- } -->", pageStart);
page = page.substring(0, pageStart) + replacement + page.substring(pageEnd);
pageStart += replacement.length();
}
start = endBlock;
}
return page;
}
private void deleteRecursive(File dir) {
......@@ -57,32 +114,50 @@ public class WebSite {
dir.delete();
}
private void copy(File source, File target) throws IOException {
private void copy(File source, File target, boolean replaceFragments, boolean web) throws IOException {
if (source.isDirectory()) {
target.mkdirs();
File[] list = source.listFiles();
for (int i = 0; i < list.length; i++) {
copy(list[i], new File(target, list[i].getName()));
copy(list[i], new File(target, list[i].getName()), replaceFragments, web);
}
} else {
String name = source.getName();
if (name.endsWith("main.html") || name.endsWith("main_ja.html") || name.endsWith("onePage.html")) {
if (name.endsWith("onePage.html") || name.startsWith("fragments")) {
return;
}
if (web) {
if (name.endsWith("main.html") || name.endsWith("main_ja.html")) {
return;
}
} else {
if (name.endsWith("mainWeb.html") || name.endsWith("mainWeb_ja.html")) {
return;
}
}
FileInputStream in = new FileInputStream(source);
byte[] bytes = IOUtils.readBytesAndClose(in, 0);
if (name.endsWith(".html")) {
String page = new String(bytes, "UTF-8");
page = StringUtils.replaceAll(page, ANALYTICS_TAG, ANALYTICS_SCRIPT);
if (web) {
page = StringUtils.replaceAll(page, ANALYTICS_TAG, ANALYTICS_SCRIPT);
}
if (replaceFragments) {
page = replaceFragments(name, page);
page = StringUtils.replaceAll(page, "<a href=\"frame", "<a href=\"main");
page = StringUtils.replaceAll(page, "html/frame.html", "html/main.html");
}
bytes = page.getBytes("UTF-8");
}
FileOutputStream out = new FileOutputStream(target);
out.write(bytes);
out.close();
if (name.endsWith("mainWeb.html")) {
target.renameTo(new File(target.getParentFile(), "main.html"));
} else if (name.endsWith("mainWeb_ja.html")) {
target.renameTo(new File(target.getParentFile(), "main_ja.html"));
if (web) {
if (name.endsWith("mainWeb.html")) {
target.renameTo(new File(target.getParentFile(), "main.html"));
} else if (name.endsWith("mainWeb_ja.html")) {
target.renameTo(new File(target.getParentFile(), "main_ja.html"));
}
}
}
}
......
......@@ -557,4 +557,6 @@ nullsoft annotation cover scriptable guidelines consider batis coding
anlytc art orafusion ery ideas jequel indices quaere dsl accumulated vary
causing nopack water onto resolve ontoprise treatment sparql rdfs piman zen
owl rdf recommendations axiom fabric broker osoa epictetus replacements
brittain wasn november unixtime ddd jason formatter
brittain wasn november unixtime ddd jason formatter psqlodbc onmousemove
monitoring razuna asset drag pekar devx dmitry fragments onmouseup nav
onmousedown olap
......@@ -61,6 +61,7 @@ public class Indexer {
}
File file = new File(dir);
setNoIndex(new String[] { "index.html", "html/header.html", "html/search.html", "html/frame.html",
"html/sourceError.html", "html/source.html", "html/mainWeb.html",
"javadoc/index.html", "javadoc/classes.html", "javadoc/allclasses-frame.html",
"javadoc/allclasses-noframe.html", "javadoc/constant-values.html", "javadoc/overview-frame.html",
"javadoc/overview-summary.html", "javadoc/serialized-form.html" });
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论