Exemplo n.º 1
0
 def run(self):
     # The section that should be documented
     if len(self.arguments):
         section = self.arguments[0]
     else:
         section = None
     link_targets = not ('nolinks' in self.options)
     rawtext = prefs.get_documentation(section, link_targets)
     include_lines = statemachine.string2lines(rawtext,
                                               convert_whitespace=True)
     self.state_machine.insert_input(include_lines, 'Brian preferences')
     return []
Exemplo n.º 2
0
 def run(self):
     # The section that should be documented
     if len(self.arguments):
         section = self.arguments[0]
     else:
         section = None
     link_targets = not ('nolinks' in self.options)
     rawtext = prefs.get_documentation(section, link_targets)
     include_lines = statemachine.string2lines(rawtext,
                                               convert_whitespace=True)
     self.state_machine.insert_input(include_lines, 'Brian preferences')
     return []
Exemplo n.º 3
0
 def run(self):
     # The section that should be documented
     if len(self.arguments):
         section = self.arguments[0]
     else:
         section = None
     if 'as_file' in self.options:
         rawtext = prefs.as_file
         return [nodes.literal_block(text=rawtext)]
     else:
         rawtext = prefs.get_documentation(section, 'nolinks'
                                           not in self.options)
         include_lines = statemachine.string2lines(rawtext,
                                                   convert_whitespace=True)
         self.state_machine.insert_input(include_lines, 'Brian preferences')
         return []