docs/scripts/serve.js
function(req, res, next) {
        req.url = _.replace(req.url, /^\/docsearch/, ''); // eslint-disable-line no-param-reassign
        next();
      }
function(req, res, next) {
        req.url = _.replace(req.url, /^\/docsearch/, ''); // eslint-disable-line no-param-reassign
        next();
      }
Redirect subdirectory to the root (mimicking GitHub pages)