Skip to content

Commit 4cea19c

Browse files
committed
print it right!!
1 parent ffd05e1 commit 4cea19c

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

.github/workflows/process_docs_changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
run: |
7575
script/links || true
7676
echo 'checking reported links...'
77-
cat htmlproofer.out | wc -l
77+
echo "htmlproofer spit out a report of length: $(cat htmlproofer.out | wc -l)"
7878
bb script/analyze_links.clj --htmlproofer-output htmlproofer.out
7979
exit 1
8080

script/analyze_links.clj

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,19 @@
126126
_ (println (count external-or-missing-links) "reported links without redirects.")
127127
_ (println "Checking if the missing links are live on https://metabase.com ...")
128128
out (check-broken-links external-or-missing-links)]
129-
(prn ["htmlproofer links:"]
130-
(doseq [l (sort (set htmlproofer-links))]
131-
(println " " l)))
132-
(prn ["redirects:"]
133-
(doseq [l (sort (set redirects))]
134-
(println " " l)))
135-
(prn ["external-or-missing-links:"]
136-
(doseq [l (sort (set external-or-missing-links))]
137-
(println " " l)))
138-
129+
(println ">>>>>>>>>> htmlproofer links <<<<<<<<<")
130+
(doseq [l (sort (set htmlproofer-links))]
131+
(println " " l))
132+
(println "\n\n\n")
133+
(println ">>>>>>>>>> redirects <<<<<<<<<")
134+
(doseq [l (sort (set redirects))]
135+
(println " " l))
136+
(println "\n\n\n")
137+
(println ">>>>>>>>>> external-or-missing-links <<<<<<<<<")
138+
(doseq [l (sort (set external-or-missing-links))]
139+
(println " " l))
140+
141+
(println "\n\n\n")
139142
(if (zero? (:broken-count out))
140143
(do
141144
(println "Done. OK.")
@@ -147,6 +150,12 @@
147150
(when (= *file* (System/getProperty "babashka.file"))
148151
(apply -main *command-line-args*))
149152

153+
154+
(comment
155+
156+
157+
)
158+
150159
(comment
151160

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

0 commit comments

Comments
 (0)