From d8e853632fcd284614b4e601016cea2cd28d4823 Mon Sep 17 00:00:00 2001 From: Shawn Taylor Date: Thu, 21 Mar 2024 13:17:33 -0400 Subject: [PATCH] chore(playground): update playground generator for v8 docs --- _templates/README.md | 2 +- _templates/playground/new/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_templates/README.md b/_templates/README.md index 0e91373099f..60a3ebef83d 100644 --- a/_templates/README.md +++ b/_templates/README.md @@ -26,7 +26,7 @@ Once you've generated your playground, you need to add it to the main markdown f ``` ## Feature -import Feature from '@site/static/usage/v7/button/feature/index.md'; +import Feature from '@site/static/usage/v8/button/feature/index.md'; ``` diff --git a/_templates/playground/new/index.js b/_templates/playground/new/index.js index 869c85506dc..a0d4fd89cca 100644 --- a/_templates/playground/new/index.js +++ b/_templates/playground/new/index.js @@ -54,8 +54,8 @@ module.exports = { type: 'select', name: 'version', message: 'Select the Ionic Framework version for the playground', - initial: '7', - choices: ['6', '7'], + initial: '8', + choices: ['6', '7', '8'], }, { type: 'toggle', @@ -77,7 +77,7 @@ module.exports = { const playgroundName = changeCase.pascal(answers.path.split('/').pop()); console.log( - `\nTo use this playground in a docs markdown file, include\nthe following:\n\n## ${playgroundName}\n\nimport ${playgroundName} from '@site/static/usage/v7/${answers.name}/${answers.path}/index.md';\n\n<${playgroundName} />\n` + `\nTo use this playground in a docs markdown file, include\nthe following:\n\n## ${playgroundName}\n\nimport ${playgroundName} from '@site/static/usage/v${answers.version}/${answers.name}/${answers.path}/index.md';\n\n<${playgroundName} />\n` ); return answers;