Skip to content

Commit 6e7ec33

Browse files
committed
Automatically update github pages via the CI
1 parent edb9aa6 commit 6e7ec33

File tree

4 files changed

+38
-30
lines changed

4 files changed

+38
-30
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,14 @@ jobs:
2222
with: {name: dist, path: dist}
2323
- name: test
2424
run: npm ci && npm test
25+
- name: generate documentation
26+
# We need the symbolic links to avoid breaking old URLs
27+
run: npm run doc && mkdir -p documentation/class && ln -s documentation/* documentation/class/
28+
- name: Update github pages
29+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
30+
uses: JamesIves/github-pages-deploy-action@3.6.2
31+
with:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
BRANCH: gh-pages # The branch the action should deploy to.
34+
FOLDER: "." # The folder the action should deploy.
35+
CLEAN: false # Automatically remove deleted files from the deploy branch

.nojekyll

Whitespace-only changes.

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# SQLite compiled to JavaScript <img src="https://user-images.githubusercontent.com/552629/76405509-87025300-6388-11ea-86c9-af882abb00bd.png" width="40" height="40" />
1+
<img src="https://user-images.githubusercontent.com/552629/76405509-87025300-6388-11ea-86c9-af882abb00bd.png" width="40" height="40" />
2+
3+
# SQLite compiled to JavaScript
24

35
[![CI status](https://github.com/sql-js/sql.js/workflows/CI/badge.svg)](https://github.com/sql-js/sql.js/actions)
46
[![npm](https://img.shields.io/npm/v/sql.js)](https://www.npmjs.com/package/sql.js)
@@ -271,7 +273,9 @@ Although asm.js files were distributed as a single Javascript file, WebAssembly
271273

272274

273275

274-
## Versions of sql.js included in the [distributed artifacts](https://github.com/sql-js/sql.js/releases/latest)
276+
## Versions of sql.js included in the distributed artifacts
277+
You can always find the latest published artifacts on https://github.com/sql-js/sql.js/releases/latest.
278+
275279
For each [release](https://github.com/sql-js/sql.js/releases/), you will find a file called `sqljs.zip` in the *release assets*. It will contain:
276280
- `sql-wasm.js` : The Web Assembly version of Sql.js. Minified and suitable for production. Use this. If you use this, you will need to include/ship `sql-wasm.wasm` as well.
277281
- `sql-wasm-debug.js` : The Web Assembly, Debug version of Sql.js. Larger, with assertions turned on. Useful for local development. You will need to include/ship `sql-wasm-debug.wasm` if you use this.

index.html

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
1-
<!doctype html>
2-
<html>
3-
<head>
4-
<title>sql.js</title>
5-
</head>
6-
7-
<body>
8-
<h1>sql.js</h1>
9-
10-
<h2>Examples</h2>
11-
12-
<ol>
13-
<li><a href="./examples/GUI">Online SQL Interpreter</a> Full featured Sqlite Interpreter running in your browser.</li>
14-
<li><a href="./examples/repl.html">Online SQL read eval print loop</a> simple SQLite REPL </li>
15-
<li><a href="./examples/persistent.html">Persistence</a> Persisting data</li>
16-
<li><a href="./examples/requireJS.html">RequireJS</a> Load sql.js asynchronously using <a href="https://requirejs.org/">RequireJs</a></li>
17-
<li><a href="./examples/simple.html">Simple Example</a> Demonstrates prepare,getAsObject, and other SQL.js methods. </li>
18-
</ol>
19-
20-
Note: To run these examples locally, see <a href="./examples/">./examples/readme.md</a>
21-
22-
<h2>Source</h2>
23-
24-
<p><a href="https://github.com/sql-js/sql.js">Source on Github</a></p>
25-
26-
</body>
27-
</html>
28-
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<title>sql.js</title>
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
8+
<meta name="description"
9+
content="sql.js is an SQL library for javascript containing a version of SQLite compiled for the web.">
10+
<meta name="viewport"
11+
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
12+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
13+
</head>
14+
15+
<body>
16+
<div id="app"></div>
17+
<script>window.$docsify = { name: 'SQL.js', repo: '' }</script>
18+
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
19+
</body>
20+
21+
</html>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy