Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ChatGPT Image Sep 9, 2026, 04_55_06 PM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
PDF Compiler renders Markdown as polished, configurable PDF documents.
Copyright (C) 2026 John Wooten

This program is free software: you can redistribute it and/or modify
Expand Down
8 changes: 8 additions & 0 deletions static/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PDF Compiler</title>
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='logo.svg') }}">
<script>
(() => {
document.documentElement.classList.add('js');
Expand Down Expand Up @@ -221,6 +222,9 @@
font-size: 12px;
font-weight: 700;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; }
:root[data-theme="dark"] .brand-logo { outline: 1px solid var(--control-border); }
.bug-report:hover { opacity: .9; }
.bug-report:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 720px) {
Expand Down Expand Up @@ -260,9 +264,12 @@
<body>
<main>
<div class="topbar">
<div>
<h1>PDF Compiler</h1>
<p class="intro">Configure one section at a time, then validate and export your PDF or editable Word document.</p>
<div class="brand">
<img class="brand-logo" src="{{ url_for('static', filename='logo.svg') }}" width="48" height="48" alt="">
<div>
<h1>PDF Compiler</h1>
<p class="intro">Configure one section at a time, then validate and export your PDF or editable Word document.</p>
</div>
</div>
<div class="action-group">
<button id="export-config" class="secondary" type="button">Export config</button>
Expand Down
15 changes: 15 additions & 0 deletions tests/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@ def test_metadata_appears_beneath_letterhead_not_as_a_separate_step(self):
)[0]
self.assertIn('name="pdf_format"', document)

def test_logo_is_served_as_svg_favicon(self):
with app.test_client() as client:
page = client.get("/")
self.assertEqual(page.status_code, 200)
self.assertIn(
b'<link rel="icon" type="image/svg+xml" href="/static/logo.svg">',
page.data,
)

icon = client.get("/static/logo.svg")
self.assertEqual(icon.status_code, 200)
self.assertEqual(icon.mimetype, "image/svg+xml")
self.assertIn(b'<svg ', icon.data)
self.assertIn(b'viewBox="0 0 64 64"', icon.data)

@unittest.skipUnless(shutil.which('node'), 'Node is required for configuration browser logic tests')
def test_configuration_round_trip_and_validation(self):
result = subprocess.run(
Expand Down
Loading