Skip to content

Commit df24859

Browse files
committed
Update ebooks
1 parent 2cac096 commit df24859

10 files changed

+8
-8
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/_site
22
/.jekyll-metadata
3-
/cheatsheets/*.aux
4-
/cheatsheets/*.log
3+
/downloads/cheatsheets/*.aux
4+
/downloads/cheatsheets/*.log
55
/.bundle
66
/vendor

_epub/lib/elixir_lang_guide.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defmodule ElixirLangGuide do
1919
config = %{
2020
guide: nil,
2121
homepage: "http://elixir-lang.org",
22-
output: ".",
22+
output: "../downloads/books",
2323
root_dir: source,
2424
scripts: [],
2525
styles: assets("priv/app-*.css"),
Binary file not shown.
21.5 KB
Binary file not shown.

downloads/books/mix-and-otp.epub

139 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.

cheatsheets/gen-server.tex renamed to downloads/cheatsheets/gen-server.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
\section*{GenServer - a cheat sheet}
101101
\begin{itemize}
102102
\setlength\itemsep{0em}
103-
\item[---] last version: \verb|https://elixir-lang.org/cheatsheets/gen-server.pdf|
103+
\item[---] last version: \verb|https://elixir-lang.org/downloads/cheatsheets/gen-server.pdf|
104104
\item[---] reference: \verb|https://hexdocs.pm/elixir/GenServer.html|
105105
\end{itemize}
106106
\begin{comment}

getting-started/introduction.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Let's get started!
2020
2121
> The Elixir guides are also available in EPUB format:
2222
>
23-
> * [Getting started guide](https://repo.hex.pm/guides/elixir/elixir-getting-started-guide.epub)
24-
> * [Mix and OTP guide](https://repo.hex.pm/guides/elixir/mix-and-otp.epub)
25-
> * [Meta-programming guide](https://repo.hex.pm/guides/elixir/meta-programming-in-elixir.epub)
23+
> * [Getting started guide](https://elixir-lang.org/downloads/books/elixir-getting-started-guide.epub)
24+
> * [Mix and OTP guide](https://elixir-lang.org/downloads/books/mix-and-otp.epub)
25+
> * [Meta-programming guide](https://elixir-lang.org/downloads/books/meta-programming-in-elixir.epub)
2626
2727
## Installation
2828

getting-started/mix-otp/genserver.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ So far we have used three callbacks: `handle_call/3`, `handle_cast/2` and `handl
327327

328328
Since any message, including the ones sent via `send/2`, go to `handle_info/2`, there is a chance unexpected messages will arrive to the server. Therefore, if we don't define the catch-all clause, those messages could cause our registry to crash, because no clause would match. We don't need to worry about such cases for `handle_call/3` and `handle_cast/2` though. Calls and casts are only done via the `GenServer` API, so an unknown message is quite likely a developer mistake.
329329

330-
To help developers remember the differences between call, cast and info, the supported return values and more, we have a tiny [GenServer cheat sheet](/cheatsheets/gen-server.pdf).
330+
To help developers remember the differences between call, cast and info, the supported return values and more, we have a tiny [GenServer cheat sheet](/downloads/cheatsheets/gen-server.pdf).
331331

332332
## Monitors or links?
333333

0 commit comments

Comments
 (0)