chore(v2): Regen codesandbox templates + add template: "docusaurus" (#4063)

This commit is contained in:
Sébastien Lorber 2021-01-19 16:13:14 +01:00 committed by GitHub
parent b93d95b9e0
commit c6ce46ac72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 3522 additions and 3388 deletions

View file

@ -24,7 +24,7 @@ function generateTemplateExample(template) {
// /!\ we use the published init script on purpose,
// because using the local init script is too early and could generate upcoming/unavailable config options
// remember CodeSandbox templates will use the published version, not the repo version
`npx @docusaurus/init@next init examples/${template} ${template}`,
`npx @docusaurus/init@latest init examples/${template} ${template}`,
// `node ./packages/docusaurus-init/bin/index.js init examples/${template} ${template}`,
{
stdio: 'inherit',
@ -50,7 +50,7 @@ function generateTemplateExample(template) {
infiniteLoopProtection: true,
hardReloadOnChange: true,
view: 'browser',
template: 'node',
template: 'docusaurus',
};
writeFileSync(