Skip to content

Commit

Permalink
Prend en compte le retour d'artragis
Browse files Browse the repository at this point in the history
  • Loading branch information
Situphen committed Jun 9, 2020
1 parent 0b6f9de commit 5e54c51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zds/tutorialv2/publication_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,16 +418,14 @@ def publish(self, md_file_path, base_name, **kwargs):
shutil.copy(str(default_logo_original_path), str(base_directory / 'default_logo.png'))
with open(latex_file_path, mode='w', encoding='utf-8') as latex_file:
latex_file.write(content)
shutil.copy2(latex_file_path, published_content_entity.get_extra_contents_directory())

self.full_tex_compiler_call(latex_file_path, draftmode='-draftmode')
self.full_tex_compiler_call(latex_file_path, draftmode='-draftmode')
self.make_glossary(base_name.split('/')[-1], latex_file_path)
self.full_tex_compiler_call(latex_file_path)

shutil.copy2(latex_file_path, published_content_entity.get_extra_contents_directory())
shutil.copy2(pdf_file_path, published_content_entity.get_extra_contents_directory())
logging.info('published latex=%s, pdf=%s', published_content_entity.has_type('tex'),
published_content_entity.has_type(self.doc_type))

def full_tex_compiler_call(self, latex_file, draftmode: str = ''):
success_flag = self.tex_compiler(latex_file, draftmode)
Expand Down

0 comments on commit 5e54c51

Please sign in to comment.