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

AttributeError: module 'mkdocs.utils' has no attribute 'string_types' #16

Closed
jmborer opened this issue Apr 30, 2020 · 2 comments · Fixed by #15
Closed

AttributeError: module 'mkdocs.utils' has no attribute 'string_types' #16

jmborer opened this issue Apr 30, 2020 · 2 comments · Fixed by #15
Milestone

Comments

@jmborer
Copy link

jmborer commented Apr 30, 2020

Hi,

Apparently mkdpdfs is not compatible with mkdocs 1.1: mkdocs.utils.string_types seems to no longer exist.

beautifulsoup4==4.9.0
cairocffi==1.1.0
CairoSVG==2.4.2
cffi==1.14.0
click==7.1.2
cssselect2==0.3.0
defusedxml==0.6.0
future==0.18.2
html5lib==1.0.1
Jinja2==2.11.2
joblib==0.14.1
livereload==2.6.1
lunr==0.5.6
Markdown==3.2.1
markdown-captions==2
markdown-figcap==0.1.1
markdown-include==0.5.1
MarkupSafe==1.1.1
mkdocs==1.1
mkdocs-material==5.1.3
mkdocs-material-extensions==1.0b2
mkdocs-pdf-export-plugin==0.5.6
mkpdfs-mkdocs==1.0.1
nltk==3.5
Pillow==7.1.2
pycparser==2.20
Pygments==2.6.1
pymdown-extensions==7.1
Pyphen==0.9.5
PyYAML==5.3.1
regex==2020.4.4
six==1.14.0
soupsieve==2.0
tinycss2==1.0.2
tornado==6.0.4
tqdm==4.45.0
WeasyPrint==51
webencodings==0.5.1

@lavahot
Copy link
Contributor

lavahot commented May 8, 2020

Does an earlier version of mkdocs still work?

@jmborer
Copy link
Author

jmborer commented May 8, 2020

I don't know, I need the latest version of MkDocs. Here is working code:

class Mkpdfs(BasePlugin):
config_scheme = (
('design', config_options.Type(str, default=None)),
('toc_title', config_options.Type(str, default="Table of Contents")),
('company', config_options.Type(str, default=None)),
('author', config_options.Type(str, default=None)),
('toc_position', config_options.Type(str, default="pre")),
('output_path', config_options.Type(str, default="pdf/combined.pdf")),
('embed_pdf_link', config_options.Type(bool, default=True)),
)

I have added in my version a toggle (embed_pdf_link)to disable the rendering of the PDF download link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants