diff --git a/assets/info.txt b/assets/info.txt deleted file mode 100644 index 12b7721..0000000 --- a/assets/info.txt +++ /dev/null @@ -1,15 +0,0 @@ -font name: Philosopher-Bold -font link: https://fonts.google.com/specimen/Philosopher -font author: Jovanny Lemonad -font author site: http://jovanny.ru/ - - -icon designer: Gregor Cresnar -icon designer link: /grega.cresnar - - -fontColor: {"gradient-0":"#0D7CE9","gradient-1":"#28C4E0"} -bgColor: {"hex":"transparent"} -iconColor: {"gradient-0":"#0D7CE9","gradient-1":"#28C4E0"} - - \ No newline at end of file diff --git a/assets/logo-full.svg b/assets/logo-full.svg index 9c051cd..5440556 100644 --- a/assets/logo-full.svg +++ b/assets/logo-full.svg @@ -1,3 +1,18 @@ + diff --git a/lib/ex_doc/markdown.ex b/lib/ex_doc/markdown.ex deleted file mode 100644 index fbc7c37..0000000 --- a/lib/ex_doc/markdown.ex +++ /dev/null @@ -1,47 +0,0 @@ -if Code.ensure_loaded?(ExDoc.Markdown.Earmark) do - # Due to how relative links works in ExDoc, it's necessary for us to use a - # custom markdown parser to ensure that paths will work in generated docs. - # - # Ref: https://github.com/elixir-lang/ex_doc/issues/889 - -defmodule ExDoc.PowAssent.Markdown do - @moduledoc false - - alias ExDoc.Markdown.Earmark - - @behaviour ExDoc.Markdown - - defdelegate assets(arg), to: Earmark - defdelegate before_closing_head_tag(arg), to: Earmark - defdelegate before_closing_body_tag(arg), to: Earmark - defdelegate configure(arg), to: Earmark - defdelegate available?(), to: Earmark - - def to_html(text, opts) do - config = Mix.Project.config()[:docs] - source_url = config[:source_url] <> "/" <> source_ref_pattern(config[:source_url], config[:source_ref]) - - text - |> convert_relative_docs_url(source_url) - |> Earmark.to_html(opts) - end - - defp source_ref_pattern("https://github.com/" <> _rest, ref), do: "blob/#{ref}" - - @markdown_regex ~r/(\[[\S ]*\]\()([\S]*?)(\.md|\.ex|\.exs)([\S]*?\))/ - - defp convert_relative_docs_url(text, source_url) do - Regex.replace(@markdown_regex, text, fn - _, arg1, "http" <> path, extension, arg3 -> "#{arg1}http#{path}#{extension}#{arg3}" - _, arg1, path, ".md", arg3 -> "#{arg1}#{convert_to_docs_html_url(path)}.html#{arg3}" - _, arg1, path, extension, arg3 when extension in [".ex", ".exs"] -> "#{arg1}#{convert_to_source_url(path, extension, source_url)}#{arg3}" - end) - end - - defp convert_to_docs_html_url("../README"), do: "README" - defp convert_to_docs_html_url("guides/" <> guide), do: guide - defp convert_to_docs_html_url(path), do: path - - defp convert_to_source_url("lib/" <> path, extension, source_url), do: source_url <> "/lib/" <> path <> extension -end -end diff --git a/mix.exs b/mix.exs index 936fd38..c9bf8eb 100644 --- a/mix.exs +++ b/mix.exs @@ -68,7 +68,6 @@ defmodule PowAssent.MixProject do defp docs do [ - markdown_processor: ExDoc.PowAssent.Markdown, source_ref: "v#{@version}", main: "README", canonical: "http://hexdocs.pm/pow_assent",