diff --git a/spec/index.html b/spec/index.html index a1b8e995..07fc6519 100644 --- a/spec/index.html +++ b/spec/index.html @@ -52,7 +52,7 @@

Options

`--verbose`Print verbose logging info. `--write-biblio`Emit a biblio file to the specified path. `--assets``assets`"none" for no CSS/JS/etc, "inline" for inline CSS/JS/etc, "external" for external CSS/JS/etc. - `--assets-dir``assetsDir`Directory in which to place assets when using `--assets=external`. + `--assets-dir``assetsDir`Directory in which to place assets when using `--assets=external`. Defaults to "assets". `--lint-spec``lintSpec`Enforce some style and correctness checks. `--error-formatter`The eslint formatter to be used for printing warnings and errors when using `--verbose`. Either the name of a built-in eslint formatter or the package name of an installed eslint compatible formatter. `--strict`Exit with an error if there are warnings. Cannot be used with `--watch`. @@ -84,8 +84,8 @@

Options

-

Stylesheets and Scripts

-

Ecmarkup requires CSS styles and, if you're using the sidebar table of contents, javascript as well. By default CSS and JS dependencies are inlined into the document. You can override this by setting assets to "none" (for example if you want to manually link to external assets). Passing cssOut and jsOut will write the respective files to disk at the given path.

+

Stylesheets and other assets

+

Ecmarkup requires CSS styles and other assets. By default all assets are inlined into the document. You can override this by setting assets to "none" (for example if you want to manually link to external assets) or "external". When using "external" the default directory for assets is `assets` in the same directory as the output file, but you can override this with `--assets-dir`.

diff --git a/src/Spec.ts b/src/Spec.ts index bb072e49..954bf953 100644 --- a/src/Spec.ts +++ b/src/Spec.ts @@ -395,7 +395,7 @@ export default class Spec { this.opts.assets !== 'external' && this.opts.assetsDir != null ) { - throw new Error(`--assets=${this.opts.assets} cannot be used --assets-dir"`); + throw new Error(`--assets=${this.opts.assets} cannot be used with --assets-dir"`); } if (this.opts.multipage) { diff --git a/src/cli.ts b/src/cli.ts index e33f3506..575c5c5b 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -73,7 +73,7 @@ if (args.assets != null && !['none', 'inline', 'external'].includes(args.assets) } if (args.assets != null && args.assets !== 'external' && args['assets-dir'] != null) { - fail(`--assets=${args.assets} cannot be used --assets-dir"`); + fail(`--assets=${args.assets} cannot be used with --assets-dir"`); } if (args.multipage) {