-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kianmeng/misc-doc-changes
Misc HTML doc generation changes
- Loading branch information
Showing
5 changed files
with
54 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
## v0.1.0 | ||
|
||
- Initial public release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ test: app | |
mix test | ||
|
||
docs: | ||
MIX_ENV=docs mix docs | ||
mix docs | ||
|
||
publish: | ||
mix hex.publish | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
# Translixir | ||
|
||
**TODO: Add description** | ||
[![hex.pm](https://img.shields.io/hexpm/v/translixir.svg)](https://hex.pm/packages/translixir) | ||
[![hex.pm](https://img.shields.io/badge/docs-hexpm-blue.svg)](https://hexdocs.pm/translixir) | ||
[![hex.pm](https://img.shields.io/hexpm/dt/translixir.svg)](https://hex.pm/packages/translixir) | ||
[![hex.pm](https://img.shields.io/hexpm/l/translixir.svg)](https://hex.pm/packages/translixir) | ||
[![github.com](https://img.shields.io/github/last-commit/naomijub/translixir.svg)](https://github.com/naomijub/translixir/commits/master) | ||
|
||
Elixir client for [Crux DB](https://www.opencrux.com), the general purpose | ||
database with bitemporal SQL and Datalog. | ||
|
||
## Installation | ||
|
||
If [available in Hex](https://hex.pm/docs/publish), the package can be installed | ||
by adding `translixir_application` to your list of dependencies in `mix.exs`: | ||
The package can be installed by adding `translixir` to your list of | ||
dependencies in `mix.exs`: | ||
|
||
```elixir | ||
def deps do | ||
[ | ||
{:translixir_application, "~> 0.1.0"} | ||
{:translixir, "~> 0.1.0"} | ||
] | ||
end | ||
``` | ||
|
||
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) | ||
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can | ||
be found at [https://hexdocs.pm/translixir_application](https://hexdocs.pm/translixir_application). | ||
## License | ||
|
||
[LGPL](LICENSE). Copyright (c) 2020 Julia Naomi. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,57 @@ | ||
defmodule Translixir.MixProject do | ||
use Mix.Project | ||
|
||
@source_url "https://github.com/naomijub/translixir/" | ||
|
||
def project do | ||
[ | ||
app: :translixir_application, | ||
app: :translixir, | ||
version: "0.1.0", | ||
description: "Crux Datalog DB Client", | ||
elixir: "~> 1.11", | ||
start_permanent: Mix.env() == :prod, | ||
package: package, | ||
deps: deps() | ||
package: package(), | ||
deps: deps(), | ||
docs: docs() | ||
] | ||
end | ||
|
||
# Run "mix help compile.app" to learn about applications. | ||
def application do | ||
[ | ||
extra_applications: [:logger, :httpoison], | ||
mod: {Translixir.Application, []} | ||
] | ||
end | ||
|
||
# Run "mix help deps" to learn about dependencies. | ||
defp deps do | ||
[ | ||
{:httpoison, "~> 1.6"} | ||
# {:dep_from_hexpm, "~> 0.3.0"}, | ||
# {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} | ||
{:httpoison, "~> 1.6"}, | ||
{:ex_doc, "~> 0.22", only: :dev, runtime: false}, | ||
] | ||
end | ||
|
||
defp package do | ||
[files: ["lib", "mix.exs", "README*", "readme*", "LICENSE*", "license*"], | ||
contributors: ["Julia Naomi"], | ||
licenses: ["LGPL-3.0"], | ||
links: %{"GitHub" => "https://github.com/naomijub/translixir/", | ||
"Crux" => "https://www.opencrux.com/reference/installation.html#restapi"}] | ||
[ | ||
files: ~w(lib mix.exs .formatter.exs README* LICENSE* CHANGELOG*), | ||
contributors: ["Julia Naomi"], | ||
licenses: ["LGPL-3.0"], | ||
links: %{ | ||
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md", | ||
"GitHub" => @source_url, | ||
"Crux" => "https://www.opencrux.com/reference/installation.html#restapi" | ||
} | ||
] | ||
end | ||
|
||
defp docs do | ||
[ | ||
main: "readme", | ||
source_url: @source_url, | ||
extras: [ | ||
"CHANGELOG.md", | ||
"README.md", | ||
"LICENSE", | ||
] | ||
] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters