Skip to content

Commit

Permalink
Do not run nbdev_docs while running nbdev_mkdocs docs (#208)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Bartik <[email protected]>
  • Loading branch information
harishmohanraj and Sean Bartik authored Jul 10, 2023
1 parent 49f7a31 commit 80e0031
Show file tree
Hide file tree
Showing 2 changed files with 435 additions and 557 deletions.
3 changes: 2 additions & 1 deletion nbdev_mkdocs/mkdocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,9 @@ def _read_sidebar_from_yml(root_path: str) -> List[Union[str, Any]]:

custom_sidebar = get_value_from_config(root_path, "custom_sidebar")
if custom_sidebar == "False":
cmd = f'cd "{root_path}" && nbdev_docs'
cmd = f'cd "{root_path}" && nbdev_sidebar'
_sprun(cmd)
_ = proc_nbs()

return (
_get_sidebar_from_config(sidebar_yml_path)
Expand Down
Loading

0 comments on commit 80e0031

Please sign in to comment.