This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore all includes directories when linting (gravitational#201)
The intention in gravitational#192 was to ignore directories containing partials when linting, since (a) these partials would be included within docs pages when linting anyway, and (b) the linter returns errors when encountering default parameter assignments within partials. The change in gravitational#192 ignored includes in 'content/*/docs/pages/includes/*'. However, in the `gravitational/teleport` CI container, docs content is mounted to `content/`, without a version directory. This means that default parameter assignments in `gravitational/teleport` partials still fail the linter, since the partial URL would be something like `content/docs/pages/includes/add-role-to-user.mdx`. This change makes the pattern for ignoring partials more general so it matches any file path with an `/includes/` segment.
- Loading branch information