Skip to content

Commit

Permalink
doc: 0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Mar 15, 2024
1 parent f79b8fa commit 852729f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ npm install @antonz/codapi
Or use a CDN:

```html
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script>
```

Optional styles:

```html
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.css" />
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.css" />
```

## Usage
Expand Down
8 changes: 4 additions & 4 deletions docs/browser-only.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Note that WASI-based playgrounds (`engine` = `wasi` in the examples below) requi

```html
<script src="https://unpkg.com/@antonz/[email protected]/dist/runno.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/engine/wasi.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/engine/wasi.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script>
```

## JavaScript
Expand Down Expand Up @@ -102,8 +102,8 @@ Note that this playground requires additional scripts besides the usual `snippet
import { PGlite } from "https://cdn.jsdelivr.net/npm/@electric-sql/pglite/dist/index.js";
window.PGlite = PGlite;
</script>
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/engine/pglite.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/engine/pglite.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script>
```

## Python
Expand Down
4 changes: 2 additions & 2 deletions docs/docsify.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ Finally, add references to the Codapi script and styling in the `index.html` fil
<head>
<!-- ... -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css" />
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.css" />
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.css" />
</head>

<body>
<!-- ... -->
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script defer src="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js"></script>
<script defer src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script>
</body>
```

Expand Down
4 changes: 2 additions & 2 deletions docs/docusaurus.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ const config = {

stylesheets: [
{
href: "https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.css",
href: "https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.css",
},
],

scripts: [
{
src: "https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js",
src: "https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js",
defer: true,
},
],
Expand Down
6 changes: 3 additions & 3 deletions docs/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Note two properties here:
Finally, include the default styles in the `head`:

```html
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.css" />
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.css" />
```

And the JavaScript file at the bottom of the page:

```html
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script>
```

(CDNs like unpkg can sometimes be slow, so it's even better to host both files yourself)
Expand Down Expand Up @@ -139,7 +139,7 @@ The appropriate version must be enabled on the server.
To change the Codapi settings, use the `codapi-settings` element. First, load it from the CDN:

```html
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/settings.js"></script>
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/settings.js"></script>
```

Then use it like this:
Expand Down
12 changes: 6 additions & 6 deletions docs/wordpress.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Note two properties here:
Finally, at the bottom of the page, add another _Custom HTML_ block with Codapi script and styling (you will only need one such block no matter how many snippets you put on a page):

```html
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.css" />
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.css" />
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script>
```

And that's it! The `codapi-snippet` automatically attaches itself to the preceding _Code_ block, allowing you to run and edit the code. It looks like this:
Expand Down Expand Up @@ -73,8 +73,8 @@ Immediately below it, add a _Custom HTML_ block with the following content (note
Finally, at the bottom of the page, add another _Custom HTML_ block with Codapi script and styling (do this only if you haven't already added it):

```html
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.css" />
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.css" />
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script>
```

And here comes your interactive code snippet with syntax highlighting!
Expand Down Expand Up @@ -144,8 +144,8 @@ Note the `template` attribute here, which refers to the `main.sql` we added earl
Finally, at the bottom of the page, add another _Custom HTML_ block with Codapi script and styling (do this only if you haven't already added it):

```html
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.css" />
<script src="https://unpkg.com/@antonz/codapi@0.18.0/dist/snippet.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.css" />
<script src="https://unpkg.com/@antonz/codapi@0.19.0/dist/snippet.js"></script>
```

And here comes your interactive SQL snippet!
Expand Down

0 comments on commit 852729f

Please sign in to comment.