<s> import sys <EOL> import os <EOL> import shlex <EOL> extensions = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> templates_path = [ '<STR_LIT>' ] <EOL> from recommonmark . parser import CommonMarkParser <EOL> source_parsers = { <EOL> '<STR_LIT>' : CommonMarkParser , <EOL> } <EOL> source_suffix = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> master_doc = '<STR_LIT:index>' <EOL> project = '<STR_LIT>' <EOL> copyright = '<STR_LIT>' <EOL> author = '<STR_LIT>' <EOL> setup_lines = open ( '<STR_LIT>' ) . readlines ( ) <EOL> version = '<STR_LIT>' <EOL> for l in setup_lines : <EOL> if l . startswith ( '<STR_LIT>' ) : <EOL> version = l . split ( "<STR_LIT:'>" ) [ <NUM_LIT:1> ] <EOL> break <EOL> release = version <EOL> version = '<STR_LIT>' <EOL> release = '<STR_LIT>' <EOL> language = None <EOL> exclude_patterns = [ '<STR_LIT>' ] <EOL> pygments_style = '<STR_LIT>' <EOL> todo_include_todos = False <EOL> on_rtd = os . environ . get ( '<STR_LIT>' , None ) == '<STR_LIT:True>' <EOL> if not on_rtd : <EOL> import sphinx_rtd_theme <EOL> html_theme = '<STR_LIT>' <EOL> html_static_path = [ '<STR_LIT>' ] <EOL> html_show_sourcelink = False <EOL> htmlhelp_basename = '<STR_LIT>' <EOL> latex_elements = { <EOL> } <EOL> latex_documents = [ <EOL> ( master_doc , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ) , <EOL> ] <EOL> man_pages = [ <EOL> ( master_doc , '<STR_LIT>' , '<STR_LIT>' , <EOL> [ author ] , <NUM_LIT:1> ) <EOL> ] <EOL> texinfo_documents = [ <EOL> ( master_doc , '<STR_LIT>' , '<STR_LIT>' , <EOL> author , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> ] <EOL> sys . path . append ( os . path . join ( os . path . dirname ( __name__ ) , '<STR_LIT:..>' ) ) <EOL> sys . path . append ( os . path . join ( os . path . dirname ( __name__ ) , '<STR_LIT>' ) ) <EOL> from apigen import ApiDocWriter <EOL> import cesium <EOL> package = '<STR_LIT>' <EOL> module = sys . modules [ package ] <EOL> outdir = '<STR_LIT>' <EOL> docwriter = ApiDocWriter ( package ) <EOL> docwriter . write_api_docs ( outdir ) <EOL> docwriter . write_index ( outdir , '<STR_LIT>' , relative_to = '<STR_LIT>' ) <EOL> print ( '<STR_LIT>' % len ( docwriter . written_modules ) ) <EOL> def setup ( app ) : <EOL> app . add_stylesheet ( "<STR_LIT>" ) </s>
