From 07a5d648d3aebb55e29276bda27ad26dbf9f79e9 Mon Sep 17 00:00:00 2001 From: bruno Date: Mon, 23 Oct 2023 19:15:59 -0300 Subject: [PATCH] Fix NLU summary position --- docs/markdown/another_sample_model_report.md | 2 +- docs/markdown/sample_model_report.md | 2 +- rasa_model_report/controllers/markdown_controller.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/markdown/another_sample_model_report.md b/docs/markdown/another_sample_model_report.md index ed80ce3..c975d01 100644 --- a/docs/markdown/another_sample_model_report.md +++ b/docs/markdown/another_sample_model_report.md @@ -4,8 +4,8 @@ - [Overview](#overview) - [Config](#configs) - [Intents](#intents) - - [NLU](#nlu) - [Entities](#entities) + - [NLU](#nlu) - [Core](#core) - [E2E Coverage](#e2e) diff --git a/docs/markdown/sample_model_report.md b/docs/markdown/sample_model_report.md index 4161e02..f54fd3e 100644 --- a/docs/markdown/sample_model_report.md +++ b/docs/markdown/sample_model_report.md @@ -4,8 +4,8 @@ - [Overview](#overview) - [Config](#configs) - [Intents](#intents) - - [NLU](#nlu) - [Entities](#entities) + - [NLU](#nlu) - [Core](#core) - [E2E Coverage](#e2e) diff --git a/rasa_model_report/controllers/markdown_controller.py b/rasa_model_report/controllers/markdown_controller.py index d580432..0cbf1e2 100644 --- a/rasa_model_report/controllers/markdown_controller.py +++ b/rasa_model_report/controllers/markdown_controller.py @@ -137,7 +137,7 @@ def build_summary(self) -> str: if os.path.isfile(self.config_report_path): sections.insert(1, " - [Config](#configs)\n") if self.nlu.is_connected(): - sections.insert(3, " - [NLU](#nlu)\n") + sections.insert(4, " - [NLU](#nlu)\n") return f"## Index\n{''.join(sections)}\n"