Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Casey Icenhour <cticenhour@gmail.com>
  • Loading branch information
GiudGiud and cticenhour committed Oct 2, 2023
1 parent 4ea18dd commit 2906b05
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/MooseDocs/extensions/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ def postExecute(self):
target_page = self.translator.findPages(path_value_cut)
filter_page = self.translator.findPages("filter/index.html")
if len(target_page) != 1:
LOG.warning(str(len(target_page)) + " pages found after truncating address when "
"tagging for page initially at address: " + path_value)
LOG.error(str(len(target_page)) + " pages found after truncating address when "
"tagging for page initially at address: " + path_value)
if len(filter_page) != 1:
LOG.warning(str(len(filter_page)) + " pages have been found for the filter page "
"when building tagged pages relative links")
# we did not find the pages, cannot search for their relative path
# do the next best thing
"when building relative links for tagged pages!")
# We did not find the pages, thus cannot search for their relative path
# So we simply take the full path value and use it to create the link
if (len(target_page) == 0 or len(filter_page) == 0):
link_value = '/' + path_value_cut.replace('.md', '.html')
else:
Expand Down

0 comments on commit 2906b05

Please sign in to comment.