mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 07:37:19 +02:00
chore(v2): Regen codesandbox templates + add template: "docusaurus" (#4063)
This commit is contained in:
parent
b93d95b9e0
commit
c6ce46ac72
13 changed files with 3522 additions and 3388 deletions
|
@ -4,6 +4,7 @@ module.exports = {
|
||||||
url: 'https://your-docusaurus-test-site.com',
|
url: 'https://your-docusaurus-test-site.com',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
|
onBrokenMarkdownLinks: 'warn',
|
||||||
favicon: 'img/favicon.ico',
|
favicon: 'img/favicon.ico',
|
||||||
organizationName: 'facebook', // Usually your GitHub org/user name.
|
organizationName: 'facebook', // Usually your GitHub org/user name.
|
||||||
projectName: 'docusaurus', // Usually your repo name.
|
projectName: 'docusaurus', // Usually your repo name.
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-alpha.66",
|
"@docusaurus/core": "2.0.0-alpha.70",
|
||||||
"@docusaurus/preset-bootstrap": "2.0.0-alpha.66",
|
"@docusaurus/preset-bootstrap": "2.0.0-alpha.70",
|
||||||
"@mdx-js/react": "^1.5.8",
|
"@mdx-js/react": "^1.5.8",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
"infiniteLoopProtection": true,
|
"infiniteLoopProtection": true,
|
||||||
"hardReloadOnChange": true,
|
"hardReloadOnChange": true,
|
||||||
"view": "browser",
|
"view": "browser",
|
||||||
"template": "node"
|
"template": "docusaurus"
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,6 +4,7 @@ module.exports = {
|
||||||
url: 'https://your-docusaurus-test-site.com',
|
url: 'https://your-docusaurus-test-site.com',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
|
onBrokenMarkdownLinks: 'warn',
|
||||||
favicon: 'img/favicon.ico',
|
favicon: 'img/favicon.ico',
|
||||||
organizationName: 'facebook', // Usually your GitHub org/user name.
|
organizationName: 'facebook', // Usually your GitHub org/user name.
|
||||||
projectName: 'docusaurus', // Usually your repo name.
|
projectName: 'docusaurus', // Usually your repo name.
|
||||||
|
|
|
@ -9,19 +9,20 @@
|
||||||
"swizzle": "docusaurus swizzle",
|
"swizzle": "docusaurus swizzle",
|
||||||
"deploy": "docusaurus deploy",
|
"deploy": "docusaurus deploy",
|
||||||
"serve": "docusaurus serve",
|
"serve": "docusaurus serve",
|
||||||
|
"clear": "docusaurus clear",
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-alpha.66",
|
"@docusaurus/core": "2.0.0-alpha.70",
|
||||||
"@docusaurus/preset-classic": "2.0.0-alpha.66",
|
"@docusaurus/preset-classic": "2.0.0-alpha.70",
|
||||||
"@mdx-js/react": "^1.5.8",
|
"@mdx-js/react": "^1.6.21",
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.1.1",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
"react-dom": "^16.8.4"
|
"react-dom": "^16.8.4"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
">0.2%",
|
">0.5%",
|
||||||
"not dead",
|
"not dead",
|
||||||
"not op_mini all"
|
"not op_mini all"
|
||||||
],
|
],
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
"infiniteLoopProtection": true,
|
"infiniteLoopProtection": true,
|
||||||
"hardReloadOnChange": true,
|
"hardReloadOnChange": true,
|
||||||
"view": "browser",
|
"view": "browser",
|
||||||
"template": "node"
|
"template": "docusaurus"
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -13,6 +13,7 @@ module.exports = {
|
||||||
url: 'https://your-docusaurus-test-site.com',
|
url: 'https://your-docusaurus-test-site.com',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
onBrokenLinks: 'throw',
|
onBrokenLinks: 'throw',
|
||||||
|
onBrokenMarkdownLinks: 'warn',
|
||||||
favicon: 'img/favicon.ico',
|
favicon: 'img/favicon.ico',
|
||||||
organizationName: 'facebook', // Usually your GitHub org/user name.
|
organizationName: 'facebook', // Usually your GitHub org/user name.
|
||||||
projectName: 'docusaurus', // Usually your repo name.
|
projectName: 'docusaurus', // Usually your repo name.
|
||||||
|
@ -97,14 +98,6 @@ module.exports = {
|
||||||
label: 'Terms',
|
label: 'Terms',
|
||||||
href: 'https://opensource.facebook.com/legal/terms/',
|
href: 'https://opensource.facebook.com/legal/terms/',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'Data Policy',
|
|
||||||
href: 'https://opensource.facebook.com/legal/data-policy/',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Cookie Policy',
|
|
||||||
href: 'https://opensource.facebook.com/legal/cookie-policy/',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"swizzle": "docusaurus swizzle",
|
"swizzle": "docusaurus swizzle",
|
||||||
"deploy": "docusaurus deploy",
|
"deploy": "docusaurus deploy",
|
||||||
"serve": "docusaurus serve",
|
"serve": "docusaurus serve",
|
||||||
|
"clear": "docusaurus clear",
|
||||||
"ci": "yarn lint && yarn prettier:diff",
|
"ci": "yarn lint && yarn prettier:diff",
|
||||||
"lint": "eslint --cache \"**/*.js\" && stylelint \"**/*.css\"",
|
"lint": "eslint --cache \"**/*.js\" && stylelint \"**/*.css\"",
|
||||||
"prettier": "prettier --config .prettierrc --write \"**/*.{js,md}\"",
|
"prettier": "prettier --config .prettierrc --write \"**/*.{js,md}\"",
|
||||||
|
@ -16,9 +17,9 @@
|
||||||
"dev": "docusaurus start"
|
"dev": "docusaurus start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docusaurus/core": "2.0.0-alpha.66",
|
"@docusaurus/core": "2.0.0-alpha.70",
|
||||||
"@docusaurus/preset-classic": "2.0.0-alpha.66",
|
"@docusaurus/preset-classic": "2.0.0-alpha.70",
|
||||||
"@mdx-js/react": "^1.5.8",
|
"@mdx-js/react": "^1.6.21",
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.1.1",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
"react-dom": "^16.8.4"
|
"react-dom": "^16.8.4"
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
"production": [
|
"production": [
|
||||||
">0.2%",
|
">0.5%",
|
||||||
"not dead",
|
"not dead",
|
||||||
"not op_mini all"
|
"not op_mini all"
|
||||||
],
|
],
|
||||||
|
|
|
@ -2,5 +2,5 @@
|
||||||
"infiniteLoopProtection": true,
|
"infiniteLoopProtection": true,
|
||||||
"hardReloadOnChange": true,
|
"hardReloadOnChange": true,
|
||||||
"view": "browser",
|
"view": "browser",
|
||||||
"template": "node"
|
"template": "docusaurus"
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -24,7 +24,7 @@ function generateTemplateExample(template) {
|
||||||
// /!\ we use the published init script on purpose,
|
// /!\ we use the published init script on purpose,
|
||||||
// because using the local init script is too early and could generate upcoming/unavailable config options
|
// 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
|
// 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}`,
|
// `node ./packages/docusaurus-init/bin/index.js init examples/${template} ${template}`,
|
||||||
{
|
{
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
|
@ -50,7 +50,7 @@ function generateTemplateExample(template) {
|
||||||
infiniteLoopProtection: true,
|
infiniteLoopProtection: true,
|
||||||
hardReloadOnChange: true,
|
hardReloadOnChange: true,
|
||||||
view: 'browser',
|
view: 'browser',
|
||||||
template: 'node',
|
template: 'docusaurus',
|
||||||
};
|
};
|
||||||
|
|
||||||
writeFileSync(
|
writeFileSync(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue