From cb83184e1ab73ad85185e41868ed2b4b0ccd8bd8 Mon Sep 17 00:00:00 2001 From: bidi Date: Fri, 31 Jul 2026 17:34:25 +0300 Subject: [PATCH 1/2] updated markdown controls Signed-off-by: bidi --- theme/partials/content.html | 47 ++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/theme/partials/content.html b/theme/partials/content.html index f1369d1..529c92a 100644 --- a/theme/partials/content.html +++ b/theme/partials/content.html @@ -24,15 +24,46 @@ {% endif %} - {# Link to the Markdown source, published next to this page by copy_markdown.php #} + {# Markdown Controls #} {% if page.file and page.file.src_uri %} -

- - - View as Markdown - -

+ {% set markdown_url = page.file.src_uri|url %} + {% if config.site_url %} + {% set markdown_full_url = config.site_url ~ page.file.src_uri %} + {% else %} + {% set markdown_full_url = markdown_url %} + {% endif %} + {% set claude_prompt = 'Read from ' ~ markdown_full_url ~ ' so I can ask questions about it.' %} +
+
+ + +
+
{% endif %} {{ page.content }} From eb3cf5ab21615985c3cff9f64b6d63a0d00bbafa Mon Sep 17 00:00:00 2001 From: bidi Date: Mon, 3 Aug 2026 14:09:41 +0300 Subject: [PATCH 2/2] updated copy md Signed-off-by: bidi --- copy_markdown.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copy_markdown.php b/copy_markdown.php index 80bb117..3121125 100644 --- a/copy_markdown.php +++ b/copy_markdown.php @@ -3,8 +3,8 @@ * Copies the source Markdown files into the generated site, so every page is * also available in its original Markdown form. * - * `doc/book/v7/introduction/introduction.md` is copied to - * `doc/html/v7/introduction/introduction.md`, making it available as + * `docs/book/v7/introduction/introduction.md` is copied to + * `docs/html/v7/introduction/introduction.md`, making it available as * `/v7/introduction/introduction.md`, next to the generated * `/v7/introduction/introduction/` page. * @@ -12,7 +12,7 @@ * directory. */ -$docPath = isset($argv[1]) ? $argv[1] : 'doc'; +$docPath = $argv[1] ?? 'docs'; $docPath = sprintf('%s/%s', getcwd(), $docPath); $docPath = realpath($docPath);