Skip to content
Snippets Groups Projects
Commit 52ac80d3 authored by mathias.chouet's avatar mathias.chouet
Browse files

mkdocs2pdf: remove changelog versions from summary

parent c9beb488
No related branches found
No related tags found
1 merge request!74Resolve "Générer la documentation en PDF"
......@@ -108,7 +108,11 @@ def convertMdToTex(filePath):
if line.strip() == '\\begin{document}':
bContent = True
for i, line in enumerate(ls):
ls[i] = line.replace('\\includegraphics', '\\includegraphics[max size={\\textwidth}{0.9\\textheight}]').replace('\\begin{figure}[htbp]', '\\begin{figure}[h!]')
l = line
l = l.replace('\\includegraphics', '\\includegraphics[max size={\\textwidth}{0.9\\textheight}]')
l = l.replace('\\begin{figure}[htbp]', '\\begin{figure}[h!]')
l = re.sub(r'(\\subsubsection)({[0-9]+.[0-9]+.[0-9]+)', r'\1*\2', l)
ls[i] = l
with open('{}.tex'.format(filePath), 'w') as f:
f.writelines(ls)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment