Skip to content

Commit 0662211

Browse files
committed
work on pdf book version
1 parent 29386e5 commit 0662211

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ run:
1111

1212
bookbuild:
1313
cp -R content tempcontent
14-
python ./utilities/transform_book.py
14+
python transform_book.py pdf
1515
pelican -t theme -s book_settings.py -o generated/book tempcontent
1616
cp -R static-html/* generated/book/
1717
cp -R static/* generated/book/

transform_book.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180

181181
def transform(output_format='pdf'):
182182
dirs = os.listdir(BASE_DIR)
183-
print os.listdir(BASE_DIR)
183+
print(os.listdir(BASE_DIR))
184184
for d in dirs:
185185
if isdir(BASE_DIR + d):
186186
# modify all markdown files in directory
@@ -197,7 +197,7 @@ def transform(output_format='pdf'):
197197
write_f.write("")
198198
else:
199199
write_f.write(l)
200-
print 'prepared file ' + str(d) + '/' + str(f)
200+
print('prepared file ' + str(d) + '/' + str(f))
201201

202202

203203
if __name__ == '__main__':

0 commit comments

Comments
 (0)