1.5.8 • Published 3 years ago

respec-validator v1.5.8

Weekly downloads
32
License
CC0-1.0
Repository
github
Last release
3 years ago

respec-validator

A tool that helps validates a ReSpec document for publication. It:

  • Checks that there are not ReSpec warnings or errors.
  • Generated output conforms to validator.nu.
  • There are not broken links/cross-references to other documents.

Installation

npm install -g respec-validator 

Options

Usage: npx respec-validator [options] [respec-file]

The following options are available:

  • -l, --no-links Don't validate cross references.
  • -v, --no-validator Don't perform HTML validation.
  • -h, --help Display this usage guide.
  • --status string Override the spec's status (e.g., "ED").
  • --gh-token string A GitHub token, if needed: https://github.com/settings/tokens
  • --src string Optional, a ReSpec src file (default to index.html).
  • --debug Shows addition debugging information.

Examples

Check all warnings/errors, HTML, and cross references.

$ npx respec-validator index.html

Don't do link check:

$ npx respec-validator --no-links spec.html

FAQ

Can I make it run faster?

If you already have Chrome installed, you can set the following environment variables to avoid downloading Chromium unnecessarily.

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
# Replace the path with your actual Chromium browser path
export PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome
# Some common values for above might be:
# on MacOS: "/Applications/Google Chrome.app/Contents/MacOS/Google chrome"
# on Ubuntu: /usr/bin/google-chrome
# on Windows 10: C:\Users\USER\AppData\Local\Google\Chrome\Application\chome.exe

or, in a GitHub Action workflow (as they have Chrome installed; assuming Ubuntu)

env:
  PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
  PUPPETEER_EXECUTABLE_PATH: /usr/bin/google-chrome
1.5.8

3 years ago

1.5.7

4 years ago

1.5.6

4 years ago

1.5.5

4 years ago

1.5.4

4 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.8

5 years ago

1.4.7

5 years ago

1.4.6

5 years ago

1.4.5

5 years ago

1.4.4

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.6

5 years ago

1.3.5

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago