diff options
| author | D Delmar Davis <don@suspectdevices.com> | 2025-01-09 12:34:22 -0800 |
|---|---|---|
| committer | D Delmar Davis <don@suspectdevices.com> | 2025-01-09 12:34:22 -0800 |
| commit | 573ad0c88f82b5aef18f426d113ecfce881a07e4 (patch) | |
| tree | 83c0c8b20b3d8401d79883f0281c78824490deae | |
| parent | 6fb7de7382305945542a9fbd72ffe9dd33cea1b9 (diff) | |
try to get mermaid to render to pdf
| -rw-r--r-- | mkdocs.yml | 13 | ||||
| -rw-r--r-- | whiskey/drink.py | 3 |
2 files changed, 10 insertions, 6 deletions
@@ -27,11 +27,14 @@ copyright: Copyright © 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="): |
