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