From 7c2bf9f9b5d2d8ac19e7989a1afef826152b7853 Mon Sep 17 00:00:00 2001 From: Logan Marchione Date: Tue, 20 Dec 2022 11:57:53 -0500 Subject: [PATCH] Add Diagrams.net XML library --- README.md | 22 +++++++++++++++++++++- WORKFLOW.md | 2 +- package.json | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1608232..bf8b685 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Over 300 full-color SVG icons of homelab-related software, products, and brands - [Table of Contents](#table-of-contents) - [Usage](#usage) - [General usage](#general-usage) + - [Diagrams.net usage](#diagramsnet-usage) - [CDN usage](#cdn-usage) - [PHP usage](#php-usage) - [NPM usage](#npm-usage) @@ -30,6 +31,26 @@ Over 300 full-color SVG icons of homelab-related software, products, and brands Icons as SVGs are available in the [assets](https://github.com/loganmarchione/homelab-svg-assets/tree/main/assets) directory. See [ICONS.md](ICONS.md) for a preview of all icons. +## Diagrams.net usage + +In a [Diagrams.net](https://app.diagrams.net/) project, go to `File-->Open Library from-->URL` and paste in the URL below (it will take a second to load) + +``` +https://raw.githubusercontent.com/loganmarchione/homelab-svg-assets/main/homelab-svg-assets.xml +``` + +You can also start brand new project with the library built-in to the URL by using [this link](https://app.diagrams.net/?clibs=Uhttps%3A%2F%2Fraw.githubusercontent.com%2Floganmarchione%2Fhomelab-svg-assets%2Fmain%2Fhomelab-svg-assets.xml) (also below) + +``` +https://app.diagrams.net/?clibs=Uhttps%3A%2F%2Fraw.githubusercontent.com%2Floganmarchione%2Fhomelab-svg-assets%2Fmain%2Fhomelab-svg-assets.xml +``` + +If you self-host Diagrams.net (it is available as a [Docker container](https://hub.docker.com/r/jgraph/drawio)), you can replace the domain with your custom domain + +``` +https://drawio.yourdomain.com/?clibs=Uhttps%3A%2F%2Fraw.githubusercontent.com%2Floganmarchione%2Fhomelab-svg-assets%2Fmain%2Fhomelab-svg-assets.xml +``` + ## CDN usage Icons are available via [jsDelivr](https://www.jsdelivr.com/package/npm/@loganmarchione/homelab-svg-assets). @@ -57,7 +78,6 @@ Run `composer require loganmarchione/homelab-svg-assets`, or add the package to Icons will be available at `./vendor/loganmarchione/homelab-svg-assets/assets/linux.svg` ## NPM usage - Icons are available as a package on [NPM](https://www.npmjs.com/package/@loganmarchione/homelab-svg-assets). Run `npm install @loganmarchione/homelab-svg-assets`, or add the package to your `package.json` file (below) diff --git a/WORKFLOW.md b/WORKFLOW.md index 49611da..3dba29e 100644 --- a/WORKFLOW.md +++ b/WORKFLOW.md @@ -6,7 +6,7 @@ ``` 1. Run the Python script ``` - python3 scripts/convert_json_to_table.py + python3 scripts/convert_json.py ``` 1. Get current git tags ``` diff --git a/package.json b/package.json index d6b0210..a97b1ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@loganmarchione/homelab-svg-assets", "description": "Full-color SVG icons of homelab-related software, products, and brands", - "version": "0.0.7", + "version": "0.0.8", "keywords": [ "homelab", "icons",