Giter VIP home page Giter VIP logo

mkdocs-page-pdf's People

Contributors

brospars avatar saibotma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mkdocs-page-pdf's Issues

timeout too short on some build

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

Override link title and box style?

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.

Error in scale option

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 !

Support for embedded images

Edit - This was corrected by referring to /docs/img as /img.

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

pdf is re-build even if the page hasn't changed

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 ?

.

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.

Not able to build the mkdocs using mkdocs build command

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

How to exclude the navigation menu?

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

Add the PDF button only to selected pages

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.