brospars / mkdocs-page-pdf Goto Github PK
View Code? Open in Web Editor NEWAn Mkdocs plugin to download documentation pages as pdf.
License: MIT License
An Mkdocs plugin to download documentation pages as pdf.
License: MIT License
Is there any way you could allow users to override the box styling and link title? I would like to be able to write "Print to PDF" instead of just "PDF", and have a nice flashy looking box.
Brilliant project, thank you for your contribution!
I found out about it from zhaoterryy/mkdocs-pdf-export-plugin#89 (comment) because I had the Empty page prepended bug. pyppeteer
is the way to go!
First of all, thanks to the team here. This is great work!
When I build the pages, I'm not able to embed images. There is no warning. They just show unresolved with the PDF. What do I need to do to make this work?
All the best
Rob
Hello !
I needed to change the timeout settings in line 35 by
await self.page.goto('file://' + temp.name, timeout=0)
because i had a constant issue with timeout being too short for some PDF buildings.
Is it possible to add an option to set proper timeout ?
Thanks for your work
I get following error
vj@VJs-MacBook-Pro techlib-source % mkdocs build
INFO - DeprecationWarning: There is no current event loop
File "/opt/homebrew/lib/python3.10/site-packages/nest_asyncio.py", line 45, in _get_event_loop
loop = events.get_event_loop_policy().get_event_loop()
File "/opt/homebrew/Cellar/[email protected]/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/events.py", line 666, in get_event_loop
warnings.warn('There is no current event loop',
Traceback (most recent call last):
File "/opt/homebrew/bin/mkdocs", line 8, in <module>
sys.exit(cli())
File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/homebrew/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/opt/homebrew/lib/python3.10/site-packages/mkdocs/__main__.py", line 250, in build_command
build.build(cfg, dirty=not clean)
File "/opt/homebrew/lib/python3.10/site-packages/mkdocs/commands/build.py", line 270, in build
config = config.plugins.run_event('config', config)
File "/opt/homebrew/lib/python3.10/site-packages/mkdocs/plugins.py", line 520, in run_event
result = method(item, **kwargs)
File "/opt/homebrew/lib/python3.10/site-packages/mkdocs_page_pdf/plugin.py", line 60, in on_config
onServe = config['dev_addr'].host+':'+str(config['dev_addr'].port) in config['site_url']
TypeError: argument of type 'NoneType' is not iterable
Hi, I want to customize the PDF download button. I see there is no available options to style the button or change the image of the button.
Hi there,
I believe this plugin adds the PDF export button to all pages in the documentation, and I don't see any option to change that.
Would it be possible to have an option that allows to select the pages where the button should appear?
Thanks.
I noticed that for every PDF file created, I see a blank page unnecessarily added at the end of file. Can we remove it?
Hi there,
I have a navigation bar on the right-hand side that has many menu entries and it runs through several pages in the PDF export.
At the same time, the actual content of the page might be half a page.
In any case, the nav is not necessary in the PDF.
How can I exclude it from the PDF file?
Thanks.
Cheers, Manuel
Hello !
There is an error on the scale options, line 16 : it should be float
, not int
.
Thx for your work, it may save me a lot of time !
My website has a lot of different pages, but some of them are static and won't change anymore.
Each time I run mkdocs serve
, the pdf rendering of those pages is rebuild and it takes a loooong time.
Could it be possible to check the changes in the files, and thus only re-build the pdf of these pages ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.