mikitex70 / plantuml-markdown

PlantUML plugin for Python-Markdown
BSD 2-Clause "Simplified" License
192 stars 55 forks source link

Create cache directory if it does not exist #96

Closed mschoettle closed 2 months ago

mschoettle commented 2 months ago

When specifying a cache directory that does not exist mkdocs fails with the following error:

ERROR - Error reading page 'architecture.md': [Errno 2] No such file or directory: '.plantuml/1f370dd8.png'

mkdocs.yml excerpt:

  - plantuml_markdown:
      server: http://www.plantuml.com/plantuml
      # use caching to speed up live-reloading
      cachedir: .plantuml/

I would like to propose to create the directory if it doesn't exist.

mikitex70 commented 2 months ago

Good idea. Implemented and released.

mschoettle commented 2 months ago

Thanks!