예제 #1
0
파일: build.py 프로젝트: cuongvng/d2l-book
 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)
예제 #2
0
 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))