Skip to content

Commit

Permalink
generalized ROOT/index replacement for algolia indexing (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
theowolff authored Feb 27, 2025
1 parent 858d206 commit ce05ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/algolia-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const startIndexing = (currentBranch) => {
.split("modules")[1]
.replace("/pages", "")
.replace(".adoc", "")
.replace("ROOT/index", "")
.replace(/ROOT\/[^/]+/, "")
.replace("index", "")
const record = {
url: "https://docs.starknet.io" + url,
Expand Down

0 comments on commit ce05ad3

Please sign in to comment.