def html(self): self.rst() self.colab() self.sagemaker() run_cmd(['sphinx-build', self.config.rst_dir, self.config.html_dir, '-b html -c', self.config.rst_dir, self.sphinx_opts]) colab.add_button(self.config.colab, self.config.html_dir)
def html(self): tik = datetime.datetime.now() if self.done['html']: return self.done['html'] = True self.rst() self.colab() run_cmd(['sphinx-build', self.config.rst_dir, self.config.html_dir, '-b html -c', self.config.rst_dir, self.sphinx_opts]) tok = datetime.datetime.now() colab.add_button(self.config.colab, self.config.html_dir) logging.info('==d2lbook build html== finished in %s', get_time_diff(tik, tok))