Commit 5acedf50 by Francisco Giordano Committed by Hadrien Croubois

Change title of meta transactions page in docs sidebar

(cherry picked from commit 773c7265)
parent 566c601d
......@@ -12,12 +12,20 @@ const files = proc.execFileSync(
console.log('.API');
function getPageTitle (directory) {
if (directory === 'metatx') {
return 'Meta Transactions';
} else {
return startCase(directory);
}
}
const links = files.map((file) => {
const doc = file.replace(baseDir, '');
const title = path.parse(file).name;
return {
xref: `* xref:${doc}[${startCase(title)}]`,
xref: `* xref:${doc}[${getPageTitle(title)}]`,
title,
};
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment