create-docusaurus 3.5.2 → 3.6.0-canary-6134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +4 -4
- package/templates/classic/docusaurus.config.js +4 -2
- package/templates/classic/package.json +5 -5
- package/templates/classic/sidebars.js +6 -4
- package/templates/classic-typescript/docusaurus.config.ts +4 -2
- package/templates/classic-typescript/package.json +7 -7
- package/templates/classic-typescript/sidebars.ts +2 -0
- package/templates/shared/babel.config.js +0 -3
package/bin/index.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import fs from 'fs-extra';
|
|
|
8
8
|
import { fileURLToPath } from 'url';
|
|
9
9
|
import path from 'path';
|
|
10
10
|
import _ from 'lodash';
|
|
11
|
-
import logger from '@docusaurus/logger';
|
|
11
|
+
import { logger } from '@docusaurus/logger';
|
|
12
12
|
import shell from 'shelljs';
|
|
13
13
|
import prompts from 'prompts';
|
|
14
14
|
import supportsColor from 'supports-color';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-docusaurus",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-canary-6134",
|
|
4
4
|
"description": "Create Docusaurus apps easily.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@docusaurus/logger": "3.
|
|
26
|
-
"@docusaurus/utils": "3.
|
|
25
|
+
"@docusaurus/logger": "3.6.0-canary-6134",
|
|
26
|
+
"@docusaurus/utils": "3.6.0-canary-6134",
|
|
27
27
|
"commander": "^5.1.0",
|
|
28
28
|
"fs-extra": "^11.1.1",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=18.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "706c96c3bdd92c7d3ac61447ec49e4bfa6d0526b"
|
|
43
43
|
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import {themes as prismThemes} from 'prism-react-renderer';
|
|
8
8
|
|
|
9
|
+
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
|
10
|
+
|
|
9
11
|
/** @type {import('@docusaurus/types').Config} */
|
|
10
12
|
const config = {
|
|
11
13
|
title: 'My Site',
|
|
@@ -118,8 +120,8 @@ const config = {
|
|
|
118
120
|
href: 'https://discordapp.com/invite/docusaurus',
|
|
119
121
|
},
|
|
120
122
|
{
|
|
121
|
-
label: '
|
|
122
|
-
href: 'https://
|
|
123
|
+
label: 'X',
|
|
124
|
+
href: 'https://x.com/docusaurus',
|
|
123
125
|
},
|
|
124
126
|
],
|
|
125
127
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-2-classic-template",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-canary-6134",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"docusaurus": "docusaurus",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"write-heading-ids": "docusaurus write-heading-ids"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@docusaurus/core": "3.
|
|
18
|
-
"@docusaurus/preset-classic": "3.
|
|
17
|
+
"@docusaurus/core": "3.6.0-canary-6134",
|
|
18
|
+
"@docusaurus/preset-classic": "3.6.0-canary-6134",
|
|
19
19
|
"@mdx-js/react": "^3.0.0",
|
|
20
20
|
"clsx": "^2.0.0",
|
|
21
21
|
"prism-react-renderer": "^2.3.0",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"react-dom": "^18.0.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@docusaurus/module-type-aliases": "3.
|
|
27
|
-
"@docusaurus/types": "3.
|
|
26
|
+
"@docusaurus/module-type-aliases": "3.6.0-canary-6134",
|
|
27
|
+
"@docusaurus/types": "3.6.0-canary-6134"
|
|
28
28
|
},
|
|
29
29
|
"browserslist": {
|
|
30
30
|
"production": [
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
|
4
|
+
|
|
1
5
|
/**
|
|
2
6
|
* Creating a sidebar enables you to:
|
|
3
7
|
- create an ordered group of docs
|
|
@@ -7,11 +11,9 @@
|
|
|
7
11
|
The sidebars can be generated from the filesystem, or explicitly defined here.
|
|
8
12
|
|
|
9
13
|
Create as many sidebars as you want.
|
|
10
|
-
*/
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
|
|
15
|
+
@type {import('@docusaurus/plugin-content-docs').SidebarsConfig}
|
|
16
|
+
*/
|
|
15
17
|
const sidebars = {
|
|
16
18
|
// By default, Docusaurus generates a sidebar from the docs folder structure
|
|
17
19
|
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
|
|
@@ -2,6 +2,8 @@ import {themes as prismThemes} from 'prism-react-renderer';
|
|
|
2
2
|
import type {Config} from '@docusaurus/types';
|
|
3
3
|
import type * as Preset from '@docusaurus/preset-classic';
|
|
4
4
|
|
|
5
|
+
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
|
6
|
+
|
|
5
7
|
const config: Config = {
|
|
6
8
|
title: 'My Site',
|
|
7
9
|
tagline: 'Dinosaurs are cool',
|
|
@@ -110,8 +112,8 @@ const config: Config = {
|
|
|
110
112
|
href: 'https://discordapp.com/invite/docusaurus',
|
|
111
113
|
},
|
|
112
114
|
{
|
|
113
|
-
label: '
|
|
114
|
-
href: 'https://
|
|
115
|
+
label: 'X',
|
|
116
|
+
href: 'https://x.com/docusaurus',
|
|
115
117
|
},
|
|
116
118
|
],
|
|
117
119
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-2-classic-typescript-template",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-canary-6134",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"docusaurus": "docusaurus",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"typecheck": "tsc"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@docusaurus/core": "3.
|
|
19
|
-
"@docusaurus/preset-classic": "3.
|
|
18
|
+
"@docusaurus/core": "3.6.0-canary-6134",
|
|
19
|
+
"@docusaurus/preset-classic": "3.6.0-canary-6134",
|
|
20
20
|
"@mdx-js/react": "^3.0.0",
|
|
21
21
|
"clsx": "^2.0.0",
|
|
22
22
|
"prism-react-renderer": "^2.3.0",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"react-dom": "^18.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@docusaurus/module-type-aliases": "3.
|
|
28
|
-
"@docusaurus/tsconfig": "3.
|
|
29
|
-
"@docusaurus/types": "3.
|
|
30
|
-
"typescript": "~5.
|
|
27
|
+
"@docusaurus/module-type-aliases": "3.6.0-canary-6134",
|
|
28
|
+
"@docusaurus/tsconfig": "3.6.0-canary-6134",
|
|
29
|
+
"@docusaurus/types": "3.6.0-canary-6134",
|
|
30
|
+
"typescript": "~5.6.2"
|
|
31
31
|
},
|
|
32
32
|
"browserslist": {
|
|
33
33
|
"production": [
|