Skip to content

Commit 050916a

Browse files
committed
Merge branch 'master' into warnings_as_errors
2 parents df1758b + 898b333 commit 050916a

File tree

250 files changed

+12456
-38261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+12456
-38261
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
mix_test:
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-20.04
1212
env:
1313
MIX_ENV: test
1414
strategy:
@@ -17,13 +17,13 @@ jobs:
1717
include:
1818
- pair:
1919
elixir: "1.11"
20-
otp: 21
20+
otp: "21"
2121
- pair:
22-
elixir: "1.13"
23-
otp: 24
22+
elixir: "1.14"
23+
otp: "26"
2424
lint: lint
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727

2828
- uses: erlef/setup-beam@v1
2929
with:
@@ -59,17 +59,14 @@ jobs:
5959
name: Check JS
6060
runs-on: ubuntu-latest
6161
steps:
62-
- uses: actions/checkout@v2.3.3
63-
- name: Set up Node.js 10.x
64-
uses: actions/setup-node@v1.4.4
62+
- uses: actions/checkout@v3
63+
- uses: actions/setup-node@v3
6564
with:
66-
node-version: 10.10.0
65+
node-version: 16
6766
- run: npm install --prefix assets
6867
- run: npm run --prefix assets lint
69-
7068
- run: sudo apt-get install xvfb
71-
- name: npm install, build, and test
72-
run: |
69+
- run: |
7370
xvfb-run --auto-servernum npm run --prefix assets test
7471
env:
7572
CI: true

CHANGELOG.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,88 @@
11
# Changelog
22

3+
## v0.29.4 (2023-03-29)
4+
5+
* Bug fixes
6+
* Fix sidebar element with no children taking additional padding
7+
* Fix elements being rendered too thick on macOS
8+
* Fix rendering of HTML elements inside tooltips
9+
10+
## v0.29.3 (2023-03-17)
11+
12+
* Enhancements
13+
* Propagate `:since` metadata from modules
14+
* Add support for MFAs and maps in `before_closing_body_tag` and `before_closing_head_tag`
15+
16+
* Bug fixes
17+
* Improve font consistency across different OSes
18+
* Keep language class on livebook output code block
19+
* Ensure switches have higher precedence than config
20+
21+
## v0.29.2 (2023-03-02)
22+
23+
* Enhancements
24+
* Improvements to cheatsheets spacing
25+
* Improvements to cheatsheets print
26+
* Include sections of modules and extras in search suggestions
27+
* Make sidebar links full-width and add hover states
28+
* Improve clickable area of sidebar tabs
29+
* Improve contrast on sidebar
30+
31+
* Bug fix
32+
* Add media type for .license files for epub
33+
* Fix overscroll on the sidebar
34+
* Focus search input immediately after keyboard shortcut
35+
* Don't attempt parsing code blocks that don't look like modules
36+
* Fix visited link color in admonition blocks
37+
38+
## v0.29.1 (2022-11-21)
39+
40+
* Enhancements
41+
* Add optional function annotations
42+
* Support media print on stylesheets
43+
* Add download ePub link to footer
44+
* Support extras for Erlang
45+
* Add tooltip to functions on sidebar
46+
* Disable spellcheck and autocorrect on search input
47+
48+
* Bug fix
49+
* Special handle functions called `record/*` in Erlang
50+
51+
* Deprecations
52+
* Rename `:groups_for_functions` to `:groups_for_docs`
53+
54+
## v0.29.0 (2022-10-19)
55+
56+
* Enhancements
57+
* Support cheatsheets as `.cheatmd` files
58+
59+
* Bug fix
60+
* Collapse sidebar when resizing page even if stored in the session as opened
61+
62+
## v0.28.6 (2022-10-13)
63+
64+
* Enhancements
65+
* Add Elixir special punctuation ! and ? to natural sort
66+
* Add night mode to settings pane
67+
* Support --proglang in mix docs
68+
* Save sidebar state per session
69+
* Distinguish output code blocks in Livebooks
70+
71+
* Bug fixes
72+
* Prevent sidebar button scrolling out of view
73+
* Prevent unreadable text when using inline code with admonition headers
74+
75+
## v0.28.5 (2022-08-18)
76+
77+
* Enhancements
78+
* Do not preserve spaces from spec declaration in signature rendering
79+
* Index hyphens in search
80+
* Index `@` in search
81+
* Change minimal package search length to 2
82+
83+
* Bug fixes
84+
* Remove extra `term()` argument at start of `@macrocallback`
85+
386
## v0.28.4 (2022-04-28)
487

588
* Enhancements

Cheatsheet.cheatmd

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
# Cheatsheet User Guide
2+
3+
This document is a cheatsheet on how to use cheatsheets.
4+
Cheatsheets are Markdown files with the `.cheatmd` extension. You may also check the source of this document as a reference.
5+
6+
## I'm a H2 title with 2 columns
7+
{: .col-2}
8+
9+
### I'm a H3 title
10+
11+
#### I'm a H4 title.
12+
13+
And this is a paragraph.
14+
15+
### Code
16+
17+
```elixir
18+
# hello.exs
19+
defmodule Greeter do
20+
def greet(name) do
21+
message = "Hello, " <> name <> "!"
22+
IO.puts message
23+
end
24+
end
25+
26+
Greeter.greet("world")
27+
```
28+
29+
### Paragraphs
30+
31+
Paragraphs are also supported and can quote `code`.
32+
33+
Several paragraphs are visually distinct.
34+
35+
### Lists
36+
37+
- Element 1
38+
- Element 2
39+
- `piece of code`
40+
41+
### Table
42+
43+
#### Date (H4 header)
44+
45+
| Example | Output |
46+
| --- | --- |
47+
| `%m/%d/%Y` | `06/05/2013` |
48+
| `%A, %B %e, %Y` | `Sunday, June 5, 2013` |
49+
| `%b %e %a` | `Jun 5 Sun` |
50+
51+
## Variants
52+
{: .col-2}
53+
54+
### Adding variants
55+
56+
```
57+
## H2
58+
{: .col-2}
59+
60+
### H3
61+
{: .list-6}
62+
63+
* example 1
64+
* example 2
65+
```
66+
67+
Variants customize how your cheatsheet looks like via Markdown's inline attribute notation.
68+
69+
### Header variants
70+
71+
#### H2
72+
73+
| `.col-2` | two-columns |
74+
| `.col-3` | three-columns |
75+
| `.col-2-left` | two-columns (1/3 - 2/3) |
76+
77+
#### H3
78+
79+
| `.list-4` | four-columns for lists |
80+
| `.list-6` | six-columns for lists |
81+
82+
## Code
83+
{: .col-3}
84+
85+
### Code with headings
86+
87+
#### index.ex
88+
89+
```
90+
Path.join(["~", "foo"])
91+
"~/foo"
92+
```
93+
94+
#### other.ex
95+
96+
```
97+
Path.join(["foo"])
98+
"foo"
99+
```
100+
101+
Code blocks can have headings.
102+
103+
### Long lines
104+
105+
```elixir
106+
defmodule MyTracer do
107+
def trace({:remote_function, _meta, module, name, arity}, env) do
108+
IO.puts "#{env.file}:#{env.line} #{inspect(module)}.#{name}/#{arity}"
109+
:ok
110+
end
111+
112+
def trace(_event, _env) do
113+
:ok
114+
end
115+
end
116+
```
117+
118+
Long lines show scrollbars.
119+
120+
### Line wrapping
121+
122+
```elixir
123+
defmodule MyTracer do
124+
def trace({:remote_function, _meta, module, name, arity}, env) do
125+
IO.puts "#{env.file}:#{env.line} #{inspect(module)}.#{name}/#{arity}"
126+
:ok
127+
end
128+
129+
def trace(_event, _env) do
130+
:ok
131+
end
132+
end
133+
```
134+
{: .wrap}
135+
136+
Add `wrap` to wrap long lines.
137+
138+
## Lists
139+
{: .col-2}
140+
141+
### Bullet lists
142+
143+
- This is
144+
- a list
145+
- with a few items
146+
147+
### Ordered lists
148+
149+
1. I'm first;
150+
2. You are second;
151+
3. We are third;
152+
153+
Here's an extra paragraph after the list.
154+
155+
### With headings and code links
156+
157+
#### Part 1
158+
159+
- `is_atom/1`
160+
- `is_binary/1`
161+
- `is_number/1`
162+
163+
#### Part 2
164+
165+
- `length/1`
166+
- `elem/2`
167+
168+
## List columns
169+
170+
### Six columns
171+
{: .list-6}
172+
173+
- One
174+
- Two
175+
- Three
176+
- Four
177+
- Five
178+
- Six
179+
- Seven
180+
- Eight
181+
- Nine
182+
- Ten
183+
- Eleven
184+
185+
Add `{: .list-6}` after the H3 title to make large lists.
186+
187+
### Four columns
188+
{: .list-4}
189+
190+
- One
191+
- Two
192+
- Three
193+
- Four
194+
- Five
195+
- Six
196+
- Seven
197+
- Eight
198+
- Nine
199+
- Ten
200+
- Eleven
201+
202+
Add `{: .list-4}` after the H3 title to make large lists.
203+
204+
## Full page
205+
206+
This is the default.
207+
208+
## Half width
209+
{: .width-50}
210+
211+
### I make tables look nicer
212+
213+
#### Time
214+
215+
| Example | Output |
216+
| --- | --- |
217+
| `%H:%M` | `23:05` |
218+
| `%I:%M %p` | `11:05 PM` |
219+
220+
Add `{: .width-50}` after the H2 title to use only half width.
221+
222+
## Column left reference
223+
{: .col-2-left}
224+
225+
### One
226+
227+
```elixir
228+
# hello.exs
229+
defmodule Greeter do
230+
def greet(name) do
231+
message = "Hello, " <> name <> "!"
232+
IO.puts message
233+
end
234+
end
235+
236+
Greeter.greet("world")
237+
```
238+
239+
### Two
240+
241+
```elixir
242+
user = %{
243+
name: "John",
244+
city: "Melbourne"
245+
}
246+
```
247+
248+
```elixir
249+
IO.puts "Hello, " <> user.name
250+
```
251+
252+
### Three
253+
254+
* Yet
255+
* Another
256+
* List
257+
258+
### Four
259+
260+
I'm a grid, with 1/3 - 2/3 width.

0 commit comments

Comments
 (0)