Packages
noizu_core
1.0.28
Core ElixirScaffolding Library: provides protocols for working with entity/ref/ref-string identifiers.
Current section
Files
Jump to
Current section
Files
noizu_core
mix.exs
mix.exs
#-------------------------------------------------------------------------------
# Author: Keith Brings
# Copyright (C) 2018 Noizu Labs, Inc. All rights reserved.
#-------------------------------------------------------------------------------
defmodule Noizu.ElixirCore.Mixfile do
use Mix.Project
def project do
[app: :noizu_core,
version: "1.0.28",
elixir: ">= 1.13.1",
elixirc_paths: elixirc_paths(Mix.env),
package: package(),
deps: deps(),
description: "Core ElixirScaffolding Library: provides protocols for working with entity/ref/ref-string identifiers.",
docs: docs(),
test_coverage: [
summary: [
threshold: 10
],
ignore_modules: [
]
]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["noizu"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/noizu-labs/ElixirCore"}
]
end
def application do
[ applications: [:logger, :crypto] ]
end
defp deps do
[
{:junit_formatter, "~> 3.3", only: [:test]},
{:ex_doc, "~> 0.28.3", only: [:dev, :test], optional: true, runtime: false}, # Documentation Provider
{:fastglobal, "~> 1.0"}, # https://github.com/discordapp/fastglobal
{:semaphore, "~> 1.0"}, # https://github.com/discordapp/semaphore
{:elixir_uuid, "~> 1.2", only: :test, optional: true}
]
end
defp docs do
[
source_url_pattern: "https://github.com/noizu/ElixirCore/blob/master/%{path}#L%{line}",
extras: ["README.md"],
before_closing_head_tag: &before_closing_head_tag/1,
before_closing_body_tag: &before_closing_body_tag/1
]
end
defp before_closing_head_tag(:html) do
"""
<!-- HTML injected at the end of the <head> element -->
<script src="https://cdn.jsdelivr.net/npm/mermaid@10.2.3/dist/mermaid.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.css" integrity="sha384-vKruj+a13U8yHIkAyGgK1J3ArTLzrFGBbBc0tDp4ad/EyewESeXE/Iv67Aj8gKZ0" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/katex.min.js" integrity="sha384-PwRUT/YqbnEjkZO0zZxNqcxACrXe+j766U2amXcgMg5457rve2Y7I6ZJSm2A0mS4" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/katex-copytex@1.0.2/dist/katex-copytex.min.css" rel="stylesheet" type="text/css">
<script src="https://cdn.jsdelivr.net/npm/katex-copytex@1.0.2/dist/katex-copytex.min.js" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.4/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"
onload="renderMathInElement(document.body, {
delimiters: [
{left: '$$', right: '$$', display: true},
{left: '$', right: '$', display: false},
]
});"></script>
</script>
<script>
document.addEventListener("DOMContentLoaded", function () {
mermaid.initialize({
startOnLoad: false,
theme: document.body.className.includes("dark") ? "dark" : "default"
});
let id = 0;
for (const codeEl of document.querySelectorAll("pre code.mermaid")) {
const preEl = codeEl.parentElement;
const graphDefinition = codeEl.textContent;
const graphEl = document.createElement("div");
const graphId = "mermaid-graph-" + id++;
mermaid.render(graphId, graphDefinition).then(({svg, bindFunctions}) => {
graphEl.innerHTML = svg;
bindFunctions?.(graphEl);
preEl.insertAdjacentElement("afterend", graphEl);
preEl.remove();
});
}
});
</script>
"""
end
defp before_closing_head_tag(:epub), do: ""
defp before_closing_body_tag(:html) do
"""
<!-- HTML injected at the end of the <body> element -->
"""
end
defp before_closing_body_tag(:epub), do: ""
end