create-docusaurus 3.5.1 → 3.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-docusaurus",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
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.1",
26
- "@docusaurus/utils": "3.5.1",
25
+ "@docusaurus/logger": "3.5.2",
26
+ "@docusaurus/utils": "3.5.2",
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": "5acbc57bd62f3f808ef72007cd67d4c410d13829"
42
+ "gitHead": "eeec303dd773774ed5a023884800da0b061f6942"
43
43
  }
@@ -56,6 +56,10 @@ const config = {
56
56
  // Remove this to remove the "edit this page" links.
57
57
  editUrl:
58
58
  'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
59
+ // Useful options to enforce blogging best practices
60
+ onInlineTags: 'warn',
61
+ onInlineAuthors: 'warn',
62
+ onUntruncatedBlogPosts: 'warn',
59
63
  },
60
64
  theme: {
61
65
  customCss: './src/css/custom.css',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-2-classic-template",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
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.1",
18
- "@docusaurus/preset-classic": "3.5.1",
17
+ "@docusaurus/core": "3.5.2",
18
+ "@docusaurus/preset-classic": "3.5.2",
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.1",
27
- "@docusaurus/types": "3.5.1"
26
+ "@docusaurus/module-type-aliases": "3.5.2",
27
+ "@docusaurus/types": "3.5.2"
28
28
  },
29
29
  "browserslist": {
30
30
  "production": [
@@ -50,6 +50,10 @@ const config: Config = {
50
50
  // Remove this to remove the "edit this page" links.
51
51
  editUrl:
52
52
  'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
53
+ // Useful options to enforce blogging best practices
54
+ onInlineTags: 'warn',
55
+ onInlineAuthors: 'warn',
56
+ onUntruncatedBlogPosts: 'warn',
53
57
  },
54
58
  theme: {
55
59
  customCss: './src/css/custom.css',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-2-classic-typescript-template",
3
- "version": "3.5.1",
3
+ "version": "3.5.2",
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.1",
19
- "@docusaurus/preset-classic": "3.5.1",
18
+ "@docusaurus/core": "3.5.2",
19
+ "@docusaurus/preset-classic": "3.5.2",
20
20
  "@mdx-js/react": "^3.0.0",
21
21
  "clsx": "^2.0.0",
22
22
  "prism-react-renderer": "^2.3.0",
@@ -24,9 +24,9 @@
24
24
  "react-dom": "^18.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@docusaurus/module-type-aliases": "3.5.1",
28
- "@docusaurus/tsconfig": "3.5.1",
29
- "@docusaurus/types": "3.5.1",
27
+ "@docusaurus/module-type-aliases": "3.5.2",
28
+ "@docusaurus/tsconfig": "3.5.2",
29
+ "@docusaurus/types": "3.5.2",
30
30
  "typescript": "~5.5.2"
31
31
  },
32
32
  "browserslist": {
@@ -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, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. 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: endi
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