code: function resolveConfig(conf, version = '') {
  	conf['siteroot'] = conf.baseurl || '/';
  	if (version) {
  		conf['baseurl'] = path.join(conf.siteroot, version);
  	}
  
  	for (let key in conf) {
  		if (CONFIG_VAR_REGEX.test(conf[key])) {
  			conf[key] = resolve(conf[key], conf, [key]);
  		}
  	}
  	return conf;
  }
docs: Helper function that resolves any variable depenencies in the config.
  @param {String} version - The version number supplied.
  @param {Object} conf - The parsed config file.