From 9e3ac74df822a066f6a2130d663bfb8286b399c9 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Sun, 29 Jan 2023 20:16:53 +0100 Subject: [PATCH] Make sure to expose the `active` private variable Fixes #13 --- mkdocs_section_index/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkdocs_section_index/__init__.py b/mkdocs_section_index/__init__.py index 47bf7be..2a35588 100644 --- a/mkdocs_section_index/__init__.py +++ b/mkdocs_section_index/__init__.py @@ -17,6 +17,8 @@ def __init__( Section.__init__(self, title=title, children=children) self.is_section = self.is_page = True + active = Page.active + def __repr__(self): return "Section" + Page.__repr__(self)