Commit c389877e authored by xa's avatar xa

guides

parent 9fabbf5b
Pipeline #1221 passed with stages
in 40 seconds
# Using with Timex
```elixir
{:ok, duration} = Duration.new("P1Y")
{:ok, forward} = Duration.to_timex_options(duration, :forward)
{:ok, backward} = Duration.to_timex_options(duration, :backward)
futur = Timex.shift(~D[2018-12-23], forward)
past = Timex.shift(~D[2018-12-23], backward)
```
......@@ -9,15 +9,19 @@ defmodule Duration.MixProject do
start_permanent: Mix.env() == :prod,
deps: deps(),
# Docs
name: "Duration",
source_url: "https://lab.errorist.xyz/elixir/duration",
homepage_url: "https://elixir.errorist.io/duration",
docs: [
main: "Duration", # The main page in the docs
# logo: "path/to/logo.png",
extras: ["README.md"]
]
# Docs
name: "Duration",
source_url: "https://lab.errorist.xyz/elixir/duration",
homepage_url: "http://elixir.errorist.io/duration",
docs: [
main: "Duration", # The main page in the docs
# logo: "path/to/logo.png",
extras: ["README.md"]
],
groups_for_extras: [
# "Introduction": Path.wildcard("guides/introduction/*.md"),
"Advanced": Path.wildcard("guides/advanced/*.md")
]
]
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment