Skip to content

Preprocessor cannot add folders/files directly to book directory #1222

Open
@nikole-dunixi

Description

@nikole-dunixi

Hello!

I'm implementing a preprocessor that generates plantuml diagrams. It extracts codeblocks with the plantuml language, renders the SVG, and then places a markdown element to reference the image.

While I write my mdbook with mdbook serve I'm finding that I must place these rendered files in the src directory in order for them to appear in the book directory. If my preprocessor tries to put these files into the book path directly, they're immediately nuked.

Is there a way to programmatically tell mdbook that these dynamically created files are valid so they're not removed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions