Skip to content

Fix broken links to Elixir documentation #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions elixir-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
(defvar elixir-mode-website-url "http://elixir-lang.org"
"Official url of Elixir programming website.")

(defvar elixir-mode-doc-url "https://hexdocs.pm/elixir"
"Official documentation for the Elixir programming language.")

(defvar elixir-mode-hook nil)

(defvar elixir-mode-map
Expand Down Expand Up @@ -430,13 +433,13 @@ is used to limit the scan."
(defun elixir-mode-open-docs-master ()
"Elixir mode go to master documentation."
(interactive)
(browse-url (concat elixir-mode-website-url "/docs/master/elixir")))
(browse-url (concat elixir-mode-doc-url "/master")))

;;;###autoload
(defun elixir-mode-open-docs-stable ()
"Elixir mode go to stable documentation."
(interactive)
(browse-url (concat elixir-mode-website-url "/docs/stable/elixir")))
(browse-url elixir-mode-doc-url))

;;;###autoload
(defun elixir-mode-version (&optional show-version)
Expand Down