Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
121 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
site/ | ||
temp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Documentation | ||
|
||
SQL Notebook ships with an in-app searchable help system that includes all of the documentation listed here. Press F1 inside the application to see the list of help topics. | ||
|
||
## SQLite Documentation | ||
|
||
There is extensive documentation available for SQLite, the engine underlying SQL Notebook. | ||
<a href="https://www.sqlite.org/docs.html">Click here to view the SQLite documentation</a>. | ||
|
||
## SQL Notebook Help | ||
|
||
- [Structured Programming in SQL Notebook](extended-syntax.html) | ||
- [Error Functions](error-functions.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Error</title> | ||
</head> | ||
<body> | ||
<p>There was a problem with your request.</p> | ||
</body> | ||
</html> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# must have pandoc installed. | ||
function ReadFile($filePath) { | ||
$utf8 = New-Object System.Text.UTF8Encoding($False) | ||
return [System.IO.File]::ReadAllText($filePath, $utf8) | ||
} | ||
|
||
function WriteFile($filePath, $text) { | ||
$utf8 = New-Object System.Text.UTF8Encoding($False) | ||
[System.IO.File]::WriteAllText($filePath, $text, $utf8) | ||
} | ||
|
||
function MdToHtml($markdownPath) { | ||
Remove-Item .\temp\md.html -ErrorAction SilentlyContinue | ||
pandoc -o .\temp\md.html "$markdownPath" | Out-Null | ||
return (ReadFile .\temp\md.html) | ||
} | ||
|
||
function FormatPage($title, $content) { | ||
$header = (ReadFile .\header.template.html) | ||
$tmpl = (ReadFile .\generic.template.html) | ||
return $tmpl.Replace("<!--TITLE-->", $title).Replace("<!--CONTENT-->", $content).Replace("<!--HEADER-->", $header) | ||
} | ||
|
||
function FormatMdPage($title, $mdPath) { | ||
$html = (MdToHtml $mdPath) | ||
return (FormatPage $title $html) | ||
} | ||
|
||
New-Item site -Type Directory -ErrorAction SilentlyContinue | ||
New-Item site/art -Type Directory -ErrorAction SilentlyContinue | ||
New-Item temp -Type Directory -ErrorAction SilentlyContinue | ||
|
||
copy .\sqlnotebook.css .\site\ | ||
copy ..\art\*.* .\site\art\ | ||
copy .\error.html .\site\ | ||
copy .\favicon.ico .\site\ | ||
|
||
# index.html | ||
$readme = (MdToHtml ..\readme.md) | ||
$indexTmpl = (ReadFile .\index.template.html) | ||
WriteFile .\site\index.html $indexTmpl.Replace("<!--CONTENT-->", $readme) | ||
|
||
# markdown-based pages | ||
WriteFile .\site\license.html (FormatMdPage "License" ..\license.md) | ||
WriteFile .\site\doc.html (FormatMdPage "Documentation" .\doc.md) | ||
|
||
# html-based pages | ||
WriteFile .\site\error-functions.html (FormatPage "Error Functions" (ReadFile ..\doc\error-functions.html)) | ||
WriteFile .\site\extended-syntax.html (FormatPage "Structured Programming in SQL Notebook" (ReadFile ..\doc\extended-syntax.html)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title>SQL Notebook - <!--TITLE--></title> | ||
<link rel="stylesheet" href="sqlnotebook.css"> | ||
</head> | ||
<body> | ||
<!--HEADER--> | ||
<!--CONTENT--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<p style="padding-bottom: 10px;"><a href="http://sqlnotebook.com/index.html"><img src="http://sqlnotebook.com/art/icon-title.png"></a><br /> | ||
➔ <a href="http://sqlnotebook.com/"><strong>Home</strong></a> ➔ <a href="http://sqlnotebook.com/install/setup.exe"><strong>Download & Install</strong></a> ➔ <a href="http://sqlnotebook.com/doc.html"><strong>Documentation</strong></a> ➔ <a href="https://github.com/electroly/sqlnotebook"><strong>GitHub</strong></a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title>SQL Notebook</title> | ||
<link rel="stylesheet" href="sqlnotebook.css"> | ||
</head> | ||
<body> | ||
<!--CONTENT--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
body { | ||
font-family: sans-serif; | ||
margin: 0 auto; | ||
width: 800px; | ||
line-height: 150%; | ||
} | ||
a, a:visited { | ||
color: #4078c0; | ||
text-decoration: none; | ||
} | ||
a:hover { | ||
text-decoration: underline; | ||
} |