Skip to content

Commit 53c1e82

Browse files
authored
Merge pull request #38 from GreyRook/no-compiled-css
removed compressed css output_style to avoid problems with umlauts
2 parents 360f701 + 3c9bdf5 commit 53c1e82

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

mkdocs_with_pdf/styles/__init__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,17 @@ def style_for_print(options: Options) -> str:
3333
"""
3434
css = sass.compile(string=scss)
3535

36-
output_style = 'compressed'
37-
if options.debug_html:
38-
output_style = 'nested'
39-
4036
base_path = os.path.abspath(os.path.dirname(__file__))
4137

4238
filename = os.path.join(base_path, "report-print.scss")
43-
css += sass.compile(filename=filename, output_style=output_style)
39+
css += sass.compile(filename=filename)
4440

4541
if options.cover or options.back_cover:
4642
filename = os.path.join(base_path, "cover.scss")
47-
css += sass.compile(filename=filename, output_style=output_style)
43+
css += sass.compile(filename=filename)
4844

4945
filename = os.path.join(options.custom_template_path, 'styles.scss')
5046
if os.path.exists(filename):
51-
css += sass.compile(filename=filename, output_style=output_style)
47+
css += sass.compile(filename=filename)
5248

5349
return css

mkdocs_with_pdf/themes/material.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ def get_stylesheet(debug_html: bool) -> str:
99
style = ""
1010
for src in ["material.scss", "material-polyfills.css"]:
1111
filename = os.path.join(base_path, src)
12-
output_style = 'compressed'
13-
if debug_html:
14-
output_style = 'nested'
15-
style += sass.compile(filename=filename, output_style=output_style)
12+
style += sass.compile(filename=filename)
1613
return style
1714

1815

mkdocs_with_pdf/themes/mkdocs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
def get_stylesheet(debug_html: bool) -> str:
88
base_path = os.path.abspath(os.path.dirname(__file__))
99
filename = os.path.join(base_path, "mkdocs.scss")
10-
output_style = 'compressed'
11-
if debug_html:
12-
output_style = 'nested'
13-
return sass.compile(filename=filename, output_style=output_style)
10+
return sass.compile(filename=filename)
1411

1512

1613
def get_script_sources() -> list:

0 commit comments

Comments
 (0)