'Start thread to render a given documentation'

def render(self, doc, context=None, math_option=False, img_path=''):

    if self.wait():
        self.doc = doc
        self.context = context
        self.math_option = math_option
        self.img_path = img_path
        self.start()
