Changix

Very small & simple Elixir library that gives you changelog features based on markdown files. It leverages on Elixir metaprogramming features, so that everything is done at compile time.

Changix come with no runtime dependency, and can be used with any Markdown parser. A default behavior is implemented if earmark(https://github.com/pragdave/earmark) markdown library is present.

Installation

If available in Hex, the package can be installed by adding changix to your list of dependencies in mix.exs:

def deps do
[
{:changix, "~> 0.1.0"}
]
end

Usage

defmodule MyModule do
include Changix, path: "my_changelog_folder"
def list_entries do
for entry <- MyModule.changelog_entries() do
IO.inspect(entry)
end
end
def show_entry(entry_date) do
date
|> MyModule.changelog_entry()
|> IO.inspect
end
end

Documentation

Docs can be found at https://hexdocs.pm/changix.