From 06896734d81dc56bbd5c1b28216ee88340302b0e Mon Sep 17 00:00:00 2001 From: Timur Osmanov <54434686+TOsmanov@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:57:23 +0300 Subject: [PATCH] test: enabled by default --- foliant/preprocessors/includes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/foliant/preprocessors/includes.py b/foliant/preprocessors/includes.py index 861b366..7cb1747 100644 --- a/foliant/preprocessors/includes.py +++ b/foliant/preprocessors/includes.py @@ -46,13 +46,14 @@ def __init__(self, *args, **kwargs): self._cache_dir_path = self.project_path / self.options['cache_dir'] self._downloaded_dir_path = self._cache_dir_path / '_downloaded_content' self.src_dir = self.config.get("src_dir") - self.includes_map_enable = False - self.includes_map_anchors = False + self.includes_map_enable = True # TODO: the default value is False + self.includes_map_anchors = True # TODO: the default value is False if 'includes_map' in self.options: self.includes_map_enable = True - self.includes_map = [] if 'anchors' in self.options['includes_map']: self.includes_map_anchors = True + if self.includes_map_enable: + self.includes_map = [] self.logger = self.logger.getChild('includes')