Skip to content

Commit

Permalink
Merge branch 'samuel-cavalcanti/master' (Pull Request orzih#115)
Browse files Browse the repository at this point in the history
Signed-off-by: Masayuki Murata <[email protected]>
  • Loading branch information
muratams committed Aug 24, 2023
2 parents ccf20e5 + 3d86f57 commit 6453781
Show file tree
Hide file tree
Showing 5 changed files with 6,430 additions and 1 deletion.
11 changes: 11 additions & 0 deletions mkdocs_with_pdf/drivers/web_driver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from typing import Protocol


class WebDriver(Protocol):

def render(self, html: str) -> str:
"""
Receive an html page in string format and execute the javascript
returning the new rendered html
"""
...
2 changes: 1 addition & 1 deletion mkdocs_with_pdf/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _render_js(self, soup):
body.append(script)
if len(self._mixed_script) > 0:
tag = soup.new_tag('script')
tag.text = self._mixed_script
tag.append(self._mixed_script)
body.append(tag)
for src in scripts:
body.append(soup.new_tag('script', src=f'file://{src}'))
Expand Down
Loading

0 comments on commit 6453781

Please sign in to comment.