create-docusaurus 3.5.1 → 3.5.2-canary-6122
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 +8 -2
- package/templates/classic/package.json +5 -5
- package/templates/classic/sidebars.js +6 -4
- package/templates/classic-typescript/docusaurus.config.ts +8 -2
- package/templates/classic-typescript/package.json +7 -7
- package/templates/classic-typescript/sidebars.ts +2 -0
- package/templates/shared/blog/2019-05-28-first-blog-post.md +6 -6
- package/templates/shared/blog/2019-05-29-long-blog-post.md +2 -2
- package/templates/shared/blog/2021-08-01-mdx-blog-post.mdx +6 -2
- package/templates/shared/blog/2021-08-26-welcome/index.md +4 -0
- package/templates/shared/blog/authors.yml +4 -6
- package/templates/shared/blog/tags.yml +3 -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.5.
|
|
3
|
+
"version": "3.5.2-canary-6122",
|
|
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.5.
|
|
26
|
-
"@docusaurus/utils": "3.5.
|
|
25
|
+
"@docusaurus/logger": "3.5.2-canary-6122",
|
|
26
|
+
"@docusaurus/utils": "3.5.2-canary-6122",
|
|
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": "13455a98d6f59bad263db5629d67cbed578c4250"
|
|
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',
|
|
@@ -56,6 +58,10 @@ const config = {
|
|
|
56
58
|
// Remove this to remove the "edit this page" links.
|
|
57
59
|
editUrl:
|
|
58
60
|
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
|
|
61
|
+
// Useful options to enforce blogging best practices
|
|
62
|
+
onInlineTags: 'warn',
|
|
63
|
+
onInlineAuthors: 'warn',
|
|
64
|
+
onUntruncatedBlogPosts: 'warn',
|
|
59
65
|
},
|
|
60
66
|
theme: {
|
|
61
67
|
customCss: './src/css/custom.css',
|
|
@@ -114,8 +120,8 @@ const config = {
|
|
|
114
120
|
href: 'https://discordapp.com/invite/docusaurus',
|
|
115
121
|
},
|
|
116
122
|
{
|
|
117
|
-
label: '
|
|
118
|
-
href: 'https://
|
|
123
|
+
label: 'X',
|
|
124
|
+
href: 'https://x.com/docusaurus',
|
|
119
125
|
},
|
|
120
126
|
],
|
|
121
127
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-2-classic-template",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2-canary-6122",
|
|
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.5.
|
|
18
|
-
"@docusaurus/preset-classic": "3.5.
|
|
17
|
+
"@docusaurus/core": "3.5.2-canary-6122",
|
|
18
|
+
"@docusaurus/preset-classic": "3.5.2-canary-6122",
|
|
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.5.
|
|
27
|
-
"@docusaurus/types": "3.5.
|
|
26
|
+
"@docusaurus/module-type-aliases": "3.5.2-canary-6122",
|
|
27
|
+
"@docusaurus/types": "3.5.2-canary-6122"
|
|
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',
|
|
@@ -50,6 +52,10 @@ const config: Config = {
|
|
|
50
52
|
// Remove this to remove the "edit this page" links.
|
|
51
53
|
editUrl:
|
|
52
54
|
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
|
|
55
|
+
// Useful options to enforce blogging best practices
|
|
56
|
+
onInlineTags: 'warn',
|
|
57
|
+
onInlineAuthors: 'warn',
|
|
58
|
+
onUntruncatedBlogPosts: 'warn',
|
|
53
59
|
},
|
|
54
60
|
theme: {
|
|
55
61
|
customCss: './src/css/custom.css',
|
|
@@ -106,8 +112,8 @@ const config: Config = {
|
|
|
106
112
|
href: 'https://discordapp.com/invite/docusaurus',
|
|
107
113
|
},
|
|
108
114
|
{
|
|
109
|
-
label: '
|
|
110
|
-
href: 'https://
|
|
115
|
+
label: 'X',
|
|
116
|
+
href: 'https://x.com/docusaurus',
|
|
111
117
|
},
|
|
112
118
|
],
|
|
113
119
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docusaurus-2-classic-typescript-template",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.2-canary-6122",
|
|
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.5.
|
|
19
|
-
"@docusaurus/preset-classic": "3.5.
|
|
18
|
+
"@docusaurus/core": "3.5.2-canary-6122",
|
|
19
|
+
"@docusaurus/preset-classic": "3.5.2-canary-6122",
|
|
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.5.
|
|
28
|
-
"@docusaurus/tsconfig": "3.5.
|
|
29
|
-
"@docusaurus/types": "3.5.
|
|
30
|
-
"typescript": "~5.
|
|
27
|
+
"@docusaurus/module-type-aliases": "3.5.2-canary-6122",
|
|
28
|
+
"@docusaurus/tsconfig": "3.5.2-canary-6122",
|
|
29
|
+
"@docusaurus/types": "3.5.2-canary-6122",
|
|
30
|
+
"typescript": "~5.6.2"
|
|
31
31
|
},
|
|
32
32
|
"browserslist": {
|
|
33
33
|
"production": [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
slug: first-blog-post
|
|
3
3
|
title: First Blog Post
|
|
4
|
-
authors:
|
|
5
|
-
name: Gao Wei
|
|
6
|
-
title: Docusaurus Core Team
|
|
7
|
-
url: https://github.com/wgao19
|
|
8
|
-
image_url: https://github.com/wgao19.png
|
|
4
|
+
authors: [slorber, yangshun]
|
|
9
5
|
tags: [hola, docusaurus]
|
|
10
6
|
---
|
|
11
7
|
|
|
12
|
-
Lorem ipsum dolor sit amet
|
|
8
|
+
Lorem ipsum dolor sit amet...
|
|
9
|
+
|
|
10
|
+
<!-- truncate -->
|
|
11
|
+
|
|
12
|
+
...consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
slug: long-blog-post
|
|
3
3
|
title: Long Blog Post
|
|
4
|
-
authors:
|
|
4
|
+
authors: yangshun
|
|
5
5
|
tags: [hello, docusaurus]
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ This is the summary of a very long blog post,
|
|
|
9
9
|
|
|
10
10
|
Use a `<!--` `truncate` `-->` comment to limit blog post size in the list view.
|
|
11
11
|
|
|
12
|
-
<!--truncate-->
|
|
12
|
+
<!-- truncate -->
|
|
13
13
|
|
|
14
14
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
15
15
|
|
|
@@ -11,10 +11,14 @@ Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/mar
|
|
|
11
11
|
|
|
12
12
|
Use the power of React to create interactive blog posts.
|
|
13
13
|
|
|
14
|
+
:::
|
|
15
|
+
|
|
16
|
+
{/* truncate */}
|
|
17
|
+
|
|
18
|
+
For example, use JSX to create an interactive button:
|
|
19
|
+
|
|
14
20
|
```js
|
|
15
21
|
<button onClick={() => alert('button clicked!')}>Click me!</button>
|
|
16
22
|
```
|
|
17
23
|
|
|
18
24
|
<button onClick={() => alert('button clicked!')}>Click me!</button>
|
|
19
|
-
|
|
20
|
-
:::
|
|
@@ -7,6 +7,10 @@ tags: [facebook, hello, docusaurus]
|
|
|
7
7
|
|
|
8
8
|
[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).
|
|
9
9
|
|
|
10
|
+
Here are a few tips you might find useful.
|
|
11
|
+
|
|
12
|
+
<!-- truncate -->
|
|
13
|
+
|
|
10
14
|
Simply add Markdown files (or folders) to the `blog` directory.
|
|
11
15
|
|
|
12
16
|
Regular blog authors can be added to `authors.yml`.
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
endi:
|
|
2
|
-
name: Endilie Yacop Sucipto
|
|
3
|
-
title: Maintainer of Docusaurus
|
|
4
|
-
url: https://github.com/endiliey
|
|
5
|
-
image_url: https://github.com/endiliey.png
|
|
6
|
-
|
|
7
1
|
yangshun:
|
|
8
2
|
name: Yangshun Tay
|
|
9
3
|
title: Front End Engineer @ Facebook
|
|
10
4
|
url: https://github.com/yangshun
|
|
11
5
|
image_url: https://github.com/yangshun.png
|
|
6
|
+
page: true
|
|
12
7
|
socials:
|
|
13
8
|
x: yangshunz
|
|
14
9
|
github: yangshun
|
|
@@ -18,6 +13,9 @@ slorber:
|
|
|
18
13
|
title: Docusaurus maintainer
|
|
19
14
|
url: https://sebastienlorber.com
|
|
20
15
|
image_url: https://github.com/slorber.png
|
|
16
|
+
page:
|
|
17
|
+
# customize the url of the author page at /blog/authors/<permalink>
|
|
18
|
+
permalink: '/all-sebastien-lorber-articles'
|
|
21
19
|
socials:
|
|
22
20
|
x: sebastienlorber
|
|
23
21
|
linkedin: sebastienlorber
|
|
@@ -2,14 +2,17 @@ facebook:
|
|
|
2
2
|
label: Facebook
|
|
3
3
|
permalink: /facebook
|
|
4
4
|
description: Facebook tag description
|
|
5
|
+
|
|
5
6
|
hello:
|
|
6
7
|
label: Hello
|
|
7
8
|
permalink: /hello
|
|
8
9
|
description: Hello tag description
|
|
10
|
+
|
|
9
11
|
docusaurus:
|
|
10
12
|
label: Docusaurus
|
|
11
13
|
permalink: /docusaurus
|
|
12
14
|
description: Docusaurus tag description
|
|
15
|
+
|
|
13
16
|
hola:
|
|
14
17
|
label: Hola
|
|
15
18
|
permalink: /hola
|