Skip to content

Commit 860a9da

Browse files
committed
Merge develop
1 parent ac557d6 commit 860a9da

36 files changed

Lines changed: 1187 additions & 0 deletions
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
from argparse import ArgumentParser
2+
from build_assets.PathResolverAction import PathResolverAction
3+
4+
5+
def get_selenium_runner_args(peek_mode=False):
6+
parser = ArgumentParser(description="Upload svgs to Icomoon to create icon files.")
7+
8+
parser.add_argument("--headless",
9+
help="Whether to run the browser in headless/no UI mode",
10+
action="store_true")
11+
12+
parser.add_argument("geckodriver_path",
13+
help="The path to the firefox executable file",
14+
action=PathResolverAction)
15+
16+
parser.add_argument("icomoon_json_path",
17+
help="The path to the icomoon.json aka the selection.json created by Icomoon",
18+
action=PathResolverAction)
19+
20+
parser.add_argument("devicon_json_path",
21+
help="The path to the devicon.json",
22+
action=PathResolverAction)
23+
24+
parser.add_argument("icons_folder_path",
25+
help="The path to the icons folder",
26+
action=PathResolverAction)
27+
28+
parser.add_argument("download_path",
29+
help="The download destination of the Icomoon files",
30+
action=PathResolverAction)
31+
32+
if peek_mode:
33+
parser.add_argument("--pr_title",
34+
help="The title of the PR that we are peeking at")
35+
36+
return parser.parse_args()
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import json
2+
import os
3+
4+
5+
if __name__ == "__main__":
6+
img_urls_list = json.loads(os.environ["IMG_URLS"])
7+
template = "![Detailed Screenshot]({})"
8+
markdown = [template.format(img_url) for img_url in img_urls_list]
9+
print("\n\n".join(markdown))
10+

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
devicon.dev

0 commit comments

Comments
 (0)