File tree Expand file tree Collapse file tree 5 files changed +27
-20
lines changed Expand file tree Collapse file tree 5 files changed +27
-20
lines changed Original file line number Diff line number Diff line change 11Release 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+
4113.0.1 (2022-02-24)
512------------------
613
Original file line number Diff line number Diff line change 33esparto
44=======
55
6- Simple HTML page and PDF generator for Python .
6+ Data driven report builder for the PyData ecosystem .
77
88Please visit https://domvwt.github.io/esparto/ for documentation and examples.
99
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
Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff line change 3131 </nav >
3232
3333 <!-- Content -->
34- <main class =" container" >
34+ <main class =" container" style = " min-height : 100 vh ; " >
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 >
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " esparto"
3- version = " 3.0.1 "
3+ version = " 3.0.2 "
44description = " Data driven report builder for the PyData ecosystem."
55authors = [" Dominic Thorn <dominic.thorn@gmail.com>" ]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments