From 52ec1d31109963db806b099cd8a51e4a776a03aa Mon Sep 17 00:00:00 2001 From: hulkoba Date: Wed, 8 Apr 2026 10:01:52 +0200 Subject: [PATCH 1/3] style(docs): show edit on github btn in same line as title --- docs/_layouts/default.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 63670b0804..34028984b9 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -69,12 +69,14 @@
-

{{ title }}

- {% if edit != false %} - +

{{ title }} + + {% if edit != false %} + {% include edit_button.html %} - {% endif %} + {% endif %} +

{% if sub_title %}

{{ sub_title}}

{% endif %} From 5204a346aa02c87306efcb34ed32b1011a456ecf Mon Sep 17 00:00:00 2001 From: hulkoba Date: Wed, 8 Apr 2026 10:02:21 +0200 Subject: [PATCH 2/3] fix(docs): fix path to GitHub edit pages --- docs/_includes/edit_button.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_includes/edit_button.html b/docs/_includes/edit_button.html index 801ef54442..da340b2778 100644 --- a/docs/_includes/edit_button.html +++ b/docs/_includes/edit_button.html @@ -1,4 +1,4 @@ -{% assign pagePath = page.inputPath | replace: "./", "" %} +{% assign pagePath = page.inputPath | replace: "./", "" | replace: "_guides", "guides" %} Date: Tue, 14 Apr 2026 09:15:30 +0200 Subject: [PATCH 3/3] fix: format edit-icon-path in collection config --- docs/_includes/edit_button.html | 3 +-- docs/eleventy.config.js | 8 +++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/_includes/edit_button.html b/docs/_includes/edit_button.html index da340b2778..c01e84d97b 100644 --- a/docs/_includes/edit_button.html +++ b/docs/_includes/edit_button.html @@ -1,9 +1,8 @@ -{% assign pagePath = page.inputPath | replace: "./", "" | replace: "_guides", "guides" %} diff --git a/docs/eleventy.config.js b/docs/eleventy.config.js index 3ff0e68e26..cacf3a56fb 100644 --- a/docs/eleventy.config.js +++ b/docs/eleventy.config.js @@ -18,7 +18,9 @@ module.exports = eleventyConfig => { eleventyConfig.addGlobalData('permalink', '/{{ page.filePathStem }}.html'); eleventyConfig.addCollection('guides', collectionApi => { - return collectionApi.getFilteredByTag('guides').sort((a, b) => a.data.index - b.data.index); + return collectionApi + .getFilteredByTag('guides') + .sort((a, b) => a.data.index - b.data.index); }); eleventyConfig.addCollection('pages', collectionApi => { @@ -43,6 +45,10 @@ module.exports = eleventyConfig => { .sort((a, b) => b.date - a.date || b.inputPath.localeCompare(a.inputPath)); }); + eleventyConfig.addFilter("formatInputPath", function(value) { + return value.replace("./", "").replace("_guides", "guides").replace("_posts", "post"); + }); + eleventyConfig.addFilter('first_paragraph', function(content) { const marker = '

'; const idx = content.indexOf(marker);