Export Diagrams.net diagrams during Dendron site publishing

Overview

Export Diagrams.net diagrams during Dendron site publishing

Node module for exporting Diagrams.net (Draw.io) diagrams embedded in a published Dendron site to SVG.


Usage

Embed your diagrams in your notes as if they were images:

![My awesome diagram](assets/diagrams/my.awesome.diagram.drawio)

If your diagram has multiple pages, specify the page number (zero-indexed; defaults to 0) in the URL:

![My awesome diagram](assets/diagrams/my.awesome.diagram.drawio#3)

Installation

From the root of your Dendron workspace (where the dendron.code-workspace and dendron.yml files are), install the plugin:

npm install --save-dev dendron-publish-drawio

Publishing a Dendron site involves running the following commands:

npx dendron publish init
npx dendron publish build --wsRoot . --vault public --sitemap
cd .next/
npm run export

We need to add a step, between dendron publish build and npm run export:

npx dendron publish init
npx dendron publish build --wsRoot . --vault public --sitemap
npx dendron-publish-drawio
cd .next/
npm run export
You might also like...

A CLI tool to embed interactive PUML diagrams to your github markdown files.

puml-for-markdown Simple CLI Usage Just run puml-for-markdown in any directory where you have markdown files and it will render links to PlantUML file

Jan 3, 2023

A lightweight SolidJS component for building interactive node-based diagrams and graphs.

Convert Your Ideas To Graphs With Solid Graph! Solid Graph A lightweight and minimal Solid component for building interactive graphs and node-based ed

Dec 8, 2022

A JavaScript library for visualizing Sankey diagrams.

A JavaScript library for visualizing Sankey diagrams.

SanKEY.js v1.0.0 last updated: 20.07.2022 Getting started SanKEY.js is a JavaScript data visualization library that provides a simple object-oriented

Nov 8, 2022

A lightweight SolidJS component for building interactive node-based diagrams and graphs.

Convert Your Ideas To A Simple And Excitig Journay With Odysea! Odysea A lightweight and minimal Solid component for building interactive graphs and n

Aug 15, 2022

Gym Project to Learn ASP.NET Core

Gym Project to Learn ASP.NET Core

OneFitnessVue Gym Project to Learn ASP.NET Core. Read the Documentation » ⚡️ This is Sample Project Which Does not Contain All Features. 🔗 Buy Comple

Jan 3, 2023

ITkonekt .NET workshop

Autobarn This is the sample application for Dylan Beattie's workshop on distributed systems with .NET. It's an Asp.NET Core web application based on v

Dec 19, 2021

Using Htmx, ASP.NET Core, and Marten (postgres document db) to sort list

Using Htmx, ASP.NET Core, and Marten (postgres document db) to sort list

Feb 16, 2022

Create a C# .NET core EntityFramework ORM from your schema.prisma file

A note of forewarning to the would-be user... This was a failure. I'm making a note here: huge regret. It's hard to overstate my dissatisfaction. 🍰 S

Dec 24, 2022

This template is for generating a .NET C# wrapper for the RabbitMQ client based on your AsyncAPI document.

This template is for generating a .NET C# wrapper for the RabbitMQ client based on your AsyncAPI document.

.NET C# RabbitMQ template This is a .NET C# RabbitMQ template for the AsyncAPI generator This template is for generating a .NET C# wrapper for the Rab

Dec 21, 2022
Comments
  • Fix handling of assetsPrefix

    Fix handling of assetsPrefix

    It seems I totally misunderstood assetsPrefix: it allows relocation of a published site from the root of a site to a subdirectory.

    Set the environment variable DENDRON_ASSETS_PREFIX to the value of either --overrides=assetsPrefix=/blah or site:assetsPrefix in dendron.yml.

    Fixes #2

    opened by LukeCarrier 1
  • Fix handling of assetsPrefix

    Fix handling of assetsPrefix

    It seems I totally misunderstood assetsPrefix: it allows relocation of a published site from the root of a site to a subdirectory.

    Set the environment variable DENDRON_ASSETS_PREFIX to the value of either --overrides=assetsPrefix=/blah or site:assetsPrefix in dendron.yml.

    Fixes #2, re-raises #6

    opened by LukeCarrier 0
  • Handle customised assetsPrefix

    Handle customised assetsPrefix

    opened by LukeCarrier 0
  • Correctly rewrite image sources in embedded markdown

    Correctly rewrite image sources in embedded markdown

    Right now we seek out img[src] attributes in our regexp, which will work for HTML exported notes. It doesn't look like we correctly write out ![alt text](src) references in Markdown files, which might be a problem if Dendron does more client-side rendering in the future.

    We should use a different regexp for each file extension.

    bug 
    opened by LukeCarrier 0
Releases(v2.0.0-rc0)
  • v2.0.0-rc0(Jan 22, 2022)

    What's Changed

    • Add some excepting handling by @LukeCarrier in https://github.com/LukeCarrier/dendron-publish-drawio/pull/3
    • Refactor and write some tests by @LukeCarrier in https://github.com/LukeCarrier/dendron-publish-drawio/pull/5
    • CI workflow by @LukeCarrier in https://github.com/LukeCarrier/dendron-publish-drawio/pull/7
    • Fix handling of assetsPrefix by @LukeCarrier in https://github.com/LukeCarrier/dendron-publish-drawio/pull/8

    New Contributors

    • @LukeCarrier made their first contribution in https://github.com/LukeCarrier/dendron-publish-drawio/pull/3

    Full Changelog: https://github.com/LukeCarrier/dendron-publish-drawio/compare/v1.0.0...v2.0.0-rc0

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(Jan 9, 2022)

Owner
Luke Carrier
Luke Carrier
Plugin that lets you create diagrams from textual representation (aka 'Diagrams as Code') within Logseq

Logseq - Diagrams as Code Plugin that lets you create diagrams (and other visualizations) from textual representation (aka 'Diagrams as Code') within

Nicolai P. Großer 80 Dec 21, 2022
Tool for publishing posts to mitchinson.dev from a Notion database

Notion Publish Tool - publish.mitchinson.dev A publishing API for mirroring Notion posts to mitchinson.dev Includes: Asset uploading to Cloudinary CDN

Ben Mitchinson 6 Dec 23, 2022
A plugin for Strapi that provides the ability to easily schedule publishing and unpublishing of any content type

strapi-plugin-publisher A plugin for Strapi that provides the ability to easily schedule publishing and unpublishing of any content type. Requirements

daedalus 19 Dec 7, 2022
A simple firefox/chrome extension adds Sci-Hub direct link access on publishing websites

Sci-Hub injector extension Supported sites PubMed Nature Science Direct Taylor & Francis Springer Link (article, book, chapter, protocol, reference wo

Dany 15 May 7, 2022
Free Obisidian Publish alternative, for publishing your digital garden.

What is MindStone? MindStone is a free open-source alternative solution to Obsidian Publish Here how it look like once published, checkout demo versio

Tuan Cao 297 Dec 30, 2022
Package publishing for deno.land/x/polkadot

deno/polkadot Experimental This is the first release of the Deno interfaces for the polkadot-js family, as such it still needs a lot of testing and co

@polkadot{.js} 22 Dec 3, 2022
Provides a KafkaJS-compatible handler for processing messages that facilitates publishing to delayed-retry or dead-letter topics

kafkajs-async-retry This module handles retries and dead-lettering for messages from a Kafka topic without blocking the processing of subsequent messa

Shutterstock 5 Dec 5, 2022
A crawler that crawls the site's internal links, fetching information of interest to any SEO specialist to perform appropriate analysis on the site.

Overview ?? It is a module that crawls sites and extracts basic information on any web page of interest to site owners in general, and SEO specialists

Yazan Zoghbi 2 Apr 22, 2022
A crawler that crawls the site's internal links, fetching information of interest to any SEO specialist to perform appropriate analysis on the site.

Overview ?? It is a module that crawls sites and extracts basic information on any web page of interest to site owners in general, and SEO specialists

Yazan Zoghbi 2 Apr 22, 2022
Pintora is an extensible javascript text-to-diagrams library that works in both browser and Node.js.

Pintora Documentation | Live Editor Pintora is an extensible javascript text-to-diagrams library that works in both browser and Node.js. Expressing yo

hikerpig 652 Dec 30, 2022