summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD Delmar Davis <don@suspectdevices.com>2025-01-09 12:34:22 -0800
committerD Delmar Davis <don@suspectdevices.com>2025-01-09 12:34:22 -0800
commit573ad0c88f82b5aef18f426d113ecfce881a07e4 (patch)
tree83c0c8b20b3d8401d79883f0281c78824490deae
parent6fb7de7382305945542a9fbd72ffe9dd33cea1b9 (diff)
try to get mermaid to render to pdf
-rw-r--r--mkdocs.yml13
-rw-r--r--whiskey/drink.py3
2 files changed, 10 insertions, 6 deletions
diff --git a/mkdocs.yml b/mkdocs.yml
index 0a976f5..93b2fe9 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -27,11 +27,14 @@ copyright: Copyright &copy; 2016 - 2025 D. Delmar Davis
plugins:
- search
- - with-pdf
- #render_js: true
- #exclude_pages:
- # - 'zeearchive/'
- #cover_subtitle: Notes on Systems
+ - with-pdf:
+ cover_subtitle: Notes on Systems
+ render_js: true
+ #relaxedjs_path: /usr/local/bin/relaxed
+ headless_chrome_path: google-chrome
+ exclude_pages:
+ - 'zeearchive/'
+
- mermaid2
markdown_extensions:
diff --git a/whiskey/drink.py b/whiskey/drink.py
index 5fff0fb..4a0ae0d 100644
--- a/whiskey/drink.py
+++ b/whiskey/drink.py
@@ -14,11 +14,12 @@ import subprocess
app = Flask(__name__)
load_dotenv()
+
GITHUB_SECRET = os.getenv("GITHUB_SECRET")
@app.route("/whiskey/<style>",methods = ['POST', 'GET'])
def whiskey(style):
-
+
# Extract signature header
signature = request.headers.get("X-Hub-Signature")
if not signature or not signature.startswith("sha1="):