@modern-js/main-doc 0.0.0-next-1682310807925 → 0.0.0-next-1682359574366

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @modern-js/main-doc
2
2
 
3
- ## 0.0.0-next-1682310807925
3
+ ## 0.0.0-next-1682359574366
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -13,7 +13,7 @@
13
13
  fix(builder): 修复 browserslist 配置会对 node 产物生效的问题
14
14
 
15
15
  - Updated dependencies [fe92de6a5]
16
- - @modern-js/builder-doc@0.0.0-next-1682310807925
16
+ - @modern-js/builder-doc@0.0.0-next-1682359574366
17
17
 
18
18
  ## 2.15.0
19
19
 
@@ -0,0 +1,31 @@
1
+ ---
2
+ sidebar_position: 2
3
+ ---
4
+
5
+ # Releases
6
+
7
+ ## Changelog
8
+
9
+ Please visit [GitHub - Releases](https://github.com/web-infra-dev/modern.js/releases) to see what has changed with each release of Modern.js.
10
+
11
+ ## Version Specification
12
+
13
+ Modern.js follows the [Semantic Versioning](https://semver.org) specification.
14
+
15
+ - Major version: Contains incompatible API changes.
16
+ - Minor version: Contains backward compatible functional changes.
17
+ - Patch version: Contains backwards compatible bug fixes
18
+
19
+ ## Release Cycle
20
+
21
+ - Modern.js generally releases an official release every Thursday.
22
+ - If critical bugs appear, we will release a revised version on the same day.
23
+ - We expect to keep Modern.js v2 stable and compatible, there are currently no plans to release the next major version.
24
+
25
+ ## Version Upgrade
26
+
27
+ When you need to upgrade the Modern.js version in your project, you can use the `modern upgrade` command, refer to [Upgrade](/guides/get-started/upgrade).
28
+
29
+ ```bash
30
+ npx modern upgrade
31
+ ```
@@ -0,0 +1,13 @@
1
+ ---
2
+ sidebar_position: 1
3
+ ---
4
+
5
+ # 团队
6
+
7
+ Modern.js 的开发由 ByteDance 的 Modern.js 团队和社区贡献者驱动。
8
+
9
+ ## 核心团队成员
10
+
11
+ import { RandomMemberList } from '@site/src/components/RandomMemberList';
12
+
13
+ <RandomMemberList />
@@ -0,0 +1,31 @@
1
+ ---
2
+ sidebar_position: 2
3
+ ---
4
+
5
+ # 版本发布
6
+
7
+ ## 更新日志
8
+
9
+ 请访问 [GitHub - Release](https://github.com/web-infra-dev/modern.js/releases) 来了解 Modern.js 每个版本的变更内容。
10
+
11
+ ## 版本规范
12
+
13
+ Modern.js 遵循 [Semantic Versioning](https://semver.org/lang/zh-CN/) 语义化版本规范。
14
+
15
+ - 主版本号:包含不兼容的 API 变更。
16
+ - 次版本号:包含向下兼容的功能性变更。
17
+ - 修订号:包含向下兼容的问题修正。
18
+
19
+ ## 发版周期
20
+
21
+ - Modern.js 通常在每周四发布一个正式版本。
22
+ - 当出现较为严重的问题时,我们会在当天发布修订版本。
23
+ - 我们期望保持 Modern.js v2 的稳定和兼容,目前没有发布下一个 Major 版本的计划。
24
+
25
+ ## 版本升级
26
+
27
+ 当你需要升级项目中的 Modern.js 版本时,可以使用 `modern upgrade` 命令,参考 [升级](/guides/get-started/upgrade)。
28
+
29
+ ```bash
30
+ npx modern upgrade
31
+ ```
@@ -0,0 +1,13 @@
1
+ ---
2
+ sidebar_position: 1
3
+ ---
4
+
5
+ # Meet the Team
6
+
7
+ The development of Modern.js is driven by ByteDance's Modern.js team and community contributors.
8
+
9
+ ## Core Team Members
10
+
11
+ import { RandomMemberList } from '@site/src/components/RandomMemberList';
12
+
13
+ <RandomMemberList />
package/modern.config.ts CHANGED
@@ -8,6 +8,7 @@ const rootCategories = [
8
8
  'apis/app',
9
9
  'configure/app',
10
10
  'blog',
11
+ 'about',
11
12
  ];
12
13
 
13
14
  const { version } = require('./package.json');
@@ -45,6 +46,11 @@ const getNavbar = (lang: string): NavItem[] => {
45
46
  link: getLink('/blog/index'),
46
47
  activeMatch: '/blog/',
47
48
  },
49
+ {
50
+ text: getText('关于', 'About'),
51
+ link: getLink('/about/team'),
52
+ activeMatch: '/about/',
53
+ },
48
54
  {
49
55
  text: `v${version}`,
50
56
  items: [
package/package.json CHANGED
@@ -11,13 +11,13 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-1682310807925",
14
+ "version": "0.0.0-next-1682359574366",
15
15
  "publishConfig": {
16
16
  "registry": "https://registry.npmjs.org/",
17
17
  "access": "public"
18
18
  },
19
19
  "peerDependencies": {
20
- "@modern-js/builder-doc": "0.0.0-next-1682310807925"
20
+ "@modern-js/builder-doc": "0.0.0-next-1682359574366"
21
21
  },
22
22
  "devDependencies": {
23
23
  "classnames": "^2",
@@ -29,9 +29,9 @@
29
29
  "fs-extra": "^10",
30
30
  "@types/node": "^16",
31
31
  "@types/fs-extra": "^9",
32
- "@modern-js/builder-doc": "0.0.0-next-1682310807925",
33
- "@modern-js/doc-tools": "0.0.0-next-1682310807925",
34
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1682310807925"
32
+ "@modern-js/builder-doc": "0.0.0-next-1682359574366",
33
+ "@modern-js/doc-tools": "0.0.0-next-1682359574366",
34
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1682359574366"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "modern dev",
@@ -0,0 +1,35 @@
1
+ .wrapper {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ align-items: center;
5
+ }
6
+
7
+ .link {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ flex-direction: column;
12
+ width: 20%;
13
+ max-width: 20%;
14
+ margin: 24px 0;
15
+
16
+ &:hover {
17
+ .avatar {
18
+ transform: scale(1.15);
19
+ }
20
+ }
21
+ }
22
+
23
+ .avatar {
24
+ width: 48px;
25
+ height: 48px;
26
+ border-radius: 999px;
27
+ transition: all 0.2s ease-in-out;
28
+ background-color: #f8f8f8;
29
+ }
30
+
31
+ .name {
32
+ margin-top: 12px;
33
+ font-size: 13px;
34
+ color: rgb(0, 53, 67);
35
+ }
@@ -0,0 +1,122 @@
1
+ import { NoSSR } from '@modern-js/doc-tools/runtime';
2
+ import style from './index.module.scss';
3
+
4
+ interface Member {
5
+ id: string;
6
+ avatar: string;
7
+ // The display name, if not set, use id instead
8
+ name?: string;
9
+ }
10
+
11
+ const MEMBERS: Member[] = [
12
+ {
13
+ id: '10Derozan',
14
+ avatar: 'https://avatars.githubusercontent.com/u/50694858?s=120&v=4',
15
+ },
16
+ {
17
+ id: '2heal1',
18
+ avatar: 'https://avatars.githubusercontent.com/u/41466093?s=120&v=4',
19
+ },
20
+ {
21
+ id: '9aoy',
22
+ avatar: 'https://avatars.githubusercontent.com/u/22373761?s=120&v=4',
23
+ },
24
+ {
25
+ id: 'Asuka109',
26
+ avatar: 'https://avatars.githubusercontent.com/u/18379948?s=120&v=4',
27
+ },
28
+ {
29
+ id: 'caohuilin',
30
+ avatar: 'https://avatars.githubusercontent.com/u/12605189?s=120&v=4',
31
+ },
32
+ {
33
+ id: 'chenjiahan',
34
+ avatar: 'https://avatars.githubusercontent.com/u/7237365?s=120&v=4',
35
+ },
36
+ {
37
+ id: 'clChenLiang',
38
+ avatar: 'https://avatars.githubusercontent.com/u/13596193?s=120&v=4',
39
+ },
40
+ {
41
+ id: 'danpeen',
42
+ avatar: 'https://avatars.githubusercontent.com/u/18045417?s=120&v=4',
43
+ },
44
+ {
45
+ id: 'GiveMe-A-Name',
46
+ avatar: 'https://avatars.githubusercontent.com/u/58852732?s=120&v=4',
47
+ },
48
+ {
49
+ id: 'jkzing',
50
+ avatar: 'https://avatars.githubusercontent.com/u/2851517?s=120&v=4',
51
+ },
52
+ {
53
+ id: 'JSerFeng',
54
+ avatar: 'https://avatars.githubusercontent.com/u/57202839?s=120&v=4',
55
+ },
56
+ {
57
+ id: 'KyrieLii',
58
+ avatar: 'https://avatars.githubusercontent.com/u/16858738?s=120&v=4',
59
+ },
60
+ {
61
+ id: 'nyqykk',
62
+ avatar: 'https://avatars.githubusercontent.com/u/65393845?s=120&v=4',
63
+ },
64
+ {
65
+ id: 'sanyuan0704',
66
+ avatar: 'https://avatars.githubusercontent.com/u/39261479?s=120&v=4',
67
+ },
68
+ {
69
+ id: 'targeral',
70
+ avatar: 'https://avatars.githubusercontent.com/u/9037723?s=120&v=4',
71
+ },
72
+ {
73
+ id: 'xuchaobei',
74
+ avatar: 'https://avatars.githubusercontent.com/u/5110783?s=120&v=4',
75
+ },
76
+ {
77
+ id: 'xyoscer',
78
+ avatar: 'https://avatars.githubusercontent.com/u/16360717?s=120&v=4',
79
+ },
80
+ {
81
+ id: 'yimingjfe',
82
+ avatar: 'https://avatars.githubusercontent.com/u/10381581?s=120&v=4',
83
+ },
84
+ {
85
+ id: 'zhoushaw',
86
+ avatar: 'https://avatars.githubusercontent.com/u/27547179?s=120&v=4',
87
+ },
88
+ {
89
+ id: 'zllkjc',
90
+ avatar: 'https://avatars.githubusercontent.com/u/68810266?s=120&v=4',
91
+ },
92
+ {
93
+ id: 'zoolsher',
94
+ avatar: 'https://avatars.githubusercontent.com/u/9161085?s=120&v=4',
95
+ },
96
+ ];
97
+
98
+ export const RandomMemberList = () => {
99
+ const randomList = MEMBERS.sort(() => Math.random() - 0.5);
100
+
101
+ return (
102
+ <NoSSR>
103
+ <div className={style.wrapper}>
104
+ {randomList.map(item => (
105
+ <a
106
+ className={style.link}
107
+ href={`https://github.com/${item.id}`}
108
+ target="_blank"
109
+ rel="nofollow"
110
+ key={item.id}
111
+ style={{
112
+ border: 'none',
113
+ }}
114
+ >
115
+ <img className={style.avatar} src={item.avatar} />
116
+ <span className={style.name}>{item.name || item.id}</span>
117
+ </a>
118
+ ))}
119
+ </div>
120
+ </NoSSR>
121
+ );
122
+ };
@@ -1,3 +0,0 @@
1
- # 社区
2
-
3
- Modern.js 社区正在建设中,敬请关注!