Skip to content

Commit

Permalink
acknowledgement
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatRSingh committed Jan 9, 2024
1 parent 89ee3e5 commit f2dbfc8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions new-website/utils/tutorials/acknowledgement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Acknowledgement
11 changes: 11 additions & 0 deletions new-website/utils/tutorials/build_pdf_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Requirements:
- pdfunite
- pdfkit
- mdpdf
Example Usage:
- Run the script "fetch_tutorials.py" // It will fetch all the tutorials.
Expand Down Expand Up @@ -74,7 +75,17 @@ def merge_pdf_pages(a: List[str]):
command = command + i + ' '
os.system(command, "merged.pdf")

def compile_information_pages():
"""Converts the Acknowledgent page and content page from
Markdowns to pdf, then they can be merged with the content
pdf using `merge_pdf_pages` function.
"""
os.system('mdpdf -o storage/acknowledgement.pdf acknowledgement.md')
os.system('mdpdf -o storage/contents.pdf contents.md')

if __name__ == "__main__":
os.system("mkdir " + PDF_PATH)
html_to_pdf()
merge_pdf()
compile_information_pages()
1 change: 1 addition & 0 deletions new-website/utils/tutorials/contents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Contents

0 comments on commit f2dbfc8

Please sign in to comment.