Skip to content

Commit c64689b

Browse files
committed
skip the 2 questionable links
1 parent 4cea19c commit c64689b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

script/analyze_links.clj

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
[]
102102
(cli/format-opts (merge cli-spec {:order (vec (sort (keys (:spec cli-spec))))})))
103103

104+
(def excluded-links
105+
#{"/events/metabase-setup-workshop" "/learn/building-analytics/dashboards/cross-filtering"})
106+
104107
(defn -main [& args]
105108
(let [opts (try (cli/parse-opts args cli-spec)
106109
(catch Exception _
@@ -125,7 +128,7 @@
125128
_ (println (count redirects) "unique redirect links gathered from in _docs.")
126129
_ (println (count external-or-missing-links) "reported links without redirects.")
127130
_ (println "Checking if the missing links are live on https://metabase.com ...")
128-
out (check-broken-links external-or-missing-links)]
131+
out (check-broken-links (remove excluded-links external-or-missing-links))]
129132
(println ">>>>>>>>>> htmlproofer links <<<<<<<<<")
130133
(doseq [l (sort (set htmlproofer-links))]
131134
(println " " l))
@@ -150,12 +153,6 @@
150153
(when (= *file* (System/getProperty "babashka.file"))
151154
(apply -main *command-line-args*))
152155

153-
154-
(comment
155-
156-
157-
)
158-
159156
(comment
160157

161158
(def opts {:htmlproofer-output "htmlproofer.out"})

0 commit comments

Comments
 (0)