Skip to content

Commit 17fbbe1

Browse files
author
Ryan Patrick Kyle
committed
🐛 🐾 relocate write_help_file to avoid omitting children
1 parent 4217275 commit 17fbbe1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

dash/development/_r_components_generation.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,18 @@ def write_class_file(name,
348348
prefix=None):
349349
props = reorder_props(props=props)
350350

351+
# generate the R help pages for each of the Dash components that we
352+
# are transpiling -- this is done to avoid using Roxygen2 syntax,
353+
# we may eventually be able to generate similar documentation using
354+
# doxygen and an R plugin, but for now we'll just do it on our own
355+
# from within Python
356+
write_help_file(
357+
name,
358+
props,
359+
description,
360+
prefix
361+
)
362+
351363
import_string =\
352364
"# AUTO GENERATED FILE - DO NOT EDIT\n\n"
353365
class_string = generate_class_string(
@@ -363,18 +375,6 @@ def write_class_file(name,
363375
f.write(import_string)
364376
f.write(class_string)
365377

366-
# generate the R help pages for each of the Dash components that we
367-
# are transpiling -- this is done to avoid using Roxygen2 syntax,
368-
# we may eventually be able to generate similar documentation using
369-
# doxygen and an R plugin, but for now we'll just do it on our own
370-
# from within Python
371-
write_help_file(
372-
name,
373-
props,
374-
description,
375-
prefix
376-
)
377-
378378
print('Generated {}'.format(file_name))
379379

380380

0 commit comments

Comments
 (0)