Skip to content

Commit

Permalink
FIX: Update includes for files with diagrams (#26)
Browse files Browse the repository at this point in the history
* 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: Екатерина Московская <[email protected]>

* 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: Екатерина Московская <[email protected]>
Co-authored-by: holamgadol <[email protected]>
  • Loading branch information
3 people authored Mar 27, 2024
1 parent cafcbf1 commit 9af3eed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion foliant/preprocessors/includes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
url='https://github.com/foliant-docs/foliantcontrib.includes',
Expand Down

0 comments on commit 9af3eed

Please sign in to comment.