From 9af3eedafa0c3192bb8e14b8e5dc1a42e47c3159 Mon Sep 17 00:00:00 2001 From: Ekaterina <69527819+KateVishnya@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:24:14 +0500 Subject: [PATCH] FIX: Update includes for files with diagrams (#26) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updating processing the url and repo_url (#22) * update (includes.py): path processing * upgate (includes.py): update processing repo_url * update: add test * update (readme.md): add note for repo_url * update readme and test * resolve conflict * update: deleted print * fix: added error handling * fix: full links Co-authored-by: Екатерина Московская * update: bump version to 1.1.15 * fix (docs): minor fixes * fix: style errors * update includes.py * update: checking the included links * fix (includes.py): re, exceptions_characters * fix: add exceptions * update readme, add readme_ru * fix: includes.py * added test from_test_links.md * added test_include_internal_links * fix test_include_internal_links * fix tests * fix tests * fix tests * fix (Readme_ru.md): fixed typos * fix: correction of syntax errors * fix: correction of typos, added exception handling when opening url * techtechnical: rename file for test * fix: tests * fix: change timeout * fix: added flag allow_failure * fix (docs): style and grammar fixes * fix (tests): prepare for master branch * fix: typo in message * fix: path for error links * update changelog * update changelog (version) * update: version --------- Co-authored-by: Екатерина Московская Co-authored-by: holamgadol --- changelog.md | 4 ++++ foliant/preprocessors/includes.py | 2 +- setup.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 15477c9..dfb0923 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# 1.1.17 + +- Fix: fixed a link processing error for files with diagrams + # 1.1.16 - Feat: added 'allow_failure' and 'stub_text` options diff --git a/foliant/preprocessors/includes.py b/foliant/preprocessors/includes.py index 8a2c9bf..eb6a582 100644 --- a/foliant/preprocessors/includes.py +++ b/foliant/preprocessors/includes.py @@ -731,7 +731,7 @@ def _process_include( if self.options['allow_failure']: self.logger.error(f'The url or repo_url link is not correct, file not found: {included_file_path}') - path_error_link = Path(self._cache_dir_path/'_error_link').resolve() + path_error_link = Path(self.project_path/'.error_link').resolve() if not Path(path_error_link).exists(): Path(path_error_link).mkdir() diff --git a/setup.py b/setup.py index 58127c9..d518e3e 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ description=SHORT_DESCRIPTION, long_description=LONG_DESCRIPTION, long_description_content_type='text/markdown', - version='1.1.16', + version='1.1.17', author='Konstantin Molchanov', author_email='moigagoo@live.com', url='https://github.com/foliant-docs/foliantcontrib.includes',