<s> import os <EOL> import sys <EOL> import builtins <EOL> from xonsh import __version__ as XONSH_VERSION <EOL> from xonsh . environ import DEFAULT_DOCS , Env <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . dirname ( __file__ ) ) <EOL> on_rtd = os . environ . get ( '<STR_LIT>' , None ) == '<STR_LIT:True>' <EOL> extensions = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> ] <EOL> templates_path = [ '<STR_LIT>' ] <EOL> source_suffix = '<STR_LIT>' <EOL> master_doc = '<STR_LIT:index>' <EOL> project = u'<STR_LIT>' <EOL> copyright = u'<STR_LIT>' <EOL> version = XONSH_VERSION . rsplit ( '<STR_LIT:.>' , <NUM_LIT:1> ) [ <NUM_LIT:0> ] <EOL> release = XONSH_VERSION <EOL> exclude_trees = [ ] <EOL> pygments_style = '<STR_LIT>' <EOL> if not on_rtd : <EOL> import cloud_sptheme as csp <EOL> html_theme = '<STR_LIT>' <EOL> html_theme_options = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : False , <EOL> '<STR_LIT>' : False , <EOL> '<STR_LIT>' : False , <EOL> '<STR_LIT>' : True , <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> } <EOL> html_theme_path = [ "<STR_LIT>" , csp . get_theme_dir ( ) ] <EOL> html_logo = '<STR_LIT>' <EOL> html_favicon = '<STR_LIT>' <EOL> html_static_path = [ '<STR_LIT>' ] <EOL> html_style = "<STR_LIT>" <EOL> htmlhelp_basename = '<STR_LIT>' <EOL> latex_documents = [ <EOL> ( '<STR_LIT:index>' , '<STR_LIT>' , u'<STR_LIT>' , <EOL> u'<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> autodoc_member_order = "<STR_LIT>" <EOL> autoclass_content = "<STR_LIT>" <EOL> autosummary_generate = [ ] <EOL> numpydoc_show_class_members = False <EOL> def make_envvars ( ) : <EOL> env = Env ( ) <EOL> vars = sorted ( DEFAULT_DOCS . keys ( ) ) <EOL> s = ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> table = [ ] <EOL> ncol = <NUM_LIT:3> <EOL> row = '<STR_LIT>' <EOL> for i , var in enumerate ( vars ) : <EOL> star = '<STR_LIT:*>' if i % ncol == <NUM_LIT:0> else '<STR_LIT:U+0020>' <EOL> table . append ( row . format ( star , var , var . lower ( ) ) ) <EOL> table . extend ( [ '<STR_LIT>' ] * ( ( ncol - len ( vars ) % ncol ) % ncol ) ) <EOL> s += '<STR_LIT:\n>' . join ( table ) + '<STR_LIT>' <EOL> s += ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> sec = ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> for var in vars : <EOL> title = '<STR_LIT:$>' + var <EOL> under = '<STR_LIT:.>' * len ( title ) <EOL> vd = env . get_docs ( var ) <EOL> s += sec . format ( low = var . lower ( ) , title = title , under = under , <EOL> docstr = vd . docstr , configurable = vd . configurable , <EOL> default = vd . default ) <EOL> s = s [ : - <NUM_LIT:9> ] <EOL> fname = os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) <EOL> with open ( fname , '<STR_LIT:w>' ) as f : <EOL> f . write ( s ) <EOL> make_envvars ( ) <EOL> builtins . __xonsh_history__ = None </s>
