Skip to content

Commit 90323cd

Browse files
fapdashTrevoke
authored andcommitted
Fix broken links to Elixir documentation (#422)
Links taken from https://elixir-lang.org/docs.html
1 parent 9a38968 commit 90323cd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

elixir-mode.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
(defvar elixir-mode-website-url "http://elixir-lang.org"
5252
"Official url of Elixir programming website.")
5353

54+
(defvar elixir-mode-doc-url "https://hexdocs.pm/elixir"
55+
"Official documentation for the Elixir programming language.")
56+
5457
(defvar elixir-mode-hook nil)
5558

5659
(defvar elixir-mode-map
@@ -430,13 +433,13 @@ is used to limit the scan."
430433
(defun elixir-mode-open-docs-master ()
431434
"Elixir mode go to master documentation."
432435
(interactive)
433-
(browse-url (concat elixir-mode-website-url "/docs/master/elixir")))
436+
(browse-url (concat elixir-mode-doc-url "/master")))
434437

435438
;;;###autoload
436439
(defun elixir-mode-open-docs-stable ()
437440
"Elixir mode go to stable documentation."
438441
(interactive)
439-
(browse-url (concat elixir-mode-website-url "/docs/stable/elixir")))
442+
(browse-url elixir-mode-doc-url))
440443

441444
;;;###autoload
442445
(defun elixir-mode-version (&optional show-version)

0 commit comments

Comments
 (0)