Merge "Switch project-config to promote jobs [3]: Update building"
This commit is contained in:
commit
479bc05d56
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,4 +7,5 @@
|
||||
/.project
|
||||
/.pydevproject
|
||||
*.egg
|
||||
specs/output
|
||||
specs/html
|
||||
docs-site/html
|
||||
|
@ -44,7 +44,7 @@ parser.add_argument(
|
||||
args = parser.parse_args()
|
||||
|
||||
print('Reading documents data from %r' % args.infile)
|
||||
infile = yaml.load(open(args.infile, 'r'))
|
||||
infile = yaml.safe_load(open(args.infile, 'r'))
|
||||
template_path = os.path.dirname(args.infile)
|
||||
|
||||
template_context = {
|
||||
@ -52,7 +52,7 @@ template_context = {
|
||||
'all': infile['documents']
|
||||
}
|
||||
|
||||
outdir = os.path.join(template_path, 'output')
|
||||
outdir = os.path.join(template_path, 'html')
|
||||
if not os.path.exists(outdir):
|
||||
os.makedirs(outdir)
|
||||
|
||||
|
@ -44,7 +44,7 @@ parser.add_argument(
|
||||
args = parser.parse_args()
|
||||
|
||||
print('Reading project data from %r' % args.infile)
|
||||
infile = yaml.load(open(args.infile, 'r'))
|
||||
infile = yaml.safe_load(open(args.infile, 'r'))
|
||||
template_path = os.path.dirname(args.infile)
|
||||
|
||||
template_context = {
|
||||
@ -53,7 +53,7 @@ template_context = {
|
||||
'all': infile['projects'] + infile['programs'],
|
||||
}
|
||||
|
||||
outdir = os.path.join(template_path, 'output')
|
||||
outdir = os.path.join(template_path, 'html')
|
||||
if not os.path.exists(outdir):
|
||||
os.makedirs(outdir)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user