Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add npm script docs #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

fantkolja
Copy link
Collaborator

Detailed docs on how to launch executables

./node_modules/.bin/check-orphan-pages -d tutorials --log-failure-level error
```

Or they can be called as `npm` scripts. For that to work you need to add the `check-orphan-pages` command to the `scripts` section of the `package.json`:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a good reason not to include this in the package.json file in the repo now?

| `--directory`, `-d` | set the root folder of documentation, if there are several root directories, can take a coma separated list, e.g. `-d docs,tutorials` | `"docs"` |
| `--log-failure-level` | if set to `"error"` exits process with `1` if orphan pages are detected | `undefined` |
| `--directory`, `-d` | set the root folder of documentation, if there are several root directories, can take a coma separated list, e.g. `-d docs,tutorials` | `docs` |
| `--log-failure-level` | if set to `error` exits process with `1` if orphan pages are detected | `undefined` |

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably want this to be the default behavior once we've tested it on all the repos, but sensible to avoid breaking builds for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants