Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

add MaterialDesign as submodule and add empty folder for icons to pre… #8

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@
# macOS - Thumbnails
._*

# exclude source and destination folders
download/
iconset/

# Visual Studio Code
.vscode/
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "download/MaterialDesign"]
path = download/MaterialDesign
url = https://github.com/Templarian/MaterialDesign/
branch = master
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Install the required libraries:
pip3 install -r requirements.txt
```

The script expects the source icons in a sub folder `download` of the script location. [Download the repo as a ZIP](https://github.com/Templarian/MaterialDesign/archive/master.zip) and extract it there first.
Download this repository with
```
git clone --recursive https://github.com/metbril/openhab-mdi.git
```


## Design

Expand Down Expand Up @@ -83,4 +87,4 @@ That's easy. Just copy all files from the `iconset` folder to your openHAB confi

## TODO

- Create intermediate folders for output. For now these need to be created manually before the script is run.
- Create intermediate folders for output. For now these need to be created manually before the script is run.
1 change: 1 addition & 0 deletions download/MaterialDesign
Submodule MaterialDesign added at a24df7
2 changes: 2 additions & 0 deletions iconset/classic/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions iconset/mdi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions iconset/minimal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
4 changes: 2 additions & 2 deletions mdi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/local/bin/python3
#!/usr/bin/env python3

import sys
import os
Expand Down Expand Up @@ -75,7 +75,7 @@ def get_parser():
parser.add_argument("-i", "--input-path",
dest="input_path",
type=lambda x: is_valid_file(parser, x),
default=pwd + "/download/MaterialDesign-master/icons/svg",
default=pwd + "/download/MaterialDesign/icons/svg",
metavar="INPUT-PATH",
help="read icons from INPUT-PATH")
parser.add_argument("-o", "--output-path",
Expand Down
Loading