diff --git a/CHANGES b/CHANGES index 2ffb8c1a8..0b9878189 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,7 @@ Bugs fixed * #2168: Fix raw directive does not work for text writer * #2171: Fix cannot linkcheck url with unicode * #2182: LaTeX: support image file names with more than 1 dots +* #2189: Fix previous sibling link for first file in subdirectory uses last file, not intended previous from root toctree Release 1.3.3 (released Dec 2, 2015) diff --git a/sphinx/environment.py b/sphinx/environment.py index da92f2e81..ac95a4eb6 100644 --- a/sphinx/environment.py +++ b/sphinx/environment.py @@ -1958,6 +1958,8 @@ class BuildEnvironment: if docname in parents_set: # we will warn about this in resolve_toctree() return + if docname in relations: + return includes = getinc(docname) # previous if not previous: