in site/src/shortcodes/includecode/index.js [86:96]
async create({ title, eap_github_path, current_github_path, github_path }) {
const isEmpty = value => value == undefined || value === '';
const isSwitcher = (!isEmpty(eap_github_path) || !isEmpty(github_path)) && !isEmpty(current_github_path);
// TODO(davideast): Enable current_github_path as a single option
const pathToUse = !isEmpty(github_path) ? github_path : eap_github_path;
const codebox = isSwitcher ?
await codeswitcher.create({ eap_github_path: pathToUse, current_github_path }) :
await includecode.create({ github_path: pathToUse });
return md.render(`### ${title}
${codebox}`);
}