Skip to content

Commit da13103

Browse files
sunixmanusa
authored andcommitted
fix: Resolve website break issue when updating plugin documentation titles
Signed-off-by: Sun Seng David TAN <[email protected]>
1 parent 48154a8 commit da13103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gatsby-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const createAsciiDocPages = async({createPage, graphql, reporter}) => {
110110
return;
111111
}
112112
result.data.allAsciidocCopy.edges.forEach(({ node }) => {
113-
const slug = `/docs/${node.document.title.replace(/(.*\/)?/, '')}`;
113+
const slug = `/docs/${node.document.title.replace(/(.*\/ ?)?/, '')}`;
114114
createPage({
115115
path: slug,
116116
component: docTemplate,

0 commit comments

Comments
 (0)