Skip to content

Commit 8f9dca1

Browse files
committed
Fix broken links to the docs in REPL warnings
1 parent 60f60ef commit 8f9dca1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## master (unreleased)
44

5+
### Bugs fixed
6+
7+
* Fix broken links to the docs in REPL warnings (the REPL links included the full CIDER version, but the docs URLs are without the patch version).
8+
59
### Changes
610

711
* Bump the injected nREPL version to 0.8.1.

cider-util.el

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,15 @@ plugin or dependency with:
445445
(defconst cider-manual-url "https://docs.cider.mx/cider/%s"
446446
"The URL to CIDER's manual.")
447447

448+
(defun cider-version-sans-patch ()
449+
"Return the version sans that patch."
450+
(string-join (seq-take (split-string cider-version "\\.") 2) "."))
451+
448452
(defun cider--manual-version ()
449453
"Convert the version to a ReadTheDocs-friendly version."
450454
(if (string-match-p "-snapshot" cider-version)
451455
""
452-
(concat cider-version "/")))
456+
(concat (cider-version-sans-patch) "/")))
453457

454458
(defun cider-manual-url ()
455459
"The CIDER manual's url."

0 commit comments

Comments
 (0)