Skip to content

Commit 3c5daab

Browse files
authored
Add suffix and ignore generated notebook MDX files (mlflow#14326)
Signed-off-by: Daniel Lok <[email protected]>
1 parent 896f69e commit 3c5daab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ wheels/
3636
MANIFEST
3737
node_modules
3838
.docusaurus
39+
*-ipynb.mdx
3940
docs/static/api_reference
4041

4142
# PyInstaller

docs/scripts/convert-notebooks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def add_custom_component_imports(
8888

8989

9090
def convert_path(nb_path: Path):
91-
mdx_path = nb_path.with_suffix(".mdx")
91+
mdx_path = nb_path.with_stem(nb_path.stem + "-ipynb").with_suffix(".mdx")
9292
with open(nb_path) as f:
9393
nb = nbformat.read(f, as_version=4)
9494

0 commit comments

Comments
 (0)