-
Notifications
You must be signed in to change notification settings - Fork 2
/
rebuild-all.bat
39 lines (24 loc) · 1.06 KB
/
rebuild-all.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
REM run this BAT file when your command line is in the same directory as this file
REM clear the contents inside the _build/html directory and dist folder
rmdir dist /s /q
rmdir _build\html /s /q
REM export out the English version and place it in the distribution folder
REM then export out the epub version and copy it into the dist language directory
Set currentLanguage=en
Set SPHINXOPTS=-D language="%currentLanguage%"
call make.bat html
Robocopy ./_build/html ./dist/%currentLanguage%/ /E
rmdir _build\epub /s /q
call make.bat epub
Robocopy ./_build/epub ./dist/%currentLanguage%/epub /E
REM creates MO files for any PO files we might have updated
sphinx-intl build
REM export out the German version and place it in the distribution folder
REM then export out the epub version and copy it into the dist language directory
Set currentLanguage=de
Set SPHINXOPTS=-D language="%currentLanguage%"
call make.bat html
Robocopy ./_build/html ./dist/%currentLanguage%/ /E
rmdir _build\epub /s /q
call make.bat epub
Robocopy ./_build/epub ./dist/%currentLanguage%/epub /E