You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Rename asciidoctor.js to asciidoctor
- Move everything to packages/core
- Create a meta package named asciidoctor
- Create a core package named @asciidoctor/core
- Add an alias asciidoctor -> @asciidoctor/core
* Update the release and publish tasks
* Update README
* Update the documentation
Copy file name to clipboardExpand all lines: README.adoc
+25-56Lines changed: 25 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,79 +29,48 @@ Asciidoctor.js brings AsciiDoc to the JavaScript world!
29
29
This project uses {uri-opal}[Opal] to transpile http://asciidoctor.org[Asciidoctor], a modern implementation of AsciiDoc, from Ruby to JavaScript to produce _asciidoctor.js_.
30
30
The _asciidoctor.js_ script can be run on any JavaScript platform, including Node.js, GraalVM and, of course, a web browser.
31
31
32
-
IMPORTANT: Asciidoctor.js does _not_ use Semantic Versioning as the release versions are aligned on _Asciidoctor (Ruby)_. It's *highly recommended* to define the exact version in your `package.json` file (ie. without `^`). Please read the release notes when upgrading to the latest version as breaking changes can be introduced in non major release.
32
+
== Quickstart
33
33
34
-
== Introduction
35
-
36
-
You can use Asciidoctor.js either for back-end development using {uri-nodejs}[Node.js] or front-end development using a browser.
37
-
38
-
== Front-end development
39
-
40
-
.Installing Asciidoctor.js with npm
41
-
42
-
$ npm install asciidoctor.js --save
43
-
44
-
Once the package is installed, you can add the following `script` tag to your HTML page:
<2> Convert AsciiDoc content to HTML5 using Asciidoctor.js
88
50
<3> Print the HTML5 output to the console
89
51
90
-
Save the file as `sample.js` and run it using the `node` command:
52
+
Save the file as _sample.js_ and run it using the `node` command:
91
53
92
54
$ node sample.js
93
55
94
56
You should see the following output in your terminal:
95
57
96
-
[.output]
58
+
[source.output,html]
59
+
----
60
+
<div class="paragraph">
61
+
<p><a href="http://asciidoctor.org"><strong>Asciidoctor</strong></a> running on <a href="http://opalrb.com"><em>Opal</em></a> brings AsciiDoc to Node.js!</p>
62
+
</div>
63
+
----
97
64
98
-
<div class="paragraph">
99
-
<p><a href="http://asciidoctor.org"><strong>Asciidoctor</strong></a> running on <a href="http://opalrb.com"><em>Opal</em></a> brings AsciiDoc to Node.js!</p>
100
-
</div>
65
+
It's also possible to use the following `script` tag directly into your HTML page:
0 commit comments