Commit 9f3b7f11 authored by Grand Francois's avatar Grand Francois
Browse files

fix(doc): missing links to image in PDF generation

refs #578
Showing with 13 additions and 1 deletion
+13 -1
...@@ -156,6 +156,18 @@ def injectContentIntoModel(mergedDocFilenameTex, lang): ...@@ -156,6 +156,18 @@ def injectContentIntoModel(mergedDocFilenameTex, lang):
runCommand( runCommand(
'ln -s ../../latex/logo_pole.png .' 'ln -s ../../latex/logo_pole.png .'
) )
runCommand(
'ln -s {}/schema_rugosite_fond.png'.format(os.path.join(baseDir, 'docs', lang, 'calculators', 'pam'))
)
runCommand(
'ln -s {}/bloc_cylindre.png'.format(os.path.join(baseDir, 'docs', lang, 'calculators', 'pam'))
)
runCommand(
'ln -s {}/bloc_face_arrondie.png'.format(os.path.join(baseDir, 'docs', lang, 'calculators', 'pam'))
)
runCommand(
'ln -s {}/bloc_base_carree.png'.format(os.path.join(baseDir, 'docs', lang, 'calculators', 'pam'))
)
runCommand( runCommand(
'rm rapport_inrae/logos.tex' 'rm rapport_inrae/logos.tex'
) )
...@@ -176,7 +188,7 @@ def buildPDF(lang): ...@@ -176,7 +188,7 @@ def buildPDF(lang):
cvt = os.path.join( baseDir,'docs/cassiopee_version.tex') cvt = os.path.join( baseDir,'docs/cassiopee_version.tex')
shutil.copy(cvt, modelDir) shutil.copy(cvt, modelDir)
runCommand( os.system(
'latexmk -f -xelatex -pdf -interaction=nonstopmode {} > /dev/null 2>&1'.format(sourceTexFile) 'latexmk -f -xelatex -pdf -interaction=nonstopmode {} > /dev/null 2>&1'.format(sourceTexFile)
) )
# copy generated PDF to release directory # copy generated PDF to release directory
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment