Skip to content

Commit fa85aa7

Browse files
committed
Use latest Elixir versions in documentation page
1 parent 8cc8571 commit fa85aa7

File tree

1 file changed

+23
-36
lines changed

1 file changed

+23
-36
lines changed

docs.markdown

+23-36
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ layout: default
88

99
Choose which version you want documentation for.
1010

11-
#### Stable
11+
{% assign stable = site.data.elixir-versions[site.data.elixir-versions.stable] %}
12+
13+
<h4 id="stable">Stable
14+
{% if stable.docs_zip == true %}
15+
<small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v{{ stable.version }}/Docs.zip">download</a>)</small>
16+
{% endif %}
17+
</h4>
1218

1319
* [Elixir](https://hexdocs.pm/elixir/) - standard library
1420
* [EEx](https://hexdocs.pm/eex/) - templating library
@@ -26,38 +32,19 @@ Choose which version you want documentation for.
2632
* [Logger](https://hexdocs.pm/logger/master/) - built-in Logger
2733
* [Mix](https://hexdocs.pm/mix/master/) - build tool
2834

29-
<h4 id="v1.4">v1.4 <small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v1.4.0/Docs.zip">download</a>)</small></h4>
30-
31-
* [Elixir](https://hexdocs.pm/elixir/1.4.0/) - standard library
32-
* [EEx](https://hexdocs.pm/eex/1.4.0/) - templating library
33-
* [ExUnit](https://hexdocs.pm/ex_unit/1.4.0/) - unit test library
34-
* [IEx](https://hexdocs.pm/iex/1.4.0/) - interactive shell
35-
* [Logger](https://hexdocs.pm/logger/1.4.0/) - built-in Logger
36-
* [Mix](https://hexdocs.pm/mix/1.4.0/) - build tool
37-
38-
<h4 id="v1.3">v1.3 <small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v1.3.3/Docs.zip">download</a>)</small></h4>
39-
40-
* [Elixir](https://hexdocs.pm/elixir/1.3.3/) - standard library
41-
* [EEx](https://hexdocs.pm/eex/1.3.3/) - templating library
42-
* [ExUnit](https://hexdocs.pm/ex_unit/1.3.3/) - unit test library
43-
* [IEx](https://hexdocs.pm/iex/1.3.3/) - interactive shell
44-
* [Logger](https://hexdocs.pm/logger/1.3.3/) - built-in Logger
45-
* [Mix](https://hexdocs.pm/mix/1.3.3/) - build tool
46-
47-
<h4 id="v1.2">v1.2 <small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v1.2.6/Docs.zip">download</a>)</small></h4>
48-
49-
* [Elixir](https://hexdocs.pm/elixir/1.2.6/) - standard library
50-
* [EEx](https://hexdocs.pm/eex/1.2.6/) - templating library
51-
* [ExUnit](https://hexdocs.pm/ex_unit/1.2.6/) - unit test library
52-
* [IEx](https://hexdocs.pm/iex/1.2.6/) - interactive shell
53-
* [Logger](https://hexdocs.pm/logger/1.2.6/) - built-in Logger
54-
* [Mix](https://hexdocs.pm/mix/1.2.6/) - build tool
55-
56-
<h4 id="v1.1">v1.1 <small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v1.1.1/Docs.zip">download</a>)</small></h4>
57-
58-
* [Elixir](https://hexdocs.pm/elixir/1.1.1/) - standard library
59-
* [EEx](https://hexdocs.pm/eex/1.1.1/) - templating library
60-
* [ExUnit](https://hexdocs.pm/ex_unit/1.1.1/) - unit test library
61-
* [IEx](https://hexdocs.pm/iex/1.1.1/) - interactive shell
62-
* [Logger](https://hexdocs.pm/logger/1.1.1/) - built-in Logger
63-
* [Mix](https://hexdocs.pm/mix/1.1.1/) - build tool
35+
{% for version in site.data.elixir-versions reversed %}
36+
{% if version[0] == 'stable' %}
37+
{% continue %}
38+
{% endif %}
39+
40+
<h4 id="{{ version[1].name }}">{{ version[1].name }}
41+
{% if version[1].docs_zip == true %}<small>(<a href="https://github.com/elixir-lang/elixir/releases/download/v{{ version[1].version }}/Docs.zip">download</a>)</small>{% endif %}
42+
</h4>
43+
44+
* [Elixir](https://hexdocs.pm/elixir/{{ version[1].version }}/) - standard library
45+
* [EEx](https://hexdocs.pm/eex/{{ version[1].version }}/) - templating library
46+
* [ExUnit](https://hexdocs.pm/ex_unit/{{ version[1].version }}/) - unit test library
47+
* [IEx](https://hexdocs.pm/iex/{{ version[1].version }}/) - interactive shell
48+
* [Logger](https://hexdocs.pm/logger/{{ version[1].version }}/) - built-in Logger
49+
* [Mix](https://hexdocs.pm/mix/{{ version[1].version }}/) - build tool
50+
{% endfor %}

0 commit comments

Comments
 (0)