mirror of
https://github.com/benjaminion/upgrading-ethereum-book.git
synced 2026-01-09 14:38:08 -05:00
Build: handle hidden pages in spec build
This commit is contained in:
@@ -63,6 +63,9 @@ function specLinks({ logger }) {
|
|||||||
}
|
}
|
||||||
if (isNewPage(node)) {
|
if (isNewPage(node)) {
|
||||||
page = node.children[node.children.length - 1].value.trim();
|
page = node.children[node.children.length - 1].value.trim();
|
||||||
|
if (page.endsWith('*')) {
|
||||||
|
page = page.slice(0, -1);
|
||||||
|
}
|
||||||
map[page] = newSlug;
|
map[page] = newSlug;
|
||||||
}
|
}
|
||||||
if (page) {
|
if (page) {
|
||||||
|
|||||||
Reference in New Issue
Block a user