import fett from docutils import statemachine from docutils.utils.error_reporting import ErrorString from sphinx.util.compat import Directive import yaml # List of tabs ( ID, Display Name) TABS_RAW = [ ('linux', 'Linux'), ('mac', 'Mac'), ('windows', 'Windows'), ] TABS_IDS = [tab[0] for tab in TABS_RAW] TABS_DISPLAY = [tab[1] for tab in TABS_RAW] class GlobalTabsDirective(Directive): has_content = True required_arguments = 0 optional_arguments = 0 final_argument_whitespace = True TABS_TEMPLATE = ''' .. raw:: html