Skip to content

Commit

Permalink
Merge 7e64e9e into 7180e07
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanCheney committed May 19, 2015
2 parents 7180e07 + 7e64e9e commit cbcb20f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mkdocs/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def indent_print(self, depth=0):
def set_active(self, active=True):
self.active = active
for ancestor in self.ancestors:
ancestor.active = active
ancestor.set_active(active)


class Header(object):
Expand All @@ -195,6 +195,10 @@ def indent_print(self, depth=0):
ret += item.indent_print(depth + 1)
return ret

def set_active(self, active=True):
self.active = active
for ancestor in self.ancestors:
ancestor.set_active(active)

def _path_to_page(path, title, url_context, use_directory_urls):
if title is None:
Expand Down

0 comments on commit cbcb20f

Please sign in to comment.