Skip to content

Commit 784a0b5

Browse files
authored
v3.0.2 (#95)
* Fix/page layout (#94) * Set min page height * Use page options when publishing * Bump version, update docs
1 parent 71443dc commit 784a0b5

File tree

5 files changed

+27
-20
lines changed

5 files changed

+27
-20
lines changed

‎docs/04-about/release-notes.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Release Notes
22
=============
33

4+
3.0.2 (2022-02-28)
5+
------------------
6+
7+
- Fixes
8+
- Set minimum page height to fill device screen
9+
- Read page additional output options when publishing HTML and PDF
10+
411
3.0.1 (2022-02-24)
512
------------------
613

‎esparto/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
esparto
44
=======
55
6-
Simple HTML page and PDF generator for Python.
6+
Data driven report builder for the PyData ecosystem.
77
88
Please visit https://domvwt.github.io/esparto/ for documentation and examples.
99
@@ -15,7 +15,7 @@
1515

1616
__author__ = """Dominic Thorn"""
1717
__email__ = "dominic.thorn@gmail.com"
18-
__version__ = "3.0.1"
18+
__version__ = "3.0.2"
1919

2020
_MODULE_PATH: _Path = _Path(__file__).parent.absolute()
2121

‎esparto/_layout.py‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -522,16 +522,16 @@ def save_html(
522522
html (str): Document rendered as HTML. (If `return_html` is True)
523523
524524
"""
525-
html = publish_html(
526-
self,
527-
filepath=filepath,
528-
return_html=return_html,
529-
dependency_source=dependency_source,
530-
)
531-
532-
if return_html:
533-
return html
534-
return None
525+
with OptionsContext(self.output_options):
526+
html = publish_html(
527+
self,
528+
filepath=filepath,
529+
return_html=return_html,
530+
dependency_source=dependency_source,
531+
)
532+
if return_html:
533+
return html
534+
return None
535535

536536
def save_pdf(
537537
self, filepath: str = "./esparto-doc.pdf", return_html: bool = False
@@ -550,11 +550,11 @@ def save_pdf(
550550
html (str): Document rendered as HTML. (If `return_html` is True)
551551
552552
"""
553-
html = publish_pdf(self, filepath, return_html=return_html)
554-
555-
if return_html:
556-
return html
557-
return None
553+
with OptionsContext(self.output_options):
554+
html = publish_pdf(self, filepath, return_html=return_html)
555+
if return_html:
556+
return html
557+
return None
558558

559559
def to_html(self, **kwargs: bool) -> str:
560560
with OptionsContext(self.output_options):

‎esparto/resources/jinja/base.html.jinja‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
</nav>
3232

3333
<!-- Content -->
34-
<main class="container">
34+
<main class="container" style="min-height: 100vh;">
3535
{{ content }}
3636
</main>
3737

3838
<!-- Footer -->
3939
<footer class="footer d-flex bg-light mt-5 d-print-none" width="100vw" height="2em">
40-
<a class="small text-decoration-none text-dark fst-italic" style="margin-left: 10vw; padding: 0.3em;"
40+
<a class="small text-decoration-none text-dark fst-italic font-italic" style="margin-left: 10vw; padding: 0.3em;"
4141
href="https://domvwt.github.io/esparto/">
4242
esparto
4343
</a>

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "esparto"
3-
version = "3.0.1"
3+
version = "3.0.2"
44
description = "Data driven report builder for the PyData ecosystem."
55
authors = ["Dominic Thorn <dominic.thorn@gmail.com>"]
66
license = "MIT"

0 commit comments

Comments
 (0)