File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2828
2929 init_module = data [parts [1 :]] if len (parts ) > 1 else data
3030 has_docstrings = init_module .has_docstring or any (
31- member .has_docstrings for member in init_module .members .values ()
31+ member .has_docstrings
32+ for member in init_module .members .values ()
3233 if not (member .is_alias or member .is_module )
33- )
34+ )
3435 else :
3536 has_docstrings = data [parts [1 :]].has_docstrings
3637
3738 if not has_docstrings :
3839 continue
3940
40- nav [parts ] = doc_path .as_posix ()
41+ nav [parts ] = doc_path .as_posix ()
4142 with mkdocs_gen_files .open (full_doc_path , "w" ) as fd :
4243 ident = "." .join (parts )
4344 fd .write (f"::: { ident } " )
4445
4546 mkdocs_gen_files .set_edit_path (full_doc_path , path .relative_to (root ))
4647
47- with mkdocs_gen_files .open ("reference/SUMMARY.md" , "w" ) as nav_file :
48+ with mkdocs_gen_files .open ("reference/SUMMARY.md" , "w" ) as nav_file :
4849 nav_file .writelines (nav .build_literate_nav ())
You can’t perform that action at this time.
0 commit comments