build
This commit is contained in:
parent
c3c2526185
commit
ba4036f3ad
2 changed files with 14 additions and 14 deletions
24
build.py
24
build.py
|
@ -6,9 +6,9 @@ import subprocess
|
||||||
|
|
||||||
import sphinx.cmd.build
|
import sphinx.cmd.build
|
||||||
|
|
||||||
TRAVAUX = ['probatoire']
|
TRAVAUX = ['mémoire']
|
||||||
INPUT = ["cnam"]
|
INPUT = ['cnam']
|
||||||
OUTPUT = "out"
|
OUTPUT = 'out'
|
||||||
|
|
||||||
|
|
||||||
def others():
|
def others():
|
||||||
|
@ -26,19 +26,19 @@ def main():
|
||||||
shutil.rmtree(output_directory, ignore_errors=True)
|
shutil.rmtree(output_directory, ignore_errors=True)
|
||||||
for doc in INPUT:
|
for doc in INPUT:
|
||||||
arguments = [
|
arguments = [
|
||||||
"-E",
|
'-E',
|
||||||
"-j", "2",
|
'-j', '2',
|
||||||
"-b", "html",
|
'-b', 'html',
|
||||||
"-D", "project={}".format(doc),
|
'-D', 'project={}'.format(doc),
|
||||||
"-D", "master_doc={}".format("index"),
|
'-D', 'master_doc={}'.format('index'),
|
||||||
"-D", "html_theme={}".format("sphinx_rtd_theme"),
|
'-D', 'html_theme={}'.format('sphinx_rtd_theme'),
|
||||||
# "-C",
|
# '-C',
|
||||||
"-c", directory,
|
'-c', directory,
|
||||||
os.path.join(directory, doc),
|
os.path.join(directory, doc),
|
||||||
os.path.join(output_directory, doc),
|
os.path.join(output_directory, doc),
|
||||||
]
|
]
|
||||||
sphinx.cmd.build.build_main(arguments)
|
sphinx.cmd.build.build_main(arguments)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -6,8 +6,8 @@ import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
DOCUMENTS = [
|
DOCUMENTS = [
|
||||||
('document', 'mémoire'),
|
# ('document', 'mémoire'),
|
||||||
('présentation', 'présentation'),
|
# ('présentation', 'présentation'),
|
||||||
]
|
]
|
||||||
TMP = 'tmp'
|
TMP = 'tmp'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue