From 06f42db349f683874da7d59118cd53c613c01d2c Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Tue, 26 Nov 2024 21:54:15 +0100 Subject: [PATCH 1/2] Fixes broken links in the GitHub pages menu --- docs/_layouts/default.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index 6704fac..b47ebdf 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -47,14 +47,14 @@

{{ page.description | default: site.description | de {% if page.url == "/" %} {% assign classes = "active" %} {% endif %} -
  • 🢄 Main
  • +
  • 🢄 Main
  • {% assign classes = "" %} {% if page.url == "/docs/Tutorial.html" %} {% assign classes = "active" %} {% endif %} -
  • ⌂ Tutorial Home
  • +
  • ⌂ Tutorial Home
  • {% for sitepage in site.pages %} @@ -64,7 +64,7 @@

    {{ page.description | default: site.description | de {% if page.url == sitepage.url %} {% assign classes = "active" %} {% endif %} -
  • {{ sitepage.menu_title }}
  • +
  • {{ sitepage.menu_title }}
  • {% endif %} {% endfor %} From fffe945f388be0187bac72aaf6c7e1ee15f2635a Mon Sep 17 00:00:00 2001 From: Piotr Spieker Date: Tue, 26 Nov 2024 21:58:15 +0100 Subject: [PATCH 2/2] Add config comment how to test link compatibility with baseurls --- _config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_config.yml b/_config.yml index b881b7a..0e26dfb 100644 --- a/_config.yml +++ b/_config.yml @@ -23,6 +23,9 @@ tagline: decision-making for robotics # Support collapsible details/summary sections markdown: CommonMarkGhPages +# Uncomment this in a local setup, in order to test link compatibility with GitHub Pages +# baseurl: /base + commonmark: options: ["UNSAFE", "SMART", "FOOTNOTES"] extensions: ["strikethrough", "autolink", "table", "tagfilter"]