-
Notifications
You must be signed in to change notification settings - Fork 8
/
generateAll.py
49 lines (40 loc) · 1.44 KB
/
generateAll.py
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
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/python
#
# Please run this script from your checkout directory of
# the Frank!Runner. See CONTRIBUTING.md for details on what it does.
#
# This script is needed to build the manual for the Frank!Framework.
# It does two things:
#
# i)
# Run TutorialSteps. See the comments in createAllSnippets.py for details.
#
# ii)
# Build download zips. See the comments in file "buildDownloadZips.py"
# for details.
#
# Please run this script before doing the Sphinx build. Sphinx
# needs the output produced by this script.
#
# These lines are needed if Python has not been installed with an installer.
import sys
sys.path.append(".")
from buildDownloadZips import createAllDownloadZips
from createSnippets import createAllSnippets
from createSnippets import META_YML
import os
# Directory where generated download zips are stored.
downloadZipsDir = "docs/source/downloads"
# Configuration file that specifies what to zip.
downloadsDescriptor = "buildDownloadZips.txt"
# Root directory for all version histories of all
# Frank configs
tutorialStepsDir = "srcSteps"
# Output directory in which generated reStructuredText snippets
# are stored.
snippetsDir = "docs/source/snippets"
IBISDOC_XSD = "ibisdoc.xsd"
FRANK_CONFIG_XSD = "FrankConfig.xsd"
hasErrors = createAllDownloadZips(downloadsDescriptor, downloadZipsDir, set([META_YML, IBISDOC_XSD, FRANK_CONFIG_XSD]))
if not hasErrors:
createAllSnippets(tutorialStepsDir, snippetsDir, [IBISDOC_XSD, FRANK_CONFIG_XSD])