def makeRst(prefix, section, app, exampleByIdentifier, schema_store):
 for route in sorted(getRoutes(app)):
  if route.attributes.get('private_api', False):
   continue
  data = _introspectRoute(route, exampleByIdentifier, schema_store)
  if (data['section'] != section):
   continue
  for method in route.methods:
   if (data['header'] is not None):
    (yield data['header'])
    (yield ('-' * len(data['header'])))
    (yield '')
   body = _formatRouteBody(data, schema_store)
   for line in http_directive(method, (prefix + route.path), body):
    (yield line)

def makeRst ( prefix , section , app , exampleByIdentifier , schema_store ) : for route in sorted ( getRoutes ( app ) ) : if route . attributes . get ( 'private_api' , False ) : continue data = _introspectRoute ( route , exampleByIdentifier , schema_store ) if ( data [ 'section' ] != section ) : continue for method in route . methods : if ( data [ 'header' ] is not None ) : ( yield data [ 'header' ] ) ( yield ( '-' * len ( data [ 'header' ] ) ) ) ( yield '' ) body = _formatRouteBody ( data , schema_store ) for line in http_directive ( method , ( prefix + route . path ) , body ) : ( yield line )
generate the sphinx documentation associated with a l{klein} application .