update tutorials (#11402)

This commit is contained in:
Jirka Borovec 2022-01-16 05:08:11 +01:00 committed by GitHub
parent 18bbb39eef
commit f9c3619eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View File

@ -31,3 +31,6 @@ test: clean
docs: clean
pip install --quiet -r requirements/docs.txt
python -m sphinx -b html -W --keep-going docs/source docs/build
update:
git submodule update --init --recursive --remote

@ -1 +1 @@
Subproject commit 0c325829101d5a6ebf32ed99bbf5b09badf04a59
Subproject commit 290fb466de1fcc2ac6025f74b56906592911e856

View File

@ -30,8 +30,8 @@ sys.path.append(os.path.join(PATH_RAW_NB, ".actions"))
_SHOULD_COPY_NOTEBOOKS = True
try:
from helpers import HelperCLI
except Exception:
from assistant import AssistantCLI
except ImportError:
_SHOULD_COPY_NOTEBOOKS = False
warnings.warn("To build the code, please run: `git submodule update --init --recursive`", stacklevel=2)
@ -46,7 +46,9 @@ spec.loader.exec_module(about)
# -- Project documents -------------------------------------------------------
if _SHOULD_COPY_NOTEBOOKS:
HelperCLI.copy_notebooks(PATH_RAW_NB, PATH_HERE, "notebooks", patterns=[".", "course_UvA-DL", "lightning_examples"])
AssistantCLI.copy_notebooks(
PATH_RAW_NB, PATH_HERE, "notebooks", patterns=[".", "course_UvA-DL", "lightning_examples"]
)
def _transform_changelog(path_in: str, path_out: str) -> None: