docs: function buildUrl(file, frontmatter) {
        // Frontmatter settings take precedence
        var canonicalUrl = get(frontmatter, urlProperty);
        if (is.string(canonicalUrl)) {
          return canonicalUrl;
        }
  
        // Remove index.html if necessary
        var indexFile = 'index.html';
        if (omitIndex && path.basename(file) === indexFile) {
          return replaceBackslash(file.slice(0, 0 - indexFile.length));
        }
  
        // Remove extension if necessary
        if (omitExtension) {
          return replaceBackslash(file.slice(0, 0 - path.extname(file).length));
        }
  
        // Otherwise just use 'file'
        return replaceBackslash(file);
      }