anchor.diff:      return str && str.includes('.') ? str.split('.')[0] : ''
     }
   
  +  var stripStrFromEnd = function (needle, str) {
  +    if (str.slice(str.length - needle.length, str.length) === needle) {
  +      return str.substr(0, str.length - needle.length)
  +    } else {
  +      return str
  +    }
  +  }
  +
  +  var stripIndexFromString = function (str) {
  +    return str && str.includes('.') ? str.split('index.md')[0] : str
  +  }
  +
     var getDoc = function (child) {
       if(shouldFolderBeDoc(child)) {
         return child.children.find(n => n.name === 'index.html');
  
positive.code:           children.push({
              menu_order: ancestryChild.menu_order,
              title: child.nav_title || ancestryChild.title,
              link: `/docs/${docsVersion}/${stripExtnameFromString(ancestryChild.path)}`
            })
          }
        })
  
negative.code:           children.push({
              menu_order: sibling.menu_order,
              title: sibling.nav_title || sibling.title,
              link: `/docs/${docsVersion}/${processDescendantsPath(sibling.path)}`
            })
          }
        })
  