Skip to content

Commit 9e387e6

Browse files
committed
Add license file and setup doc gen a bit
1 parent 5a9758d commit 9e387e6

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

LICENSE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# MIT License
2+
3+
Copyright (c) 2024 Nicolas Michel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

mix.exs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ defmodule Project do
44
def project do
55
[
66
app: :grammar,
7-
version: "0.0.1",
7+
version: "0.1.0",
88
elixirc_options: [warnings_as_errors: true],
99
elixirc_paths: elixirc_paths(Mix.env()),
10-
consolidate_protocols: Mix.env() not in [:dev, :test],
10+
consolidate_protocols: Mix.env() != :test,
1111
deps: deps(),
12-
aliases: aliases()
12+
aliases: aliases(),
13+
name: "Grammar",
14+
source_url: "https://github.com/nmichel/ex_grammar",
15+
docs: docs()
1316
]
1417
end
1518

@@ -33,4 +36,14 @@ defmodule Project do
3336
]
3437
]
3538
end
39+
40+
defp docs do
41+
[
42+
main: "Grammar",
43+
extras: ["README.md", "LICENSE.md"],
44+
groups_for_modules: [
45+
Internal: ~r/^Grammar.CodeGen/
46+
]
47+
]
48+
end
3649
end

0 commit comments

Comments
 (0)