-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rtd build, improvements in task running
- Loading branch information
Michael Panchenko
committed
Dec 5, 2023
1 parent
19e129d
commit c50e74f
Showing
7 changed files
with
39 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
# This script provides a platform-independent way of making the jupyter-book call (used in pyproject.toml) | ||
toc_file = Path(__file__).parent / "_toc.yml" | ||
cmd = f"jupyter-book toc from-project docs -e .rst -e .md -e .ipynb >{toc_file}" | ||
print(cmd) | ||
os.system(cmd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""Implements a platform-independent way of calling nbstripout (used in pyproject.toml).""" | ||
import glob | ||
import os | ||
from pathlib import Path | ||
|
||
if __name__ == "__main__": | ||
docs_dir = Path(__file__).parent | ||
for path in glob.glob(str(docs_dir / "02_notebooks" / "*.ipynb")): | ||
cmd = f"nbstripout {path}" | ||
os.system(cmd) |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters