Skip to content

Commit 6b12817

Browse files
committed
[DOCS] Updates docs generator
1 parent b12579c commit 6b12817

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rake_tasks/doc_generator.rake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ namespace :docs do
4646

4747
def generate_docs(entry)
4848
file_name = "#{entry['digest']}.asciidoc"
49-
api = entry['parsed_source'].first['api']
50-
code = build_client_query(api, entry)
51-
write_file(code, file_name)
49+
unless entry['parsed_source'].empty?
50+
api = entry['parsed_source'].first['api']
51+
code = build_client_query(api, entry)
52+
write_file(code, file_name)
53+
end
5254
end
5355

5456
def self.build_client_query(api, entry)

0 commit comments

Comments
 (0)