From b8d8b3dbd88ab42fc8f050af0d18fc4dd66d7ffe Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Thu, 9 Jan 2025 11:25:52 -0800
Subject: Handle installing Pandoc
---
mix.exs | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
(limited to 'mix.exs')
diff --git a/mix.exs b/mix.exs
index 7a0bb94..ab539d3 100644
--- a/mix.exs
+++ b/mix.exs
@@ -1,7 +1,7 @@
defmodule Pandoc.MixProject do
use Mix.Project
- @version "0.2.0"
+ @version "0.3.0"
@source_url "https://webdevcat.me/git/pandoc/"
def project do
@@ -10,22 +10,28 @@ defmodule Pandoc.MixProject do
version: @version,
elixir: "~> 1.14",
deps: deps(),
- description: "File-watcher and Mix task to convert Markdown files to HTML",
+ description: "File system watcher and Mix tasks for installing and invoking pandoc",
package: [
links: %{
"pandoc" => "https://pandoc.org/"
},
licenses: ["MIT"]
],
- source_url: @source_url
+ source_url: @source_url,
+ source_url_pattern: "#{@source_url}tree/%{path}#n%{line}",
+ docs: [
+ main: "Pandoc"
+ ],
+ aliases: [test: ["pandoc.install --if-missing", "test"]]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
- extra_applications: [:logger],
- mod: {Pandoc.Application, []}
+ extra_applications: [:logger, inets: :optional, ssl: :optional],
+ mod: {Pandoc.Application, []},
+ env: [default: []]
]
end
@@ -33,6 +39,7 @@ defmodule Pandoc.MixProject do
defp deps do
[
{:file_system, "~> 1.0"},
+ {:castore, ">= 0.0.0"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
--
cgit v1.2.3