From 578f659d0b2cdc30606d22e351ffb5bc62098c98 Mon Sep 17 00:00:00 2001 From: Marco Kamner Date: Sun, 15 Jun 2025 21:13:03 +0200 Subject: [PATCH 1/3] Add tech-playground embedding on handle_path directive --- src/docs/index.html | 4 ++++ .../markdown/caddyfile/directives/handle_path.md | 13 +++++++++++-- src/old/resources/css/docs.css | 4 ++++ src/resources/js/vendor/headless.min.js | 1 + 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/resources/js/vendor/headless.min.js diff --git a/src/docs/index.html b/src/docs/index.html index e0c28aef..0ef33d23 100644 --- a/src/docs/index.html +++ b/src/docs/index.html @@ -4,6 +4,7 @@ {{if not (fileExists $markdownFilePath)}}{{httpError 404}}{{end}} {{$markdownFile := (include $markdownFilePath | splitFrontMatter)}} {{$title := default $markdownFilename $markdownFile.Meta.title}} +{{$headless := default false $markdownFile.Meta.headless}} @@ -27,5 +28,8 @@ {{include "/old/includes/footer.html"}} + {{if $headless}} + + {{end}} diff --git a/src/docs/markdown/caddyfile/directives/handle_path.md b/src/docs/markdown/caddyfile/directives/handle_path.md index 7e543175..f49851f8 100644 --- a/src/docs/markdown/caddyfile/directives/handle_path.md +++ b/src/docs/markdown/caddyfile/directives/handle_path.md @@ -1,5 +1,6 @@ --- title: handle_path (Caddyfile directive) +headless: true ---