Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions lib/ex_doc.ex
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ defmodule ExDoc do
* `:source_url_pattern` - Public URL of the project for source links. This is derived
automatically from the project's `:source_url` and `:source_ref` when using one of
the supported public hosting services (currently GitHub, GitLab, or Bitbucket). If
you are using one of those services with their default public hostname, you do not
the supported public hosting services (currently GitHub, GitLab, Bitbucket, or Tangled).
If you are using one of those services with their default public hostname, you do not
need to set this configuration.
However, if using a different solution, or self-hosting, you will need to set this
Expand Down
2 changes: 1 addition & 1 deletion lib/ex_doc/cli.ex
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ defmodule ExDoc.CLI do
ExDoc by default provides links to the source code implementation as
long as --source-url or --source-url-pattern is provided. If you
provide --source-url, ExDoc will inflect the url pattern automatically
for GitHub, GitLab, and Bitbucket URLs. For example:
for GitHub, GitLab, Bitbucket, and Tangled URLs. For example:

--source-url "https://github.com/elixir-ecto/ecto"

Expand Down
3 changes: 3 additions & 0 deletions lib/ex_doc/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ defmodule ExDoc.Config do
defp known_pattern("bitbucket.org/" <> _, ref),
do: {:ok, "src/#{ref}/%{path}#cl-%{line}"}

defp known_pattern("tangled.org/" <> _, ref),
do: {:ok, "blob/#{ref}/%{path}#L%{line}"}

defp known_pattern(_host_with_path, _ref),
do: :error

Expand Down