Skip to content

Commit 34fa5d9

Browse files
committed
Home to Homepage
1 parent 022cf00 commit 34fa5d9

File tree

3 files changed

+33
-14
lines changed

3 files changed

+33
-14
lines changed

buildingmotif/bin/library.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def init(args):
6464
optional=True,
6565
input_type=str,
6666
)
67-
library_arguments["home"] = get_input(
67+
library_arguments["homepage"] = get_input(
6868
"Home page URL",
69-
default=library_arguments.get("home", None),
69+
default=library_arguments.get("homepage", None),
7070
optional=True,
7171
input_type=str,
7272
)

buildingmotif/resources/library.schema.json

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"description": "A list of authors of the library."
2222
},
23-
"home": {
23+
"homepage": {
2424
"type": "string",
2525
"format": "uri",
2626
"description": "The homepage URL of the library."
@@ -37,7 +37,9 @@
3737
"description": "The directory where the dependency is located."
3838
}
3939
},
40-
"required": ["directory"]
40+
"required": [
41+
"directory"
42+
]
4143
},
4244
{
4345
"type": "object",
@@ -48,7 +50,9 @@
4850
"description": "The URI of the ontology dependency."
4951
}
5052
},
51-
"required": ["ontology"]
53+
"required": [
54+
"ontology"
55+
]
5256
},
5357
{
5458
"type": "object",
@@ -80,25 +84,40 @@
8084
"description": "The commit hash of the Git repository."
8185
}
8286
},
83-
"required": ["repo", "path"],
87+
"required": [
88+
"repo",
89+
"path"
90+
],
8491
"oneOf": [
8592
{
86-
"required": ["branch"]
93+
"required": [
94+
"branch"
95+
]
8796
},
8897
{
89-
"required": ["tag"]
98+
"required": [
99+
"tag"
100+
]
90101
},
91102
{
92-
"required": ["commit"]
103+
"required": [
104+
"commit"
105+
]
93106
}
94107
]
95108
}
96109
},
97-
"required": ["git"]
110+
"required": [
111+
"git"
112+
]
98113
}
99114
]
100115
}
101116
}
102117
},
103-
"required": ["name", "version", "description"]
104-
}
118+
"required": [
119+
"name",
120+
"version",
121+
"description"
122+
]
123+
}

buildingmotif/resources/library.template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ authors:
77
- {{ author }}
88
{%- endif %}
99
{%- if home %}
10-
home: {{ home }}
10+
homepage: {{ homepage }}
1111
{%- endif %}
1212
{%- if dependencies %}
1313
dependencies:
1414
{%- for dependency in dependencies %}
1515
- {{ dependency }}
1616
{%- endfor %}
17-
{%- endif %}
17+
{%- endif %}

0 commit comments

Comments
 (0)