Skip to content

Commit

Permalink
disabled autodoc_pydantic configuration due to mansenfranzen/autodoc_…
Browse files Browse the repository at this point in the history
  • Loading branch information
afdaniele committed Apr 19, 2024
1 parent e84d8ce commit c42c7c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dependencies-py3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ lxml_html_clean==0.1.1

# pydantic to parse and document models
pydantic==1.10.15
autodoc-pydantic==1.9.0
autodoc-pydantic==1.9.1
4 changes: 3 additions & 1 deletion packages/book_decorator/add_pydantic_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
# Summary List Order:
# https://autodoc-pydantic.readthedocs.io/en/stable/users/configuration.html#summary-list-order
if "autodoc_pydantic_model_summary_list_order" not in _config["sphinx"]["config"]:
_config["sphinx"]["config"]["autodoc_pydantic_model_summary_list_order"] = "bysource"
# _config["sphinx"]["config"]["autodoc_pydantic_model_summary_list_order"] = "bysource"
# TODO: disabled because of this issue: https://github.com/mansenfranzen/autodoc_pydantic/issues/137
pass

# safe _config file
with open(_config_fpath, "wt") as fout:
Expand Down

0 comments on commit c42c7c1

Please sign in to comment.