Skip to content

Commit bede19e

Browse files
committed
fix: use relative link in toc file
1 parent 37a7617 commit bede19e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tools/generate_toc.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ generate_toc_for_folder() {
4646
current=$(dirname "$current")
4747
done
4848

49-
uri_path="/$(IFS=/; echo "${slugs[*]}")/$slug/"
50-
toc+="- [$title]("/${BASE_URL}${uri_path}")\n"
49+
# uri_path="/$(IFS=/; echo "${slugs[*]}")/$slug/"
50+
# toc+="- [$title]("/${BASE_URL}${uri_path}")\n"
51+
uri_path="../$slug/"
52+
toc+="- [$title]("${uri_path}")\n"
5153

5254
done
5355

File renamed without changes.

0 commit comments

Comments
 (0)