Skip to content

Commit

Permalink
[docs-infra] Don't generate preview files for the templates (#41379)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova authored Mar 13, 2024
1 parent 5d2e45f commit 4026bd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.

This file was deleted.

4 changes: 3 additions & 1 deletion docs/scripts/formattedTSDemos.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ async function transpileFile(tsxPath, project) {
const source = await fse.readFile(tsxPath, 'utf8');

const transformOptions = { ...babelConfig, filename: tsxPath };
const enableJSXPreview = !tsxPath.includes(path.join('pages', 'premium-themes'));
const enableJSXPreview =
!tsxPath.includes(path.join('pages', 'premium-themes')) &&
!tsxPath.includes(path.join('getting-started', 'templates'));
if (enableJSXPreview) {
transformOptions.plugins = transformOptions.plugins.concat([
[
Expand Down

0 comments on commit 4026bd1

Please sign in to comment.