Skip to content

Commit c9fd1f6

Browse files
authored
chore: prepare for 0.14.0 version (#600)
2 parents 376dbe7 + 1bede7b commit c9fd1f6

File tree

8 files changed

+77
-19
lines changed

8 files changed

+77
-19
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1+
# v0.14.0 - 2025-05-17
2+
3+
## New features
4+
5+
* Add support for [exporting presentations as HTML files](https://mfontanini.github.io/presenterm/features/exports.html#html) ([#566](https://github.com/mfontanini/presenterm/issues/566)) ([#595](https://github.com/mfontanini/presenterm/issues/595)) ([#575](https://github.com/mfontanini/presenterm/issues/575)) ([#599](https://github.com/mfontanini/presenterm/issues/599)) - thanks @JustSimplyKyle.
6+
* Snippet execution output now contains configurable padding and built-in themes default to the same padding as snippets (2 spaces horizontally, one line vertically) ([#592](https://github.com/mfontanini/presenterm/issues/592)) ([#593](https://github.com/mfontanini/presenterm/issues/593)).
7+
* Add highlighting and execution support for Jsonnet ([#585](https://github.com/mfontanini/presenterm/issues/585)) - thanks @imobachgs.
8+
* Allow [configuring snippets](https://mfontanini.github.io/presenterm/configuration/settings.html#sequential-snippet-execution) to be executed sequentially during exports ([#584](https://github.com/mfontanini/presenterm/issues/584)).
9+
10+
## Fixes
11+
12+
* Skip slides with pauses correctly ([#598](https://github.com/mfontanini/presenterm/issues/598)).
13+
* Avoid printing text if there's no vertical space for it, which otherwise looks bad particularly when using font size > 1 ([#594](https://github.com/mfontanini/presenterm/issues/594)).
14+
* Execute snippets only once during export ([#583](https://github.com/mfontanini/presenterm/issues/583)).
15+
* Don't add an extra pause after lists if there's nothing left ([#580](https://github.com/mfontanini/presenterm/issues/580)).
16+
* Allow interleaved spans and variables in footer ([#577](https://github.com/mfontanini/presenterm/issues/577)).
17+
* Truly center `+exec_replace` snippet output ([#572](https://github.com/mfontanini/presenterm/issues/572)).
18+
19+
## Docs
20+
21+
* Added link to public presentation using presenterm ([#589](https://github.com/mfontanini/presenterm/issues/589)) - thanks @pwnwriter.
22+
* Rename parameter name to the correct one in docs ([#570](https://github.com/mfontanini/presenterm/issues/570)) - thanks @DzuWe.
23+
* Fix typo in highlighting.md ([#586](https://github.com/mfontanini/presenterm/issues/586)) - thanks @0atman.
24+
25+
## Chore
26+
27+
* Bump dependencies ([#596](https://github.com/mfontanini/presenterm/issues/596)).
28+
29+
## ❤️ Sponsors
30+
31+
Thanks to the following users who supported _presenterm_ via a [github sponsorship](https://github.com/sponsors/mfontanini) in this release:
32+
33+
* [@0atman](https://github.com/0atman)
34+
* [@orhun](https://github.com/orhun)
35+
136
# v0.13.0 - 2025-04-25
237

338
## Breaking changes

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["Matias Fontanini"]
44
description = "A terminal slideshow presentation tool"
55
repository = "https://github.com/mfontanini/presenterm"
66
license = "BSD-2-Clause"
7-
version = "0.13.0"
7+
version = "0.14.0"
88
edition = "2021"
99

1010
[dependencies]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Visit the [documentation][docs-introduction] to get started.
4444
* [Introduction slide][docs-intro-slide] that displays the presentation title and your name.
4545
* [Slide titles][docs-slide-titles].
4646
* [Snippet execution][docs-code-execute] for various programming languages.
47-
* [Export presentations to PDF][docs-pdf-export].
47+
* [Export presentations to PDF and HTML][docs-exports].
4848
* [Slide transitions][docs-slide-transitions].
4949
* [Pause][docs-pauses] portions of your slides.
5050
* [Custom key bindings][docs-key-bindings].
@@ -82,7 +82,7 @@ Gave a talk using _presenterm_? We would love to feature it here! Open a PR or i
8282
[docs-layout]: https://mfontanini.github.io/presenterm/features/layout.html
8383
[docs-mermaid]: https://mfontanini.github.io/presenterm/features/code/mermaid.html
8484
[docs-latex]: https://mfontanini.github.io/presenterm/features/code/latex.html
85-
[docs-pdf-export]: https://mfontanini.github.io/presenterm/features/pdf-export.html
85+
[docs-exports]: https://mfontanini.github.io/presenterm/features/exports.html
8686
[docs-key-bindings]: https://mfontanini.github.io/presenterm/configuration/settings.html#key-bindings
8787
[docs-hot-reload]: https://mfontanini.github.io/presenterm/features/introduction.html#hot-reload
8888
[docs-speaker-notes]: https://mfontanini.github.io/presenterm/features/speaker-notes.html

docs/book.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ title = "presenterm documentation"
1515
git-repository-url = "https://github.com/mfontanini/presenterm"
1616
default-theme = "navy"
1717

18-
# Redirects for broken links after 02/02/2025 restructuring.
1918
[output.html.redirect]
19+
# Redirects for broken links after 02/02/2025 restructuring.
2020
"/guides/basics.html" = "../features/introduction.html"
2121
"/guides/installation.html" = "../install.html"
2222
"/guides/code-highlight.html" = "../features/code/highlighting.html"
2323
"/guides/mermaid.html" = "../features/code/mermaid.html"
2424

25+
# Redirects for HTML export changes on 05/17/2025.
26+
"/features/pdf-export.html" = "exports.html"
27+

docs/src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- [LaTeX and typst](./features/code/latex.md)
1616
- [Themes](./features/themes/introduction.md)
1717
- [Definition](./features/themes/definition.md)
18-
- [PDF export](./features/pdf-export.md)
18+
- [Exports](./features/exports.md)
1919
- [Slide transitions](./features/slide-transitions.md)
2020
- [Speaker notes](./features/speaker-notes.md)
2121
- [Configuration](./configuration/introduction.md)

docs/src/configuration/settings.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,13 @@ speaker_notes:
279279

280280
# Presentation exports
281281

282-
The configurations that affect PDF exports.
282+
The configurations that affect PDF and HTML exports.
283283

284-
## PDF export size
284+
## Export size
285285

286-
The size of exported PDFs can be configured via the `export.dimensions` key:
286+
By default, the size of each page in the generated PDF and HTML files will depend on the size of your terminal.
287+
288+
If you would like to instead configure the dimensions by hand, set the `export.dimensions` key:
287289

288290
```yaml
289291
export:
@@ -292,8 +294,6 @@ export:
292294
rows: 30
293295
```
294296

295-
See [the PDF export page](../features/pdf-export.md) for more information.
296-
297297
## Pause behavior
298298

299299
By default pauses will be ignored in generated PDF files. If instead you'd like every pause to generate a new page in
@@ -303,3 +303,13 @@ the export, set the `export.pauses` attribute:
303303
export:
304304
pauses: new_slide
305305
```
306+
307+
## Sequential snippet execution
308+
309+
When generating exports, snippets are executed in parallel to make the process faster. If your snippets require being
310+
executed sequentially, you can use the `export.snippets` parameter:
311+
312+
```yaml
313+
export:
314+
snippets: sequential
315+
```
Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Exporting presentations in PDF format
1+
# Exporting presentations
2+
3+
Presentations can be exported to PDF and HTML, to allow easily sharing the slide deck at the end of a presentation.
4+
5+
## PDF
26

37
Presentations can be converted into PDF by using [weasyprint](https://pypi.org/project/weasyprint/). Follow their
48
[installation instructions](https://doc.courtbouillon.org/weasyprint/stable/first_steps.html) since it may require you
@@ -22,14 +26,20 @@ want the output file to be written to.
2226
> If you're using a separate virtual env to install _weasyprint_ just make sure you activate it before running
2327
> _presenterm_ with the `--export-pdf` parameter.
2428
25-
## PDF page size
29+
## HTML
30+
31+
Similarly, using the `--export-html` parameter allows generating a single self contained HTML file that contains all
32+
images and styles embedded in it. As opposed to PDF exports, this requires no extra dependencies:
33+
34+
```bash
35+
presenterm --export-html examples/demo.md
36+
```
2637

27-
By default, the size of each page in the generated PDF will depend on the size of your terminal.
38+
The output file will be placed in `examples/demo.html` but this behavior can be configured via the `--output` flag just
39+
like for PDF exports.
2840

29-
If you would like to instead configure the dimensions by hand, set the `export.dimensions` key in the configuration file
30-
as described in the [settings page](../configuration/settings.md#pdf-export-size).
41+
# Configurable behavior
3142

32-
## Pause behavior
43+
See the [settings page](../configuration/settings.md#presentation-exports) to see all the configurable behavior around
44+
presentation exports.
3345

34-
See the [settings page](../configuration/settings.md#pause-behavior) to learn how to configure the behavior of pauses in
35-
generated PDFs.

0 commit comments

Comments
 (0)