Packages

Bracketology is the art/science of seeding and playing out competitions. It nests matches in stages in tournaments to model many common real-world events.

Current section

Files

Jump to
Raw

mix.exs

defmodule Bracketology.MixProject do
use Mix.Project
def project do
[
app: :bracketology,
version: "0.1.0",
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "Grilla Bracketology",
description: """
Bracketology is the art/science of seeding and playing out competitions.
It nests matches in stages in tournaments to model many common real-world events.
""",
package: [
licenses: ["Apache-2.0"],
maintainers: ["James Gough"],
links: %{
"GitHub" => "https://github.com/play-oxygen/bracketology",
"Grilla" => "https://grilla.gg"
}
],
homepage_url: "https://grilla.gg",
source_url: "https://github.com/play-oxygen/bracketology",
docs: [
# The main page in the docs
main: "Bracketology",
logo: "grilla-green.png",
before_closing_head_tag: &before_closing_head_tag/1,
before_closing_body_tag: &before_closing_body_tag/1,
# nest_modules_by_prefix: [Bracketology]
groups_for_modules: [
"Stage Types": [
Bracketology.StageTypes.RoundRobin,
Bracketology.StageTypes.SingleElimination
]
]
]
]
end
defp before_closing_head_tag(:epub), do: ""
defp before_closing_head_tag(:html), do: ""
defp before_closing_body_tag(:epub), do: ""
defp before_closing_body_tag(:html), do: include_mermaid_in_docs()
defp include_mermaid_in_docs do
"""
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({ startOnLoad: true });
</script>
"""
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ex_doc, "0.26.0", only: :dev, runtime: false}
# {:dep_from_hexpm, "~> 0.3.0"},
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"}
]
end
end