Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove xhtml2pdf / rst2pdf workaround #13

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 2 additions & 6 deletions pelican/plugins/pdf/pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@
import os
import re

from rst2pdf.createpdf import RstToPdf

from pelican import signals
from pelican.generators import Generator
from pelican.readers import MarkdownReader

# Workaround until fixed xhtml2pdf import is included in rst2pdf Release
# https://github.com/rst2pdf/rst2pdf/commit/6ad348cf5a13ae1b884a86574e48ed1e5f8ca135
import xhtml2pdf.default # NOQA isort:skip
from rst2pdf.createpdf import RstToPdf # NOQA isort:skip


logger = logging.getLogger(__name__)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ classifiers = [
python = ">=3.8.1,<4.0"
pelican = ">=4.5"
markdown = {version = ">=3.2.2", optional = true}
rst2pdf = ">=0.98"
rst2pdf = ">=0.99"
xhtml2pdf = ">=0.2.5"

[tool.poetry.dev-dependencies]
Expand Down