def updateDocs(self): if self.config.type not in ('gecko', 'chrome'): return import buildtools.build as build outputPath = os.path.join(self.config.docsDirectory, self.basename) build.generateDocs(self.tempdir, None, [('--quiet', '')], [outputPath], self.config.type)
def updateDocs(self): if not self.config.type == 'gecko': return docsdir = tempfile.mkdtemp(prefix='jsdoc') command = ['hg', 'archive', '-R', get_config().get('extensions', 'jsdocRepository'), '-r', 'default', docsdir] subprocess.check_call(command) try: import buildtools.build as build outputPath = os.path.join(self.config.docsDirectory, self.basename) build.generateDocs(self.tempdir, None, [("-t", docsdir), ("-q", "")], [outputPath], self.config.type) finally: shutil.rmtree(docsdir, ignore_errors=True)