Skip to content

Commit e60e5cb

Browse files
committed
Get back to original buildinstruccions. Documentation and Installation
1 parent 4526b1d commit e60e5cb

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/somef/export/json_export.py

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,13 @@ def format_date(date_string):
140140
elif inst[constants.PROP_TECHNIQUE] == constants.TECHNIQUE_FILE_EXPLORATION:
141141
install_links.append(inst[constants.PROP_RESULT][constants.PROP_VALUE])
142142

143-
# Documentation is not part of buildInstructions
144-
145-
# if constants.CAT_DOCUMENTATION in repo_data:
146-
# for inst in repo_data[constants.CAT_DOCUMENTATION]:
147-
# if inst[constants.PROP_TECHNIQUE] == constants.TECHNIQUE_HEADER_ANALYSIS and constants.PROP_SOURCE in inst.keys():
148-
# install_links.append(inst[constants.PROP_SOURCE])
149-
# elif inst[constants.PROP_TECHNIQUE] == constants.TECHNIQUE_FILE_EXPLORATION or \
150-
# inst[constants.PROP_TECHNIQUE] == constants.TECHNIQUE_REGULAR_EXPRESSION:
151-
# install_links.append(inst[constants.PROP_RESULT][constants.PROP_VALUE])
143+
if constants.CAT_DOCUMENTATION in repo_data:
144+
for inst in repo_data[constants.CAT_DOCUMENTATION]:
145+
if inst[constants.PROP_TECHNIQUE] == constants.TECHNIQUE_HEADER_ANALYSIS and constants.PROP_SOURCE in inst.keys():
146+
install_links.append(inst[constants.PROP_SOURCE])
147+
elif inst[constants.PROP_TECHNIQUE] == constants.TECHNIQUE_FILE_EXPLORATION or \
148+
inst[constants.PROP_TECHNIQUE] == constants.TECHNIQUE_REGULAR_EXPRESSION:
149+
install_links.append(inst[constants.PROP_RESULT][constants.PROP_VALUE])
152150
if len(install_links) > 0:
153151
# remove duplicates and generate codemeta
154152
install_links = list(set(install_links))

0 commit comments

Comments
 (0)