  for idx in range(len(path_list)):
      path = path_list[idx]
      rel = '../' * path.count('/')
  
      if idx > 0:
          prev_url_map[path] = rel + path_list[idx - 1][:-3] + suffix
  
      if idx < len(path_list) - 1:
          next_url_map[path] = rel + path_list[idx + 1][:-3] + suffix
  
 
</s> remove     suffix = '.html'
 </s> add     suffix = ''
    if idx == 1 and not local:
        # Link back to '/', not '/index'
        prev_url_map[path] = '/'
    elif idx > 0:
  for idx in range(len(path_list)):
      path = path_list[idx]
      rel = '../' * path.count('/')
  
    if idx == 1 and not local:
        # Link back to '/', not '/index'
        prev_url_map[path] = '/'
    elif idx > 0:
          prev_url_map[path] = rel + path_list[idx - 1][:-3] + suffix
  
      if idx < len(path_list) - 1:
          next_url_map[path] = rel + path_list[idx + 1][:-3] + suffix
  
keep keep keep keep replace keep keep keep keep keep
 Drop .html suffixes in docs 
mkdocs.py