

def run(self):
    env = self.state.document.settings.env
    formname = self.arguments[0].strip()
    env.temp_data['salt:formula'] = formname
    if ('noindex' in self.options):
        return []
    env.domaindata['salt']['formulas'][formname] = (env.docname, self.options.get('synopsis', ''), self.options.get('platform', ''), ('deprecated' in self.options))
    targetnode = nodes.target('', '', ids=[('module-' + formname)], ismod=True)
    self.state.document.note_explicit_target(targetnode)
    indextext = '{0}-formula)'.format(formname)
    inode = addnodes.index(entries=[('single', indextext, ('module-' + formname), '')])
    return [targetnode, inode]

dataset/ETHPy150Open saltstack/salt/doc/_ext/saltdomain.py Formula.run/original