c6af9e284a
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (python) (push) Waiting to run
Codespell / Check for spelling errors (push) Waiting to run
Build and Push Docker Images / build-and-push (push) Waiting to run
Docs Build / build (push) Waiting to run
Docs Build / deploy (push) Blocked by required conditions
Tests / catch-all (windows-latest) (push) Has been cancelled
Tests / jvm (macos-latest) (push) Has been cancelled
Tests / jvm (ubuntu-latest) (push) Has been cancelled
Tests / jvm (windows-latest) (push) Has been cancelled
Tests / native (macos-latest) (push) Has been cancelled
Tests / native (ubuntu-latest) (push) Has been cancelled
Tests / native (windows-latest) (push) Has been cancelled
Tests / niche (ubuntu-latest) (push) Has been cancelled
Tests / other-langs (macos-latest) (push) Has been cancelled
Tests / other-langs (ubuntu-latest) (push) Has been cancelled
Tests / other-langs (windows-latest) (push) Has been cancelled
Tests / catch-all (macos-latest) (push) Has been cancelled
Tests / catch-all (ubuntu-latest) (push) Has been cancelled
10 lines
312 B
Python
10 lines
312 B
Python
import os
|
|
from pathlib import Path
|
|
|
|
# This script provides a platform-independent way of making the jupyter-book call (used in pyproject.toml)
|
|
folder = Path(__file__).parent
|
|
toc_file = folder / "_toc.yml"
|
|
cmd = f"jupyter-book toc from-project docs -e .rst -e .md -e .ipynb >{toc_file}"
|
|
print(cmd)
|
|
os.system(cmd)
|