Skip to main content

A MkDocs plugin

Project description

mkdocs-obsidian-excalidraw-plugin

This plugin includes excalidraw markdown files into the markdown files, which are created by obsidian-excalidraw-plugin. It fences it with code-block with excalidraw-type. In combination with mkdocs-kroki-plugin you can include such files automatically into your website.

Note: All excalidraw markdown files has to have the extension .excalidraw.md, otherwise the plugin will not find them.

Setup

Install the plugin using pip:

pip install mkdocs-obsidian-excalidraw-plugin

Activate the plugin in mkdocs.yml:

plugins:
  - search
  - obsidian-excalidraw

Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.

More information about plugins in the MkDocs documentation.

Template setup for complete obsidian setup

Install the following plugins: (search for them by yourself for more documentation)

  • mkdocs-obsidian-bridge
  • mkdocs-obsidian-excalidraw-plugin
  • mkdocs-obsidian-support-plugin
  • mkdocs-kroki-plugin

pip install mkdocs-obsidian-bridge mkdocs-obsidian-excalidraw-plugin mkdocs-obsidian-support-plugin mkdocs-kroki-plugin

And set them up like the following

plugins:
  - search
  - obsidian-excalidraw:
      FencePrefix: ""
  - obsidian-support
  - obsidian-bridge
  - kroki:
      FencePrefix: ""
      EnableExcalidraw: true
      HttpMethod: POST
      FileTypes:
        - svg
        - png

Config

  • FencePrefix - Adjust this to your config of kroki. If you do not specify it, it will defaults to kroki-. It is does not set correctly, kroki-plugin will not find the code block this plugin included.

Usage

See Also

More information about templates here.

More information about blocks here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_obsidian_excalidraw_plugin-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file mkdocs_obsidian_excalidraw_plugin-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mkdocs_obsidian_excalidraw_plugin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e7e6af143ebb7fa15cb1b7c9e06ac843db08202ba326b6cf7e78972eaa3b555
MD5 a6f53d626f0fbd614476012745bb9e29
BLAKE2b-256 5e7166bbb0d059a795a6853c68163a17f2a97df3356f40fc3ff3190362e1647b

See more details on using hashes here.

File details

Details for the file mkdocs_obsidian_excalidraw_plugin-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_obsidian_excalidraw_plugin-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3dd8f70d79c0f24dd2ce0f9380f8d5491fa070164a8877d0eba9c393256aa921
MD5 1d28b0fe133cc3492402246a270a5427
BLAKE2b-256 8dc26af7312d3991197008cab7491de4cfc69ccb3e46c8f0b2108ab5ee8147f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page