diff --git a/src/render/notebook/notebook-contributor-html.ts b/src/render/notebook/notebook-contributor-html.ts index 9e2dbac6f0..83701d0aed 100644 --- a/src/render/notebook/notebook-contributor-html.ts +++ b/src/render/notebook/notebook-contributor-html.ts @@ -56,7 +56,7 @@ export function outputFile( nbAbsPath: string, ): string { const [_dir, stem] = dirAndStem(basename(nbAbsPath)); - return `${stem}.html`; + return `${stem}-preview.html`; } function resolveHtmlNotebook( diff --git a/tests/smoke/embed/render-embed.test.ts b/tests/smoke/embed/render-embed.test.ts index 0b878e1deb..a734ce002e 100644 --- a/tests/smoke/embed/render-embed.test.ts +++ b/tests/smoke/embed/render-embed.test.ts @@ -20,7 +20,7 @@ const output = outputForInput(input, format); // Test qmd embedding // The notebook preview that is generated -const nbOutput = join(dirname(output.outputPath), "notebook.html"); +const nbOutput = join(dirname(output.outputPath), "notebook-preview.html"); const nbSupporting = join(dirname(nbOutput), "notebook_files"); testRender(input, format, false, [ @@ -56,7 +56,7 @@ const ipynbOutput = outputForInput(ipynbInput, format); const ipynbPreviewNb = join( dirname(ipynbOutput.outputPath), - "penguins.html", + "penguins-preview.html", ); const ipynbPreviewSupporting = join( dirname(ipynbOutput.outputPath), diff --git a/tests/smoke/manuscript/render-manuscript.test.ts b/tests/smoke/manuscript/render-manuscript.test.ts index 803ebb6ece..3ebb76549d 100644 --- a/tests/smoke/manuscript/render-manuscript.test.ts +++ b/tests/smoke/manuscript/render-manuscript.test.ts @@ -21,7 +21,7 @@ const ipynbSingleOutputs = [ "data/lapalma_ign.csv", "images/la-palma-map.png", "images/reservoirs.png", - "article.ipynb.html", + "article-preview.html", "article.out.ipynb", ]; testManuscriptRender( @@ -40,13 +40,13 @@ const ipynbFullOutputs = [ "images/reservoirs.png", "images/stations.png", "notebooks/data-screening.ipynb", - "notebooks/data-screening.ipynb.html", + "notebooks/data-screening-preview.html", "notebooks/data-screening.out.ipynb", "notebooks/seismic-monitoring-stations.out.ipynb", "notebooks/seismic-monitoring-stations.qmd", - "notebooks/seismic-monitoring-stations.qmd.html", + "notebooks/seismic-monitoring-stations-preview.html", "notebooks/visualization-figure-creation-seaborn.ipynb", - "notebooks/visualization-figure-creation-seaborn.ipynb.html", + "notebooks/visualization-figure-creation-seaborn-preview.html", "notebooks/visualization-figure-creation-seaborn.out.ipynb", ]; testManuscriptRender( @@ -61,7 +61,7 @@ const qmdSingleOutputs = [ "index-meca.zip", "images/la-palma-map.png", "images/reservoirs.png", - "index.qmd.html", + "index-preview.html", "index.out.ipynb", ]; @@ -79,7 +79,7 @@ const qmdFullOutputs = [ "images/reservoirs.png", "notebook.qmd", "notebook.out.ipynb", - "notebook.qmd.html", + "notebook-preview.html", ]; testManuscriptRender( qmdFullArticle,