def active(self, value: bool):
        """Set active status of section and ancestors."""
        self.__active = bool(value)
        if self.parent is not None:
            self.parent.active = bool(value)
Set active status of section and ancestors.
mkdocs/structure/nav.py