From 0e3e092fa066996663c608d2eba2ab16a3af60b4 Mon Sep 17 00:00:00 2001 From: davidberenstein1957 Date: Tue, 11 Jun 2024 15:51:37 +0200 Subject: [PATCH] Update jinja templates to hide unrendered navigation --- .../templates/components-gallery/components-list.jinja2 | 4 ++-- .../utils/mkdocs/templates/components-gallery/index.md | 2 +- .../mkdocs/templates/components-gallery/llm-detail.jinja2 | 6 +++++- .../mkdocs/templates/components-gallery/step-detail.jinja2 | 5 ++++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/distilabel/utils/mkdocs/templates/components-gallery/components-list.jinja2 b/src/distilabel/utils/mkdocs/templates/components-gallery/components-list.jinja2 index 3c465761c5..319c69164b 100644 --- a/src/distilabel/utils/mkdocs/templates/components-gallery/components-list.jinja2 +++ b/src/distilabel/utils/mkdocs/templates/components-gallery/components-list.jinja2 @@ -1,8 +1,8 @@ --- -hide: +hide: - toc + - navigation --- - # {{ title }} {{ description }} diff --git a/src/distilabel/utils/mkdocs/templates/components-gallery/index.md b/src/distilabel/utils/mkdocs/templates/components-gallery/index.md index 43ae785df0..eb2914b6a6 100644 --- a/src/distilabel/utils/mkdocs/templates/components-gallery/index.md +++ b/src/distilabel/utils/mkdocs/templates/components-gallery/index.md @@ -1,8 +1,8 @@ --- hide: + - navigation - toc --- - # Components Gallery
diff --git a/src/distilabel/utils/mkdocs/templates/components-gallery/llm-detail.jinja2 b/src/distilabel/utils/mkdocs/templates/components-gallery/llm-detail.jinja2 index 212bbe8601..020008cd24 100644 --- a/src/distilabel/utils/mkdocs/templates/components-gallery/llm-detail.jinja2 +++ b/src/distilabel/utils/mkdocs/templates/components-gallery/llm-detail.jinja2 @@ -1,4 +1,8 @@ -# {{ llm.name }} +--- +hide: + - navigation +--- +{{ llm.name }} {% if llm.docstring.short_description %} {{ llm.docstring.short_description }} diff --git a/src/distilabel/utils/mkdocs/templates/components-gallery/step-detail.jinja2 b/src/distilabel/utils/mkdocs/templates/components-gallery/step-detail.jinja2 index 4be5fdc1ab..43a7d552b7 100644 --- a/src/distilabel/utils/mkdocs/templates/components-gallery/step-detail.jinja2 +++ b/src/distilabel/utils/mkdocs/templates/components-gallery/step-detail.jinja2 @@ -1,5 +1,8 @@ +--- +hide: + - navigation +--- # {{ step.name }} - {% if step.docstring.short_description %} {{ step.docstring.short_description }} {% endif %}