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

add mkdocs-drawio plugin support #100

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

tuunit
Copy link
Contributor

@tuunit tuunit commented Mar 24, 2024

Motivation

Support printing drawio diagrams. The diagram rendering happens in on_post_page which is skipped by this plugin and therefore we explicitly need to add support for mkdocs-drawio for printing drawio diagrams.

More details

Details regarding the implementation and reasoning can be found here: #99

The latest version of mkdocs-drawio 1.6.0 adds support for printing with this plugin.
tuunit/mkdocs-drawio@b26a7f3

How has this been tested

I've added the mkdocs-print-site-plugin to the example directory in mkdocs-drawio and tested the /print_page/ endpoint and PDF generation:

image

image

@tuunit
Copy link
Contributor Author

tuunit commented Mar 28, 2024

@timvink can we get this reviewed and merged?
I think it would make @hafeja quite happy :)

@timvink
Copy link
Owner

timvink commented Apr 10, 2024

I was on holiday for a while, back now :) This looks fine, thanks for taking the effort!

@timvink timvink merged commit fc54251 into timvink:master Apr 10, 2024
12 checks passed
@tuunit tuunit deleted the mkdocs-drawio-support branch April 10, 2024 16:22
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 this pull request may close these issues.

2 participants