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 an imgbasename option to the UML directive #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fconil
Copy link

@fconil fconil commented May 30, 2018

Hi,
I wished to be able to specify the names of the generated diagrams with an imgbasename option in the uml directive. I wanted to be able to store the generated diagrams with a meaningful name just in case.

I saw that you won't rewrite the file if it has the same name. In my case, I want to overwrite the file, so I have added a global option plantuml_overwrite_output. It's True by default and I realize that it may be wrong as this will change the behaviour of your extension.
Regards

@yuja
Copy link
Collaborator

yuja commented May 31, 2018

Well, the hashed filename is the cache key to avoid running plantuml unless
necessary. Running plantuml is painfully slow.

Perhaps, you can instead copy (or symlink) a generated file to the imgbasename
location if specified.

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