docs: def update_index(entries):
      """find the last 10 entries in the database and create the main
      page.
      Each entry in has an doc_id, so we only get the last 10 doc_ids.
  
      This method also updates the ATOM feed.
      """
      context = GLOBAL_TEMPLATE_CONTEXT.copy()
      context['entries'] = entries
      context['last_build'] = datetime.datetime.now().strftime(
          "%Y-%m-%dT%H:%M:%SZ")
  
      list(map(lambda x: _render(context, x[0],
                                 os.path.join(CONFIG['output_to'], x[1])),
               (('entry_index.html', 'index.html'), ('atom.xml', 'atom.xml'))))