mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-11 23:32:30 +02:00
chore(examples): update examples to 2.0.0-beta.14 (#6148)
This commit is contained in:
parent
01b407011a
commit
f22eb95194
16 changed files with 5470 additions and 9435 deletions
|
@ -10,6 +10,13 @@ const rimraf = require('rimraf');
|
|||
const {readFileSync, writeFileSync, readdirSync} = require('fs');
|
||||
const {execSync} = require('child_process');
|
||||
|
||||
const NODE_MAJOR_VERSION = parseInt(process.versions.node.split('.')[0], 10);
|
||||
if (NODE_MAJOR_VERSION < 16) {
|
||||
throw new Error(
|
||||
'This generateExamples Docusaurus script requires at least Node.js 16 and npm 7. See why here: https://github.com/facebook/docusaurus/pull/5722#issuecomment-948847891',
|
||||
);
|
||||
}
|
||||
|
||||
// Generate one example per init template
|
||||
// We use those generated examples as CodeSandbox projects
|
||||
// See https://github.com/facebook/docusaurus/issues/1699
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue