diff --git a/.gitignore b/.gitignore
index fd4e939..8690b5b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@ lib
.npmrc
checksum.txt
.umi
+.umi-production
diff --git a/.umirc.ts b/.umirc.ts
index de40eb6..cd1080d 100644
--- a/.umirc.ts
+++ b/.umirc.ts
@@ -8,8 +8,8 @@ export default defineConfig({
base: 'docs',
hash: true,
locales: [
- ['en', 'English'],
- ['zh', '中文'],
+ ['en-US', 'English'],
+ ['zh-CN', '中文'],
],
copy: [
{
@@ -38,10 +38,17 @@ export default defineConfig({
'.__dumi-default-menu-inner ul li a::before, .__dumi-default-menu-inner ul li > span::before { display: none !important; }',
'.__dumi-default-layout-hero button { border-radius: 4px !important; }',
'.__dumi-default-menu[data-mode=\'site\'] { background: white !important; }',
- 'code, pre { color: #844d28 !important; font-family: Menlo, Consolas, Courier, monospace !important; font-size: 14px; background: transparent !important; }',
+ 'code, pre { font-family: Menlo, Consolas, Courier, monospace !important; font-size: 14px; background: transparent !important; }',
+ '[data-prefers-color=dark] .markdown a { color: #844d28 !important; }',
'pre { color: #333 !important; }',
'h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { font-size: inherit; }',
'https://cdn.jsdelivr.net/npm/prism-themes@1.5.0/themes/prism-vs.css',
+ '[data-prefers-color=dark] .__dumi-default-menu-inner ul li a:hover, [data-prefers-color=dark] .__dumi-default-menu-inner ul li > span:hover, [data-prefers-color=dark] .__dumi-default-menu-inner ul li a.active, [data-prefers-color=dark] .__dumi-default-menu-inner ul li > span.active { color: #844d28 !important; }',
+ '[data-prefers-color=dark] code[class*="language-"], [data-prefers-color=dark] pre[class*="language-"] { color: white !important; }',
+ '[data-prefers-color=dark] .markdown *:not(pre) code { color: #844d28 !important; }',
+ '.__dumi-default-menu[data-mode=\'site\'] { padding-top: 0 !important; }',
+ '[data-prefers-color=dark] .__dumi-default-navbar nav > span > a:hover, [data-prefers-color=dark] .__dumi-default-navbar nav > span > a.active, [data-prefers-color=dark] .__dumi-default-layout-footer-meta, [data-prefers-color=dark] .__dumi-default-layout-footer-meta > span:last-child::before { color: #844d28 !important; }',
+ '.__dumi-default-menu[data-mode=\'site\'] .__dumi-default-menu-list { margin-top: 50px; }',
],
favicon: '/public/images/favicon.ico',
resolve: {
@@ -49,14 +56,14 @@ export default defineConfig({
previewLangs: [],
},
navs: {
- en: [
+ 'en-US': [
null,
{
title: 'GitHub',
path: 'https://github.com/dolliejs/dollie-core',
},
],
- zh: [
+ 'zh-CN': [
null,
{
title: 'GitHub',
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..06b009c
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,76 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, sex characteristics, gender identity and expression,
+level of experience, education, socio-economic status, nationality, personal
+appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment
+include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or
+reject comments, commits, code, wiki edits, issues, and other contributions
+that are not aligned to this Code of Conduct, or to ban temporarily or
+permanently any contributor for other behaviors that they deem inappropriate,
+threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported by contacting the project team at dolliejs@lenconda.top. All
+complaints will be reviewed and investigated and will result in a response that
+is deemed necessary and appropriate to the circumstances. The project team is
+obligated to maintain confidentiality with regard to the reporter of an incident.
+Further details of specific enforcement policies may be posted separately.
+
+Project maintainers who do not follow or enforce the Code of Conduct in good
+faith may face temporary or permanent repercussions as determined by other
+members of the project's leadership.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
+available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
+
+[homepage]: https://www.contributor-covenant.org
+
+For answers to common questions about this code of conduct, see
+https://www.contributor-covenant.org/faq
diff --git a/docs/README.zh-CN.md b/docs/README.zh-CN.md
new file mode 100644
index 0000000..7c02376
--- /dev/null
+++ b/docs/README.zh-CN.md
@@ -0,0 +1,52 @@
+---
+title: Dollie.js
+hero:
+ title: Dollie.js
+ desc: Dollie 是初始化工程代码的工具链,它可以帮助你构建成熟的工程化方案。
+ actions:
+ - text: 快速上手
+ link: /zh-CN/guide
+ - text: CLI 入门
+features:
+ - title: 云端化
+ desc: 通过云端托管模板,以及模板与生成器分离的设计,极大提升模板升级迭代的灵活性
+ - title: 易上手
+ desc: 模板配置项简单,易于理解,较短的学习时间即可上手;编写极少代码甚至无需编写代码即可快速制作脚手架
+ - title: 增量覆盖
+ desc: 支持通过扩展模板增量覆盖,从而使定制与选择模板技术栈更加方便快捷
+footer:
+ 遵循 MIT 开源协议
+
版权所有 © 2021 至今,Dollie.js 及其贡献者
+
由 [dumi](https://d.umijs.org) 提供支持
+---
+
+## 谁在使用
+
+
+
+ + 南昌大学家园工作室 + + |
+