htmltoadf 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -10
- package/htmltoadf_bg.wasm +0 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ $ html2adf -h
|
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
```
|
|
41
|
-
htmltoadf 0.1.
|
|
41
|
+
htmltoadf 0.1.12
|
|
42
42
|
An HTML to Atlassian Document Format (ADF) converter
|
|
43
43
|
|
|
44
44
|
USAGE:
|
|
@@ -56,20 +56,20 @@ OPTIONS:
|
|
|
56
56
|
### Install Binary from Crates.io with `cargo install`
|
|
57
57
|
```
|
|
58
58
|
$ cargo install htmltoadf
|
|
59
|
-
installing htmltoadf v0.1.
|
|
59
|
+
installing htmltoadf v0.1.12 (/usr/src/html2adf)
|
|
60
60
|
Updating crates.io index
|
|
61
61
|
Downloading crates ...
|
|
62
62
|
Downloaded lock_api v0.4.6
|
|
63
63
|
--snip--
|
|
64
|
-
Compiling htmltoadf v0.1.
|
|
64
|
+
Compiling htmltoadf v0.1.12
|
|
65
65
|
Finished release [optimized] target(s) in 1m 42s
|
|
66
66
|
Installing ~/.cargo/bin/htmltoadf
|
|
67
|
-
Installed package `htmltoadf v0.1.
|
|
67
|
+
Installed package `htmltoadf v0.1.12` (executable `html2adf`)
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
### Download Binary file from Github
|
|
71
71
|
Pre-built binaries can be downloaded from here:
|
|
72
|
-
https://github.com/wouterken/htmltoadf/releases/tag/0.1.
|
|
72
|
+
https://github.com/wouterken/htmltoadf/releases/tag/0.1.12
|
|
73
73
|
|
|
74
74
|
### Docker Image
|
|
75
75
|
**Docker Repo:**
|
|
@@ -79,10 +79,10 @@ https://hub.docker.com/r/wouterken/html2adf
|
|
|
79
79
|
**Usage**
|
|
80
80
|
|
|
81
81
|
```bash
|
|
82
|
-
$ echo "<h1>Hello world<p>Test</p></h1>" | docker run --rm -i wouterken/html2adf:0.1.
|
|
82
|
+
$ echo "<h1>Hello world<p>Test</p></h1>" | docker run --rm -i wouterken/html2adf:0.1.12
|
|
83
83
|
{"version":1,"type":"doc","content":[{"type":"heading","attrs":{"level":1},"content":[{"type":"text","text":"Hello world"},{"type":"text","text":"Test"}]}]}
|
|
84
84
|
|
|
85
|
-
$ echo "<h1>Hello world<p>Test</p></h1>" | docker run --rm -i wouterken/html2adf:0.1.
|
|
85
|
+
$ echo "<h1>Hello world<p>Test</p></h1>" | docker run --rm -i wouterken/html2adf:0.1.12 | jq
|
|
86
86
|
{
|
|
87
87
|
"version": 1,
|
|
88
88
|
"type": "doc",
|
|
@@ -115,7 +115,7 @@ $ echo "<h1>Hello world<p>Test</p></h1>" | docker run --rm -i wouterken/html2adf
|
|
|
115
115
|
|
|
116
116
|
```toml
|
|
117
117
|
[dependencies]
|
|
118
|
-
htmltoadf = "0.1.
|
|
118
|
+
htmltoadf = "0.1.12"
|
|
119
119
|
```
|
|
120
120
|
|
|
121
121
|
**Code**
|
|
@@ -229,10 +229,11 @@ The following features are implemented:
|
|
|
229
229
|
* Run fmt, clippy, and tests
|
|
230
230
|
* Compile binaries and create release
|
|
231
231
|
* Requires: `cargo-zigbuild`, `cargo-xwin`, `zig`, and nightly toolchain
|
|
232
|
+
* Ensure Docker daemon is running before this step (the checklist does an amd64 image build)
|
|
232
233
|
* `./release.sh`
|
|
233
|
-
* Or run `scripts/release_checklist.sh <version>` for local checks + amd64 Docker build
|
|
234
|
+
* Or run `sh scripts/release_checklist.sh <version>` for local checks + release artifacts + amd64 Docker build
|
|
234
235
|
* Build and push Docker images
|
|
235
|
-
* Multi-arch via buildx: `docker buildx build --platform linux/amd64,linux/arm64 -t wouterken/html2adf:<version> -t wouterken/html2adf:latest --push .`
|
|
236
|
+
* Multi-arch via buildx: `docker buildx build --platform linux/amd64,linux/arm64 --build-arg VERSION=<version> -t wouterken/html2adf:<version> -t wouterken/html2adf:latest --push .`
|
|
236
237
|
* Build and push WASM NPM package
|
|
237
238
|
* Push crate
|
|
238
239
|
* Update dependency in demo page
|
package/htmltoadf_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"Wouter Coppieters"
|
|
6
6
|
],
|
|
7
7
|
"description": "An HTML to Atlassian Document Format (ADF) converter",
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.12",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"htmltoadf_bg.wasm",
|
|
16
16
|
"htmltoadf.js",
|
|
17
|
-
"htmltoadf.d.ts"
|
|
17
|
+
"htmltoadf.d.ts",
|
|
18
|
+
"LICENSE.txt"
|
|
18
19
|
],
|
|
19
20
|
"main": "htmltoadf.js",
|
|
20
21
|
"homepage": "https://github.com/wouterken/htmltoadf",
|