Skip to content

Commit ff7904f

Browse files
committed
Add documentation download link
1 parent e620024 commit ff7904f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+23
-3
lines changed

.DS_Store

0 Bytes
Binary file not shown.
3.72 MB
Binary file not shown.

docs/liberty/getting-started.md

Lines changed: 6 additions & 0 deletions

pdf/ly_user_guide.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
BASE_URL = "http://docs.nomana-it.fr"
99
TEMP_FOLDER = "pdf-temp"
10-
OUTPUT_FOLDER = "pdf-output"
10+
OUTPUT_FOLDER = "../docs/assets/pdf"
1111
COVER_FOLDER = "pdf-cover"
1212
PDF_NAME = "Liberty_User_Guide.pdf"
1313
COVER_FILE = os.path.join(COVER_FOLDER, "liberty_cover.pdf")
@@ -61,7 +61,7 @@ def flatten_nav(nav, level=1, parent_number=""):
6161
return pages
6262

6363
# Generate a title page for a chapter
64-
def generate_title_page(title, description, output_file):
64+
def generate_title_page(title, description, output_file, logo_path):
6565
title_html = f"""
6666
<!DOCTYPE html>
6767
<html lang="en">
@@ -95,6 +95,7 @@ def generate_title_page(title, description, output_file):
9595
</head>
9696
<body>
9797
<div class="container">
98+
<img src="file://{logo_path}" alt="Logo" style="max-height: 100px; max-width: 200px;" />
9899
<h1>{title}</h1>
99100
<p>{description}</p>
100101
</div>
@@ -226,7 +227,8 @@ def generate_pdf_with_cover_and_toc(base_url, pages_with_titles):
226227
if description: # Generate a title page
227228
title_page_path = os.path.join(TEMP_FOLDER, f"{title.replace(' ', '_')}_title.html")
228229
title_pdf_path = os.path.join(TEMP_FOLDER, f"{title.replace(' ', '_')}_title.pdf")
229-
generate_title_page(title, description, title_page_path)
230+
logo_path = os.path.abspath(os.path.join(COVER_FOLDER, "logo_ly.png"))
231+
generate_title_page(title, description, title_page_path, logo_path)
230232

231233
title_page = context.new_page()
232234
title_page.goto(f"file://{os.path.abspath(title_page_path)}")

pdf/pdf-cover/logo_ly.png

14.6 KB

pdf/pdf-output/Liberty_User_Guide.pdf

163 KB
Binary file not shown.

pdf/pdf-temp/1._Getting_Started_title.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
</head>
3232
<body>
3333
<div class="container">
34+
<img src="file:///Users/franckblettner/Documents/Tools/JekyllProjects/fblettner.github.io/pdf/pdf-cover/logo_ly.png" alt="Logo" style="max-height: 100px; max-width: 200px;" />
3435
<h1>1. Getting Started</h1>
3536
<p>Learn the basics of Liberty Framework.</p>
3637
</div>
13.5 KB
Binary file not shown.

pdf/pdf-temp/2._Release_Notes_title.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
</head>
3232
<body>
3333
<div class="container">
34+
<img src="file:///Users/franckblettner/Documents/Tools/JekyllProjects/fblettner.github.io/pdf/pdf-cover/logo_ly.png" alt="Logo" style="max-height: 100px; max-width: 200px;" />
3435
<h1>2. Release Notes</h1>
3536
<p>See what's new in the latest release.</p>
3637
</div>
13.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)