parameters: (file_base, files)
docstring: Create a default file_base.rst file for sphinx.
docstring_summary: Create a default file_base.rst file for sphinx.
docstring_tokens: Create a default file_base . rst file for sphinx .
function: def create_rst_file(file_base, files):
      """Create a default file_base.rst file for sphinx."""
      fout = open(
              join(
                  'docs',
                  '{0:s}.rst'.format(file_base),
                  ),
              'w'
      )
      fout.write(
  """{0:s}
  {1:s}
  
  **Contents:**
  
  """.format(file_base, "="*len(file_base))
      )
      index_count = 1
      for file_type in CPP_FILE_TYPES:
          if files.has_key(file_type):
              fout.write('    {0:d}. `{1:s}`_\n'.format(index_count, files[file_type]))
              index_count += 1
      fout.write('\n')
  
      for file_type in CPP_FILE_TYPES:
          if files.has_key(file_type):
              fout.write("""
  {0:s}
  {1:s}
  
  .. doxygenfile:: {2:s}
  
  """.format(files[file_type], '-'*len(files[file_type]), files[file_type])
              )
      fout.close()
function_tokens: def create_rst_file ( file_base , files ) : fout = open ( join ( 'docs' , '{0:s}.rst' . format ( file_base ) , ) , 'w' ) fout . write ( """{0:s}
  {1:s}
  
  **Contents:**
  
  """ . format ( file_base , "=" * len ( file_base ) ) ) index_count = 1 for file_type in CPP_FILE_TYPES : if files . has_key ( file_type ) : fout . write ( '    {0:d}. `{1:s}`_\n' . format ( index_count , files [ file_type ] ) ) index_count += 1 fout . write ( '\n' ) for file_type in CPP_FILE_TYPES : if files . has_key ( file_type ) : fout . write ( """
  {0:s}
  {1:s}
  
  .. doxygenfile:: {2:s}
  
  """ . format ( files [ file_type ] , '-' * len ( files [ file_type ] ) , files [ file_type ] ) ) fout . close ( )