chore: analytics on hexdocs

This commit is contained in:
Zach Daniel 2023-10-02 08:41:23 -04:00
parent ab669671ea
commit 3796bb0124

View file

@ -26,6 +26,13 @@ defmodule AshAuthentication.Phoenix.MixProject do
extras: extra_documentation(), extras: extra_documentation(),
groups_for_extras: extra_documentation_groups(), groups_for_extras: extra_documentation_groups(),
formatters: ["html"], formatters: ["html"],
before_closing_head_tag: fn type ->
if type == :html do
"""
<script defer data-domain="ashhexdocs" src="https://plausible.io/js/script.js"></script>
"""
end
end,
filter_modules: ~r/^Elixir.AshAuthentication.Phoenix/, filter_modules: ~r/^Elixir.AshAuthentication.Phoenix/,
source_url_pattern: source_url_pattern:
"https://github.com/team-alembic/ash_authentication_phoenix/blob/main/%{path}#L%{line}", "https://github.com/team-alembic/ash_authentication_phoenix/blob/main/%{path}#L%{line}",