angular-cn/aio/tools/transforms/examples-package/processors
Pete Bacon Darwin fb97e67fcb build(docs-infra): fail if there are unused example regions (#40479)
We can define regions in our examples that can be referenced
and rendered in guides as code snippets. It is quite hard to ensure
that these regions are maintained correctly. One reason for this is
it is hard to know whether a region is being used or not.

This commit adds a new processor that checks for unused named
regions in examples and fails if any are found.

Fixes #19761

PR Close #40479
2021-01-20 16:12:15 -08:00
..
check-for-unused-example-regions.js build(docs-infra): fail if there are unused example regions (#40479) 2021-01-20 16:12:15 -08:00
check-for-unused-example-regions.spec.js build(docs-infra): fail if there are unused example regions (#40479) 2021-01-20 16:12:15 -08:00
collect-examples.js build(aio): initialise `exampleMap` correctly (#22502) 2018-03-01 08:10:15 -08:00
collect-examples.spec.js build(aio): initialise `exampleMap` correctly (#22502) 2018-03-01 08:10:15 -08:00
render-examples.js build(docs-infra): throw error if using `title` on code snippets (#26514) 2018-10-18 09:54:17 -07:00
render-examples.spec.js test(docs-infra): run tests in random order (and make them pass) (#31527) 2019-07-18 10:17:13 -07:00