Skip to content

Commit

Permalink
build: version 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Sep 17, 2023
1 parent c83dda8 commit 7de6775
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ npm install @antonz/codapi
Or use a CDN:

```html
<script src="https://unpkg.com/@antonz/[email protected].1/dist/snippet.js"></script>
<script src="https://unpkg.com/@antonz/[email protected].2/dist/snippet.js"></script>
```

## Usage
Expand Down Expand Up @@ -80,14 +80,14 @@ Finally, include the default styles in the `head`:
```html
<link
rel="stylesheet"
href="https://unpkg.com/@antonz/[email protected].1/dist/snippet.css"
href="https://unpkg.com/@antonz/[email protected].2/dist/snippet.css"
/>
```

And the JavaScript file at the bottom of the page:

```html
<script src="https://unpkg.com/@antonz/[email protected].1/dist/snippet.js"></script>
<script src="https://unpkg.com/@antonz/[email protected].2/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 @@ -196,8 +196,8 @@ Alternatively, you can use an in-page `script` tag with a code template and pass

```html
<script id="main.py" type="text/plain">
def main():
##CODE##
def main():
##CODE##
</script>

<pre>
Expand Down Expand Up @@ -245,8 +245,8 @@ You can also define files using in-page `script`s:

```html
<script id="npc.py" type="text/plain">
def greet(name):
print(f"Hello, {name}")
def greet(name):
print(f"Hello, {name}")
</script>

<pre>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@antonz/codapi",
"version": "0.4.1",
"description": "Embeddable interactive code playground for education, documentation, and fun.",
"version": "0.4.2",
"description": "Embeddable code playgrounds for education, documentation, and fun.",
"author": "Anton Zhiyanov",
"license": "MIT",
"homepage": "https://codapi.org",
Expand Down

0 comments on commit 7de6775

Please sign in to comment.