diff --git a/aio/tools/transforms/authors-package/watchr.js b/aio/tools/transforms/authors-package/watchr.js index 9d28225102..70982f43dc 100644 --- a/aio/tools/transforms/authors-package/watchr.js +++ b/aio/tools/transforms/authors-package/watchr.js @@ -29,7 +29,15 @@ if (process.argv.indexOf('--watch-only') === -1) { console.log('Skip the full doc-gen by running: `yarn docs-watch --watch-only`'); console.log('================================================================'); const {Dgeni} = require('dgeni'); - var dgeni = new Dgeni([require('../angular.io-package')]); + const dgeni = new Dgeni([require('../angular.io-package')]); + + // Turn off all the potential failures for this doc-gen one-off run. + // This enables authors to run `docs-watch` while the docs are still in an unstable state. + const injector = dgeni.configureInjector(); + injector.get('linkInlineTagDef').failOnBadLink = false; + injector.get('checkAnchorLinksProcessor').$enabled = false; + injector.get('renderExamples').ignoreBrokenExamples = true; + p = dgeni.generate(); }