This commit is contained in:
Marc Beninca 2020-09-26 00:52:12 +02:00
parent c3c2526185
commit ba4036f3ad
2 changed files with 14 additions and 14 deletions

View file

@ -6,9 +6,9 @@ import subprocess
import sphinx.cmd.build
TRAVAUX = ['probatoire']
INPUT = ["cnam"]
OUTPUT = "out"
TRAVAUX = ['mémoire']
INPUT = ['cnam']
OUTPUT = 'out'
def others():
@ -26,19 +26,19 @@ def main():
shutil.rmtree(output_directory, ignore_errors=True)
for doc in INPUT:
arguments = [
"-E",
"-j", "2",
"-b", "html",
"-D", "project={}".format(doc),
"-D", "master_doc={}".format("index"),
"-D", "html_theme={}".format("sphinx_rtd_theme"),
# "-C",
"-c", directory,
'-E',
'-j', '2',
'-b', 'html',
'-D', 'project={}'.format(doc),
'-D', 'master_doc={}'.format('index'),
'-D', 'html_theme={}'.format('sphinx_rtd_theme'),
# '-C',
'-c', directory,
os.path.join(directory, doc),
os.path.join(output_directory, doc),
]
sphinx.cmd.build.build_main(arguments)
if __name__ == "__main__":
if __name__ == '__main__':
main()

View file

@ -6,8 +6,8 @@ import subprocess
import sys
DOCUMENTS = [
('document', 'mémoire'),
('présentation', 'présentation'),
# ('document', 'mémoire'),
# ('présentation', 'présentation'),
]
TMP = 'tmp'