orzih / mkdocs-with-pdf

Generate a single PDF file from MkDocs repository.
MIT License
332 stars 77 forks source link

How to overwrite the scss for pdf. #48

Closed kittiu closed 3 years ago

kittiu commented 3 years ago

Hi, I have read the documentation. And it seem the way to change is to add our file to extra_css in config file.

extra_css:
    - css/extra.css

I have done so. On build, the file extra.css wll be addded in site but nothing seem to happen

orzih commented 3 years ago

extra_css is mkdocs's option(pure css file - not SCSS/SASS). see material sample extra.css.

Please check debug_html option of this plugin. ...and browse output with chrome Chrome Print Preview Mode will you help.

Note: WeasyPrint and Google Chrome are not fully compatible.

kittiu commented 3 years ago

Thank you @orzih and also thank you for excellent work also.