Commit 773c7265 by Francisco Giordano

Change title of meta transactions page in docs sidebar

parent 742c436d
...@@ -12,12 +12,20 @@ const files = proc.execFileSync( ...@@ -12,12 +12,20 @@ const files = proc.execFileSync(
console.log('.API'); console.log('.API');
function getPageTitle (directory) {
if (directory === 'metatx') {
return 'Meta Transactions';
} else {
return startCase(directory);
}
}
const links = files.map((file) => { const links = files.map((file) => {
const doc = file.replace(baseDir, ''); const doc = file.replace(baseDir, '');
const title = path.parse(file).name; const title = path.parse(file).name;
return { return {
xref: `* xref:${doc}[${startCase(title)}]`, xref: `* xref:${doc}[${getPageTitle(title)}]`,
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