-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathmix.exs
More file actions
149 lines (143 loc) · 4.35 KB
/
Copy pathmix.exs
File metadata and controls
149 lines (143 loc) · 4.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
defmodule Nadia.Mixfile do
use Mix.Project
@source_url "https://github.com/zhyu/nadia"
@version "1.6.1"
def project do
[
app: :nadia,
version: @version,
elixir: "~> 1.20",
package: package(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
test_ignore_filters: [~r"test/support/"]
]
end
def cli do
[
preferred_envs: [docs: :docs]
]
end
defp deps do
[
{:jason, "~> 1.4"},
{:req, "~> 0.7.1"},
{:ex_doc, ">= 0.0.0", only: :docs, runtime: false}
]
end
defp package do
[
description: "Telegram Bot API and Telegraph client for Elixir",
files: [
".formatter.exs",
"CHANGELOG.md",
"CONTRIBUTING.md",
"examples",
"LICENSE.md",
"README.md",
"guides",
"lib",
"mix.exs"
],
maintainers: ["zhyu"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => @source_url <> "/blob/master/CHANGELOG.md",
"Telegram Bot API" => "https://core.telegram.org/bots/api",
"Telegraph API" => "https://telegra.ph/api"
}
]
end
defp docs do
[
extras: [
"README.md": [title: "Overview"],
"guides/build-your-first-bot.md": [title: "Build Your First Bot"],
"guides/examples.md": [title: "Examples And Learning Paths"],
"guides/examples/inline-keyboards.md": [title: "Commands And Inline Keyboards"],
"guides/examples/conversation-state.md": [title: "Conversation State"],
"guides/examples/persistent-sessions.md": [title: "Persistent Session Backends"],
"guides/examples/media-and-files.md": [title: "Media And Files"],
"guides/examples/rich-messages-and-stories.md": [title: "Rich Messages And Stories"],
"guides/examples/errors-and-rate-limits.md": [title: "Errors And Rate Limits"],
"guides/receive-webhook-updates.md": [title: "Receive Webhook Updates"],
"guides/multiple-bots.md": [title: "Run Multiple Bots"],
"guides/testing-bots.md": [title: "Test Bot Handlers"],
"guides/production-checklist.md": [title: "Production Checklist"],
"guides/telegraph.md": [title: "Use The Telegraph API"],
"CHANGELOG.md": [title: "Changelog"],
"LICENSE.md": [title: "License"]
],
groups_for_extras: [
"Start Here": [
"README.md",
"guides/build-your-first-bot.md",
"guides/examples.md"
],
Examples: ~r|guides/examples/|,
"Integrate And Operate": [
"guides/receive-webhook-updates.md",
"guides/multiple-bots.md",
"guides/testing-bots.md",
"guides/production-checklist.md"
],
Telegraph: ["guides/telegraph.md"],
Project: ["CHANGELOG.md", "LICENSE.md"]
],
groups_for_modules: [
"Bot API": [
Nadia,
Nadia.Behaviour,
Nadia.Client,
Nadia.InputContactMessageContent,
Nadia.InputFile,
Nadia.InputInvoiceMessageContent,
Nadia.InputLocationMessageContent,
Nadia.InputMedia,
Nadia.InputPaidMedia,
Nadia.InputPollOption,
Nadia.InputPollMedia,
Nadia.InputProfilePhoto,
Nadia.InputRichMessage,
Nadia.InputRichMessageContent,
Nadia.InputSticker,
Nadia.InputStoryContent,
Nadia.InputTextMessageContent,
Nadia.InputVenueMessageContent,
Nadia.LabeledPrice,
Nadia.ReactionType,
Nadia.StoryArea
],
"Bot Runtime": [
Nadia.Context,
Nadia.Dispatcher,
Nadia.Handler,
Nadia.Polling,
Nadia.SessionStore,
Nadia.SessionStore.ETS,
Nadia.Webhook
],
"HTTP And Parsing": [
Nadia.API,
Nadia.Config,
Nadia.HTTPClient,
Nadia.HTTPClient.Req,
Nadia.HTTPDownloadRequest,
Nadia.HTTPDownloadResponse,
Nadia.HTTPRequest,
Nadia.HTTPResponse,
Nadia.Parser
],
Telegraph: ~r/^Nadia\.Graph/,
Models: ~r/^Nadia\.Model/,
"Mix Tasks": ~r/^Mix\.Tasks\.Nadia/
],
main: "readme",
source_url: @source_url,
formatters: ["html"]
]
end
end