      suffix = '.html'
      index = 'index.html'
  else:
      base_url = 'http://django-rest-framework.org'
      suffix = '.html'
      index = ''
  
  
  main_header = '<li class="main"><a href="#{{ anchor }}">{{ title }}</a></li>'
  sub_header = '<li><a href="#{{ anchor }}">{{ title }}</a></li>'
 
</s> remove     if idx > 0:
 </s> add     if idx == 1 and not local:
        # Link back to '/', not '/index'
        prev_url_map[path] = '/'
    elif idx > 0:
    suffix = ''
      suffix = '.html'
      index = 'index.html'
  else:
      base_url = 'http://django-rest-framework.org'
    suffix = ''
      index = ''
  
  
  main_header = '<li class="main"><a href="#{{ anchor }}">{{ title }}</a></li>'
  sub_header = '<li><a href="#{{ anchor }}">{{ title }}</a></li>'
keep keep keep keep replace keep keep keep keep keep
 Drop .html suffixes in docs 
mkdocs.py