Skip to content

Commit acab2db

Browse files
authored
Merge branch '88lin:main' into main
2 parents f28b495 + b2cb799 commit acab2db

384 files changed

Lines changed: 20784 additions & 2405 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.docs.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 文档站 Giscus(复制为 .env.docs.local 后用于本地 yarn docs:site:dev / build)
2+
# GitHub Actions 请在仓库 Settings → Secrets 配置同名变量
3+
4+
VITE_GISCUS_REPO_ID=R_kgDOGHdxTw
5+
VITE_GISCUS_CATEGORY_ID=DIC_kwDOGHdxT84CBR2I
6+
7+
# 可选:设为 false 关闭页底评论
8+
# VITE_GISCUS_ENABLED=false

.env.example

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
# NOTION_PAGE_ID=097e5f674880459d8e1b4407758dc4fb
66
# API_BASE_URL=https://www.notion.so/api/v3
77

8+
# 构建 / 导出(yarn build、yarn export、Cloudflare Pages)
9+
# BUILD_PREFETCH_ENABLED=false
10+
# BUILD_PREFETCH_CONCURRENCY=4
11+
# NOTION_BUILD_RATE_MAX_PER_MINUTE=50
12+
# NOTION_BUILD_RATE_MIN_INTERVAL_MS=300
13+
# STATIC_PAGE_GENERATION_TIMEOUT=600
14+
815
# 非必须
916
# NEXT_PUBLIC_VERSION=
1017
# NEXT_PUBLIC_PSEUDO_STATIC=
@@ -185,3 +192,29 @@
185192
# VERCEL_ENV=
186193
# NEXT_PUBLIC_VERSION=
187194
# NEXT_BUILD_STANDALONE=
195+
196+
# ---------- notion-i18n-translator(CLI 翻译脚本) ----------
197+
# 仅供 `yarn translate` 系列脚本使用;使用前请阅读风险说明:
198+
# docs/user-guide/notion/bilingual-translator.md 与 scripts/translate/README.md
199+
# 真实值请放入 .env.local(已被 gitignore);本文件仅作模板。
200+
# 首次批量同步务必先执行:yarn translate:all --dry-run
201+
#
202+
# Notion 集成 token(https://www.notion.so/my-integrations);下方两个数据库
203+
# 必须均与该集成连接(在数据库页右上角 ••• → Connections 添加)。
204+
# NOTION_TOKEN=
205+
# 两个语言数据库的 ID — 形如 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,可从数据库 URL 中提取。
206+
# NOTION_DB_EN_ID=
207+
# NOTION_DB_ZH_ID=
208+
#
209+
# 翻译提供方:deepseek(默认)或 glm
210+
# TRANSLATOR_PROVIDER=deepseek
211+
# DEEPSEEK_API_KEY=
212+
# DEEPSEEK_MODEL=deepseek-chat
213+
# DEEPSEEK_BASE_URL=https://api.deepseek.com/v1
214+
# GLM_API_KEY=
215+
# GLM_MODEL=glm-4-plus
216+
# GLM_BASE_URL=https://open.bigmodel.cn/api/paas/v4
217+
#
218+
# 并发与安全
219+
# TRANSLATOR_CONCURRENCY=8
220+
# TRANSLATOR_BUDGET_TOKENS_PER_RUN=500000

.github/CODEOWNERS

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# 仅高影响路径请求 Founder 过目,降低日常 PR 对管理者的打扰。
2+
# 文档与主题 PR 无 CODEOWNERS → 由具备 Write 的维护者按 GOVERNANCE 合并即可。
3+
# 详见 docs/developer/MAINTAINER_RUNBOOK.zh-CN.md
4+
5+
/lib/db/ @tangly1024
6+
/pages/api/ @tangly1024
7+
/next.config.js @tangly1024
8+
/blog.config.js @tangly1024
9+
/package.json @tangly1024
10+
/yarn.lock @tangly1024
11+
/.github/workflows/ @tangly1024
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
title: "🛠️ "
2+
labels: []
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
开发相关讨论(架构、PR 评审、RFC)。提交代码前请阅读 [CONTRIBUTING.zh-CN.md](https://github.com/notionnext-org/NotionNext/blob/main/CONTRIBUTING.zh-CN.md) 与 [MAINTENANCE_PHILOSOPHY](https://github.com/notionnext-org/NotionNext/blob/main/docs/developer/MAINTENANCE_PHILOSOPHY.zh-CN.md)。
8+
- type: textarea
9+
id: topic
10+
attributes:
11+
label: 讨论主题
12+
validations:
13+
required: true
14+
- type: input
15+
id: pr
16+
attributes:
17+
label: 相关 PR / Issue 链接(可选)
18+
validations:
19+
required: false
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
title: "📖 "
2+
labels: ["documentation"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
文档改进建议。若你已写好修改,可直接编辑 `docs/user-guide/` 并提 PR(页底「在 GitHub 上维护此页」)。
8+
维护流程见 [maintain-docs.md](https://notionnext.tangly1024.com/user-guide/maintain-docs)。
9+
- type: textarea
10+
id: page
11+
attributes:
12+
label: 相关页面或 slug
13+
placeholder: 例如 /user-guide/deploy-vercel 或 docs.tangly1024.com/article/...
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: suggestion
18+
attributes:
19+
label: 建议修改内容
20+
validations:
21+
required: true
22+
- type: checkboxes
23+
id: volunteer
24+
attributes:
25+
label: 我愿意
26+
options:
27+
- label: 自行提交 PR 修复
28+
- label: 仅提供建议,由维护者处理
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
title: "💡 "
2+
labels: ["enhancement"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
功能建议请先在此讨论范围与优先级,共识后再开 [Feature Request Issue](https://github.com/notionnext-org/NotionNext/issues/new/choose) 或 PR。
8+
较大改动请阅读 [RFC 指南](https://github.com/notionnext-org/NotionNext/blob/main/docs/developer/rfc/README.md)。
9+
- type: textarea
10+
id: problem
11+
attributes:
12+
label: 要解决的用户问题
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: proposal
17+
attributes:
18+
label: 建议方案(可选)
19+
validations:
20+
required: false
21+
- type: checkboxes
22+
id: scope
23+
attributes:
24+
label: 影响范围(可多选)
25+
options:
26+
- label: 仅文档
27+
- label: 单个主题
28+
- label: 全站 / 公共 API
29+
- label: 构建 / 部署
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
title: "组织成员申请: "
2+
labels: []
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
若你已满足 [GOVERNANCE](https://github.com/notionnext-org/NotionNext/blob/main/GOVERNANCE.zh-CN.md#申请组织协作权限) 中的条件(如 1~2 个合并 PR)但**尚未收到组织邀请**,请在此留言,维护者会按队列处理。
8+
- type: input
9+
id: username
10+
attributes:
11+
label: GitHub 用户名
12+
placeholder: "@your-handle"
13+
validations:
14+
required: true
15+
- type: textarea
16+
id: prs
17+
attributes:
18+
label: 已合并 PR 链接(每行一条)
19+
placeholder: https://github.com/notionnext-org/NotionNext/pull/...
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: domain
24+
attributes:
25+
label: 希望负责的域
26+
placeholder: 例如 docs/user-guide、某主题、CI 等
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: availability
31+
attributes:
32+
label: 可投入时间(可选)
33+
placeholder: 例如每周若干小时、主要时区等
34+
validations:
35+
required: false
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
title: ""
2+
labels: ["question"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
感谢提问。请尽量提供 **NotionNext 版本**、**部署平台**(Vercel / Cloudflare 等)与**复现步骤**,便于志愿者回复。
8+
若确认是 Bug,请改用 [Bug Report](https://github.com/notionnext-org/NotionNext/issues/new/choose)。
9+
- type: textarea
10+
id: question
11+
attributes:
12+
label: 问题描述
13+
placeholder: 你想实现什么 / 遇到了什么现象?
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: env
18+
attributes:
19+
label: 环境信息
20+
placeholder: 版本号(package.json)、部署方式、相关 env 变量名(勿贴密钥)
21+
validations:
22+
required: false
23+
- type: textarea
24+
id: tried
25+
attributes:
26+
label: 已尝试的步骤
27+
placeholder: 已查阅的文档链接、已改的配置等
28+
validations:
29+
required: false

.github/FUNDING.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: Bug report (Bug反馈)
33
about: 报告一个软件的BUG来让NotionNext变得更好
44
title: ''
55
labels: bug
6-
assignees: tangly1024
6+
---
7+
8+
> 若为「如何使用 / 部署咨询」而非可复现缺陷,请改用 [Discussions · 使用问答](https://github.com/notionnext-org/NotionNext/discussions/new/choose),Issue 仅用于可跟踪的 Bug。
9+
710
---
811

912
<!--

0 commit comments

Comments
 (0)