Skip to content

Commit

Permalink
docs: docs overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed May 3, 2024
1 parent 097ff39 commit 4752d7e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
![Logo](https://github.com/ash-project/ash/blob/main/logos/cropped-for-header-black-text.png?raw=true#gh-light-mode-only)
![Logo](https://github.com/ash-project/ash/blob/main/logos/cropped-for-header-white-text.png?raw=true#gh-dark-mode-only)

![Elixir CI](https://github.com/ash-project/ash_money/workflows/CI/badge.svg)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Hex version badge](https://img.shields.io/hexpm/v/ash_money.svg)](https://hex.pm/packages/ash_money)
[![Hexdocs badge](https://img.shields.io/badge/docs-hexdocs-purple)](https://hexdocs.pm/ash_money)

# AshMoney

A money extension for Ash.
Welcome! This is the extension for working with money types in [Ash](https://hexdocs.pm/ash). This is a thin wrapper around the very excellent [ex_money](https://hexdocs.pm/ex_money). It provides:

- An `Ash.Type` for representing `Money`
- An `AshPostgres.Extension` for supporting common money operations directly in the database
- An implementation of `Comp` for `%Money{}`, allowing Ash to compare them.

## Tutorials

- [Getting Started with AshMoney](documentation/tutorials/getting-started-with-ash-money.md)
11 changes: 4 additions & 7 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule AshMoney.MixProject do
@version "0.1.6-rc.1"

@description """
A money extension for Ash.
The extension for working with money types in Ash.
"""

def project do
Expand All @@ -18,10 +18,6 @@ defmodule AshMoney.MixProject do
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [plt_add_apps: [:ash]],
preferred_cli_env: [
coveralls: :test,
"coveralls.github": :test
],
docs: docs(),
description: @description,
source_url: "https://github.com/ash-project/ash_money",
Expand Down Expand Up @@ -58,7 +54,7 @@ defmodule AshMoney.MixProject do

defp docs do
[
main: "get-started-with-ash-money",
main: "readme",
source_ref: "v#{@version}",
logo: "logos/small-logo.png",
extra_section: "GUIDES",
Expand All @@ -78,7 +74,8 @@ defmodule AshMoney.MixProject do
end
end,
extras: [
"documentation/tutorials/get-started-with-ash-money.md"
{"README.md", title: "Home"},
"documentation/tutorials/getting-started-with-ash-money.md"
],
groups_for_extras: [
Tutorials: ~r'documentation/tutorials',
Expand Down

0 comments on commit 4752d7e

Please sign in to comment.