diff --git a/plugins.yml b/plugins.yml index 3e76ae52..a9270a73 100644 --- a/plugins.yml +++ b/plugins.yml @@ -68,7 +68,12 @@ plugins: - llmstxt: preprocess: llmstxt_preprocess.py - + markdown_description: >- + > User documentation for Ibexa DXP covers content management, product catalog, commerce, and site administration for editors and business users. + # Pin links in the generated Markdown (and llms.txt) to this branch's + # version instead of site_url's en/latest, without affecting the HTML + # site's canonical URLs. Update when branching a new version. + base_url: https://doc.ibexa.co/projects/userguide/en/5.0/ autoclean: false full_output: llms-full.txt sections: diff --git a/theme/main.html b/theme/main.html index bdbda737..f13e89e1 100644 --- a/theme/main.html +++ b/theme/main.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% set md_href = page.file.dest_uri | replace('.html', '.md') if page else '' %} {% block htmltitle %} {%- if page and page.meta and page.meta.title -%} {{ page.meta.title }} @@ -20,7 +21,6 @@ {% if page and not page.meta.exclude_from_llmstxt %} - {% set md_href = page.file.dest_uri | replace('.html', '.md') %} {% endif %} @@ -30,7 +30,10 @@ {% block site_nav %} {% if nav %} - - + {% endif %} {% if page.toc %}
@@ -58,6 +61,11 @@ {% block content %} + + {% set ns = namespace(bootstrap_extra_css='') %} {% for md_file in config.extra.append_bootstrap if 'docs' + md_file in page.edit_url %} {% set ns.bootstrap_extra_css = ' bootstrap-iso' %} diff --git a/theme/partials/nav-item.html b/theme/partials/nav-item.html index 006289ea..a647322a 100644 --- a/theme/partials/nav-item.html +++ b/theme/partials/nav-item.html @@ -9,7 +9,8 @@ -
{% elif nav_item == page %}
  • @@ -40,6 +41,9 @@ {% if nav_item.meta.month_change %}New{% endif %} {% if toc | first is defined %} + {# toc_inside_nav: render the TOC with a
    wrapper because it sits inside the + sidebar
  • diff --git a/theme/partials/nav.html b/theme/partials/nav.html index a63cd746..b2934a1a 100644 --- a/theme/partials/nav.html +++ b/theme/partials/nav.html @@ -1,4 +1,7 @@ -