summaryrefslogtreecommitdiff
path: root/scripts/get_internal_link_graph.go
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-06 10:40:22 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-06 10:40:22 +0800
commit707dbd5347895738ce02b4f22d6a6314a67778ad (patch)
tree2994adf1f080cfe6c900d35c3281adc47624e81f /scripts/get_internal_link_graph.go
parentfbe23cb1ec8f5bee2962a11f13b52c4080c3f38e (diff)
fix(CI): data extraction not working properly
- link graph should be written to static directory, not public - jobs should run in sequence to avoid branch diversion
Diffstat (limited to 'scripts/get_internal_link_graph.go')
-rw-r--r--scripts/get_internal_link_graph.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/get_internal_link_graph.go b/scripts/get_internal_link_graph.go
index 2f7c8b12..8adf5594 100644
--- a/scripts/get_internal_link_graph.go
+++ b/scripts/get_internal_link_graph.go
@@ -77,13 +77,13 @@ func main() {
nodeList = append(nodeList, nodes[k])
}
- os.MkdirAll("public", os.ModePerm)
+ os.MkdirAll("static", os.ModePerm)
output := map[string]interface{}{
"nodes": nodeList,
"edges": edges,
}
- outfile := "public/link-graph.json"
+ outfile := "static/link-graph.json"
f, err := os.Create(outfile)
if err != nil {
fmt.Println("create file error:", err)