@antora/cli 3.0.0-beta.3 → 3.0.0-rc.1

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.
Files changed (3) hide show
  1. package/README.md +6 -4
  2. package/lib/cli.js +5 -6
  3. package/package.json +9 -5
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Antora CLI
2
2
 
3
3
  The command line interface (CLI) for Antora.
4
+ This package provides the `antora` command (i.e., bin script) to run Antora.
5
+ It does not include the site generator, which must be installed separately.
4
6
 
5
7
  [Antora](https://antora.org) is a modular static site generator designed for creating documentation sites from AsciiDoc documents.
6
8
  Its site generator aggregates documents from versioned content repositories and processes them using [Asciidoctor](https://asciidoctor.org).
@@ -13,7 +15,7 @@ Once these packages are installed, you can use the `antora` command to generate
13
15
  Let's start by installing the CLI.
14
16
 
15
17
  ```sh
16
- npm install -g @antora/cli
18
+ npm i -g @antora/cli
17
19
  ```
18
20
 
19
21
  This package adds the `antora` command to your PATH.
@@ -24,10 +26,10 @@ antora -v
24
26
  ```
25
27
 
26
28
  Next, install a site generator.
27
- The default site generator will be sufficient for most users.
29
+ The site generator provided by Antora will be sufficient for most users.
28
30
 
29
31
  ```sh
30
- npm install -g @antora/site-generator-default
32
+ npm i -g @antora/site-generator
31
33
  ```
32
34
 
33
35
  The `antora` command (specifically the implicit `generate` subcommand) will look for this package by default.
@@ -37,7 +39,7 @@ The `antora` command (specifically the implicit `generate` subcommand) will look
37
39
  To run Antora, you'll need a playbook file and at least one content (source) repository.
38
40
  Consult the [quickstart](https://docs.antora.org/antora/latest/install-and-run-quickstart/) to find an example.
39
41
 
40
- Once you have your content sources set up, just point the `antora` command at your playbook file:
42
+ Once you have your content sources set up, point the `antora` command at your playbook file:
41
43
 
42
44
  ```sh
43
45
  antora antora-playbook.yml
package/lib/cli.js CHANGED
@@ -51,9 +51,10 @@ function requireLogger (fromPath = undefined, moduleName = '@antora/logger') {
51
51
  return (
52
52
  requireLogger.cache ||
53
53
  (requireLogger.cache = fromPath ? userRequire(moduleName, { paths: [fromPath] }) : require(moduleName))
54
- )
55
- } catch {}
56
- return fromPath && (requireLogger.cache = require(moduleName))
54
+ ) // require('@antora/logger')
55
+ } catch {
56
+ return fromPath && (requireLogger.cache = require(moduleName))
57
+ }
57
58
  }
58
59
 
59
60
  cli
@@ -140,9 +141,7 @@ cli
140
141
  if (generator && generator.charAt() !== '.') msg += ` Try installing the '${generator}' package.`
141
142
  return exitWithError(err, errorOpts, msg)
142
143
  }
143
- return generateSite()
144
- .then(exit)
145
- .catch((err) => exitWithError(err, errorOpts))
144
+ return generateSite().then(exit, (err) => exitWithError(err, errorOpts))
146
145
  })
147
146
  .options.sort((a, b) => a.long.localeCompare(b.long))
148
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/cli",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-rc.1",
4
4
  "description": "The command line interface for Antora.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",
@@ -17,14 +17,18 @@
17
17
  "bin": {
18
18
  "antora": "bin/antora"
19
19
  },
20
+ "scripts": {
21
+ "test": "_mocha"
22
+ },
20
23
  "dependencies": {
21
- "@antora/logger": "3.0.0-beta.3",
22
- "@antora/playbook-builder": "3.0.0-beta.3",
24
+ "@antora/logger": "3.0.0-rc.1",
25
+ "@antora/playbook-builder": "3.0.0-rc.1",
23
26
  "@antora/user-require-helper": "~2.0",
24
27
  "commander": "~8.3"
25
28
  },
26
29
  "devDependencies": {
27
- "@antora/site-publisher": "3.0.0-beta.3",
30
+ "@antora/site-publisher": "3.0.0-rc.1",
31
+ "@asciidoctor/core": "~2.2",
28
32
  "convict": "~6.2",
29
33
  "kapok-js": "~0.10"
30
34
  },
@@ -43,5 +47,5 @@
43
47
  "static site",
44
48
  "web publishing"
45
49
  ],
46
- "gitHead": "45da95a2e2dea538379d2d9f42013d2208fb86c3"
50
+ "gitHead": "044371a33e2c0fed9724d30945bbb549d64845d5"
47
51
  }