这是indexloc提供的服务,不要输入任何密码
Skip to content

Support for static pre-rendering #134

@astrojuanlu

Description

@astrojuanlu

I have been trying all different rendering modes of sphinxcontrib-mermaid, and now I'm stuck:

At this point I wanted to try to pre-render the PNG images while keeping the Mermaid code in the docs (similar to what happens with sphinx.ext.autosummary). But the extension will dump the image directly in the build/html directory:

outdir = os.path.join(self.builder.outdir, self.builder.imagedir)

Hence I cannot commit the PNG to version control and use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions