Skip to content

Commit

Permalink
fix: Resolve website break issue when updating plugin documentation t…
Browse files Browse the repository at this point in the history
…itles

Signed-off-by: Sun Seng David TAN <[email protected]>
  • Loading branch information
sunix committed Mar 29, 2024
1 parent 629282c commit faa5e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const createAsciiDocPages = async({createPage, graphql, reporter}) => {
return;
}
result.data.allAsciidocCopy.edges.forEach(({ node }) => {
const slug = `/docs/${node.document.title.replace(/(.*\/)?/, '')}`;
const slug = `/docs/${node.document.title.replace(/(.*\/ ?)?/, '')}`;
createPage({
path: slug,
component: docTemplate,
Expand Down

0 comments on commit faa5e78

Please sign in to comment.