Skip to content

Commit

Permalink
Update jsdoc URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Jun 26, 2023
1 parent b0623fd commit 4849126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Asciidoctor.js
version: '3.0'
asciidoc:
attributes:
url-jsdoc-latest: 'http://asciidoctor.github.io/asciidoctor.js/main'
url-jsdoc-latest: 'https://asciidoctor.github.io/asciidoctor.js/main/'
nav:
- modules/setup/nav.adoc
- modules/processor/nav.adoc
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/setup/pages/quick-tour.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Alternatively, you can use the function `convertFile` to convert a file containi
var doc = asciidoctor.convertFile('/path/to/file.adoc') // <1>
```
<1> The command will output to the file `file.html` in the same directory. +
The variable `doc` will contain an {uri-js-api-doc}/#document[Asciidoctor.Document] object.
The variable `doc` will contain an {url-jsdoc-latest}/#document[Asciidoctor.Document] object.

Alternatively, you can capture the HTML 5 output in a variable instead of writing it to a file:

Expand All @@ -60,7 +60,7 @@ var html = asciidoctor.convert(fs.readFileSync('/path/to/file.adoc')) // <1>

== Load and convert

To parse an AsciiDoc file into an {uri-js-api-doc}/#document[Asciidoctor.Document] object:
To parse an AsciiDoc file into an {url-jsdoc-latest}/#document[Asciidoctor.Document] object:

```js
var doc = asciidoctor.loadFile('file.adoc')
Expand All @@ -74,7 +74,7 @@ console.log(doc.getAttributes())
```

More than likely, you will want to convert the document.
To convert an {uri-js-api-doc}/#document[Asciidoctor.Document] to HTML5, use the `convert` function on a `Document`:
To convert an {url-jsdoc-latest}/#document[Asciidoctor.Document] to HTML5, use the `convert` function on a `Document`:

```js
var doc = asciidoctor.loadFile('file.adoc')
Expand Down

0 comments on commit 4849126

Please sign in to comment.