Skip to content

Commit

Permalink
Add Diagrams.net XML library
Browse files Browse the repository at this point in the history
  • Loading branch information
loganmarchione committed Dec 20, 2022
1 parent 3a4ead9 commit 7c2bf9f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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).
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion WORKFLOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 7c2bf9f

Please sign in to comment.