Skip to content

Commit 66efbbf

Browse files
authored
fix building blocks last (#351)
* Updated Step by Step - Introduction - fixed typos and outdated details * Patch part - common * Patch 3 Patch 3 * Patch PAR URLs Patch PAR URLs * Patch update Patch update * Fix building blocks how-to Fix building blocks how-to * Fixed typo in create custom image lab Fixed typo in create custom image lab * markdown for OCW workshops (new OCI UI) markdown for OCW workshops (new OCI UI) * New common lab to for LiveLabs SSH key handling New common lab to for LiveLabs SSH key handling * Removed OL7.9 instructions for building LiveLabs Images Removed OL7.9 instructions for building LiveLabs Images * Fixed URL in LiveLabs SSH common lab Fixed URL in LiveLabs SSH common lab * ssh common lab for ocw24: moved keys to OS ssh common lab for ocw24: moved keys to OS * ocw24-ocigenai-infos placeholders * Fix common repo (outdated URLS) Fix common repo (outdated URLS) * Create hol3318.md * common fix urls common fix urls * overhaul sandbox env login labs overhaul sandbox env login labs * JS: fixed lintcheker - created 23.4.1 to fix a URL in lint checker - made 23.4.1 the new main.js in production - migrated lint checker fix to 23.5 (which is currently no used) - removed 23.5.min as it is still in development * fix building blocks fix building blocks * Update generate-documentation.py * generate-documentation.py hot fix generate-documentation.py hot fix * Update generate-documentation.py
1 parent 411557d commit 66efbbf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

building-blocks/scripts/generate-documentation.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ def add_task_details(this_task):
107107
j = None
108108
try:
109109
j = json.loads(comment)
110-
this_task.name = j["name"]
111-
this_task.description = j["description"]
112-
this_task.author = j["author"]
113-
this_task.lastUpdated = j["lastUpdated"]
110+
this_task.name = j.get("name", "")
111+
this_task.description = j.get("description","")
112+
this_task.author = j.get("author","")
113+
this_task.lastUpdated = j.get("lastUpdated","")
114114
except Exception as e:
115115
print ("WARNING! " + this_task.md_name + ": no valid comment with name and description found.")
116116
return False
@@ -170,10 +170,10 @@ def add_block_details(this_block):
170170
j = None
171171
try:
172172
j = json.loads(comment)
173-
this_block.name = j["name"]
174-
this_block.description = j["description"]
175-
this_block.author=j["author"]
176-
this_block.lastUpdated = j["lastUpdated"]
173+
this_block.name = j.get("name","")
174+
this_block.description = j.get("description","")
175+
this_block.author=j.get("author", "")
176+
this_block.lastUpdated = j.get("lastUpdated","")
177177
except Exception as e:
178178
print ("WARNING! " + this_block.md_name + ": no valid comment with name and description found.")
179179
return False

0 commit comments

Comments
 (0)