{"id":13504908,"url":"https://github.com/LukeCarrier/dendron-publish-drawio","last_synced_at":"2025-03-29T22:31:17.189Z","repository":{"id":44701376,"uuid":"446151548","full_name":"LukeCarrier/dendron-publish-drawio","owner":"LukeCarrier","description":"Export Diagrams.net diagrams during Dendron site publishing","archived":true,"fork":false,"pushed_at":"2024-06-17T22:38:29.000Z","size":792,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T04:48:50.207Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LukeCarrier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-09T17:05:32.000Z","updated_at":"2024-07-12T23:15:45.000Z","dependencies_parsed_at":"2024-10-30T04:29:09.575Z","dependency_job_id":null,"html_url":"https://github.com/LukeCarrier/dendron-publish-drawio","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":"0.13043478260869568","last_synced_commit":"12c26e20bb0104fef95c66742e2f8ecdd4edeaa5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukeCarrier%2Fdendron-publish-drawio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukeCarrier%2Fdendron-publish-drawio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukeCarrier%2Fdendron-publish-drawio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukeCarrier%2Fdendron-publish-drawio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LukeCarrier","download_url":"https://codeload.github.com/LukeCarrier/dendron-publish-drawio/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174590,"owners_count":20735417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T00:00:53.316Z","updated_at":"2025-03-29T22:31:14.775Z","avatar_url":"https://github.com/LukeCarrier.png","language":"JavaScript","funding_links":[],"categories":["Dendron Enhancers"],"sub_categories":["Other"],"readme":"# Export Diagrams.net diagrams during Dendron site publishing\n\nNode module for exporting [Diagrams.net (Draw.io)](https://about.diagrams.net/) diagrams embedded in a published [Dendron](https://dendron.so/) site to SVG.\n\n---\n\n## Usage\n\nEmbed your diagrams in your notes as if they were images:\n\n```markdown\n![My awesome diagram](assets/diagrams/my.awesome.diagram.drawio)\n```\n\nIf your diagram has multiple pages, specify the page number (zero-indexed; defaults to 0) in the URL:\n\n```markdown\n![My awesome diagram](assets/diagrams/my.awesome.diagram.drawio#3)\n```\n\n## Installation\n\nFrom the root of your Dendron workspace (where the `dendron.code-workspace` and `dendron.yml` files are), install the plugin:\n\n```console\nnpm install --save-dev dendron-publish-drawio\n```\n\nPublishing a Dendron site involves running the following commands:\n\n```console\nnpx dendron publish init\nnpx dendron publish build --wsRoot . --vault public --sitemap\ncd .next/\nnpm run export\n```\n\nWe need to add a step, between `dendron publish build` and `npm run export`:\n\n```console\nnpx dendron publish init\nnpx dendron publish build --wsRoot . --vault public --sitemap\nnpx dendron-publish-drawio\ncd .next/\nnpm run export\n```\n\nNote that if you customise Dendron's [`site:assetsPrefix`](https://wiki.dendron.so/notes/f2ed8639-a604-4a9d-b76c-41e205fb8713/#assetsprefix) option (or set it via `--overrides=assetsPrefix=...`) you'll need to set the `DENDRON_ASSETS_PREFIX` environment variable to the same value when running `dendron-publish-drawio`:\n\n```console\nexport DENDRON_ASSETS_PREFIX=/etc npx dendron-publish-drawio\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLukeCarrier%2Fdendron-publish-drawio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLukeCarrier%2Fdendron-publish-drawio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLukeCarrier%2Fdendron-publish-drawio/lists"}