Skip to content

Commit abdf84e

Browse files
committed
fix: make it build
1 parent eb2f712 commit abdf84e

14 files changed

Lines changed: 1274 additions & 652 deletions

TranslationPlan.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# Translation Plan (Chinese Localization)
2+
3+
Tracking translation tasks for converting this repository's documentation into Chinese. Each unchecked item represents a document whose opening section (first 10 lines) is currently in English and requires translation work.
4+
5+
## Legend
6+
7+
- [ ] Not started – document is English-only or predominantly English.
8+
- [ ]\* Optional follow-up – contains mostly English with minor existing Chinese examples; still needs full-context translation.
9+
10+
## Root Documentation
11+
12+
- [x] `README.md` — Project overview and getting started content in English.
13+
- [x] `AGENTS.md` — Repository guidelines and conventions in English.
14+
15+
## Top-Level Pages
16+
17+
- [x] `pages/index.mdx` — Landing page front-matter and hero copy in English.
18+
- [x] `pages/about.mdx` — About page introducing Loro founders (English).
19+
- [x] `pages/blog.mdx` — Blog index header and layout strings in English.
20+
- [x] `pages/changelog.mdx` — Changelog index header components in English.
21+
22+
## Blog Posts
23+
24+
- [x] `pages/blog/crdt-richtext.mdx` — Article announcing the Rust Peritext/Fugue implementation (English).
25+
- [x] `pages/blog/loro-richtext.mdx` — Rich text CRDT introduction article (English).
26+
- [x] `pages/blog/loro-now-open-source.mdx` — Open source announcement article (English).
27+
- [x] `pages/blog/loro-mirror.mdx` — Loro Mirror product article with English copy.
28+
- [x] `pages/blog/movable-tree.mdx` — Movable Tree CRDT article (English).
29+
- [x] `pages/blog/v1.0.mdx` — Loro v1.0 release notes blog post (English).
30+
31+
## Changelog Entries
32+
33+
- [x] `pages/changelog/v1.0.0-beta.mdx` — Beta release notes in English.
34+
- [x] `pages/changelog/v1.1.0.mdx` — Release notes (English).
35+
- [x] `pages/changelog/v1.2.0.mdx` — Release notes (English).
36+
- [x] `pages/changelog/v1.3.0.mdx` — Release notes (English).
37+
- [x] `pages/changelog/v1.4.0.mdx` — Release notes (English).
38+
- [x] `pages/changelog/v1.4.7.mdx` — Release notes (English).
39+
- [x] `pages/changelog/v1.5.0.mdx` — Release notes (English).
40+
- [x] `pages/changelog/v1.6.0.mdx` — Release notes (English).
41+
- [x] `pages/changelog/v1.8.0.mdx` — Release notes (English).
42+
- [x] `pages/changelog/inspector-v0.1.0.mdx` — Inspector release entry (English).
43+
44+
## Documentation Index & Examples
45+
46+
- [x] `pages/docs/index.mdx` — Documentation landing page (English).
47+
- [x] `pages/docs/examples.mdx` — Example catalogue in English.
48+
- [x] `pages/docs/llm.md` — LLM usage guide (English).
49+
50+
## API Reference
51+
52+
- [ ] `pages/docs/api/js.mdx` — JavaScript API documentation (English).
53+
54+
## Performance Guides
55+
56+
- [x] `pages/docs/performance/index.md` — Performance overview (English).
57+
- [x] `pages/docs/performance/native.mdx` — Native bindings performance guide (English).
58+
- [x] `pages/docs/performance/docsize.md` — Document size optimization guide (English).
59+
60+
## Concepts Guides
61+
62+
- [x] `pages/docs/concepts/crdt.mdx` — CRDT fundamentals article (English).
63+
- [x] `pages/docs/concepts/container.mdx` — Container concept guide (English).
64+
- [x] `pages/docs/concepts/choose_crdt_type.mdx` — CRDT selection guidance (English).
65+
- [x] `pages/docs/concepts/attached_detached.mdx` — Attached/detached concept article (English).
66+
- [x] `pages/docs/concepts/cursor_stable_positions.mdx` — Cursor stability guide (English).
67+
- [x] `pages/docs/concepts/event_graph_walker.mdx` — Event Graph Walker overview (English).
68+
- [x] `pages/docs/concepts/frontiers.mdx` — Frontier representation guide (English).
69+
- [x] `pages/docs/concepts/import_status.mdx` — Import status reference (English).
70+
- [x] `pages/docs/concepts/oplog_docstate.mdx` — OpLog vs doc-state comparison (English).
71+
- [x] `pages/docs/concepts/operations_changes.mdx` — Operations vs changes explanation (English).
72+
- [x] `pages/docs/concepts/peerid_management.mdx` — Peer ID management guide (English).
73+
- [x] `pages/docs/concepts/shallow_snapshots.mdx` — Shallow snapshots explanation (English).
74+
- [x] `pages/docs/concepts/transaction_model.mdx` — Transaction model overview (English).
75+
- [x] `pages/docs/concepts/version_vector.mdx` — Version vector guide (English).
76+
- [x] `pages/docs/concepts/when_not_crdt.mdx` — When not to use CRDTs (English).
77+
78+
## Tutorial Series
79+
80+
- [x] `pages/docs/tutorial/get_started.mdx` — Getting started tutorial (English).
81+
- [x] `pages/docs/tutorial/version.mdx` — Versioning tutorial (English).
82+
- [x] `pages/docs/tutorial/persistence.mdx` — Persistence tutorial (English).
83+
- [x] `pages/docs/tutorial/tree.mdx` — Tree tutorial (English).
84+
- [x] `pages/docs/tutorial/tips.mdx` — Tips and best practices (English).
85+
- [x] `pages/docs/tutorial/composition.mdx` — Composition tutorial (English).
86+
- [x] `pages/docs/tutorial/time_travel.mdx` — Time travel tutorial (English).
87+
- [x] `pages/docs/tutorial/sync.mdx` — Sync tutorial (English).
88+
- [x] `pages/docs/tutorial/ephemeral.mdx` — Ephemeral data tutorial (English).
89+
- [x] `pages/docs/tutorial/text.mdx` — Text tutorial (English with some Chinese examples).
90+
- [x] `pages/docs/tutorial/cursor.mdx` — Cursor tutorial (English).
91+
- [x] `pages/docs/tutorial/event.mdx` — Event handling tutorial (English).
92+
- [x] `pages/docs/tutorial/loro_doc.mdx` — LoroDoc tutorial (English).
93+
- [x] `pages/docs/tutorial/map.mdx` — Map tutorial (English).
94+
- [x] `pages/docs/tutorial/counter.mdx` — Counter tutorial (English).
95+
- [x] `pages/docs/tutorial/encoding.mdx` — Encoding tutorial (English terms with minor Chinese keywords).
96+
- [x] `pages/docs/tutorial/list.mdx` — List tutorial (English).
97+
98+
## Advanced Topics
99+
100+
- [x] `pages/docs/advanced/version_deep_dive.mdx` — Version deep dive article (English).
101+
- [x] `pages/docs/advanced/undo.mdx` — Undo manager guide (English).
102+
- [x] `pages/docs/advanced/timestamp.mdx` — Timestamp storage guide (English).
103+
- [x] `pages/docs/advanced/import_batch.mdx` — Import batch performance guide (English).
104+
- [x] `pages/docs/advanced/cid.mdx` — Container ID reference (English).
105+
- [x] `pages/docs/advanced/inspector.mdx` — Loro Inspector walkthrough (English).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"scripts": {
55
"dev": "next dev",
6-
"build": "node gen-rss.js && next build",
6+
"build": "next build",
77
"postbuild": "next-sitemap",
88
"start": "next start",
99
"test": "cd deno_scripts && deno run -A ./run_code_blocks.ts ..",

pages/blog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getPagesUnderRoute } from "nextra/context";
22
import Link from "next/link";
3-
import BlogPostCard from "../../components/BlogPostCard";
3+
import BlogPostCard from "../components/BlogPostCard";
44

55
export function BlogHeader() {
66
return (

pages/blog/crdt-richtext.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tag: richtext
99

1010
# [crdt-richtext](https://github.com/loro-dev/crdt-richtext): Peritext 和 Fugue 的 Rust 实现
1111

12-
import Authors, { Author } from "../../../components/authors";
12+
import Authors, { Author } from "../../components/authors";
1313

1414
<Authors date="2023-04-20">
1515
<Author

pages/blog/loro-mirror.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ image: "/images/loro-mirror.png"
77

88
# Loro Mirror: 通过镜像到 CRDTs 使 UI 状态具有协作性
99

10-
import Caption from "../../../components/caption";
11-
import GitHub from "../../../components/github";
12-
import Authors, { Author } from "../../../components/authors";
10+
import Caption from "../../components/caption";
11+
import GitHub from "../../components/github";
12+
import Authors, { Author } from "../../components/authors";
1313

1414
<Authors date="2025-09-22">
1515
<Author
@@ -237,7 +237,7 @@ const undo = useMemo(() => new UndoManager(doc), [doc]);
237237
- 通过更新或快照进行[离线优先同步](https://loro.dev/docs/tutorial/sync),并通过任何传输(HTTP、WebSocket、P2P)进行确定性冲突解决
238238
- 跨客户端的[协作撤销/重做](https://loro.dev/docs/advanced/undo)
239239

240-
import { ReactPlayer } from "../../../components/video";
240+
import { ReactPlayer } from "../../components/video";
241241

242242
<ReactPlayer
243243
url="/static/recording-loro-todo.mp4"

pages/blog/loro-now-open-source.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ description:
77

88
# Loro: 用 CRDTs 重新构想状态管理
99

10-
import Caption from "../../../components/caption";
11-
import GitHub from "../../../components/github";
12-
import Authors, { Author } from "../../../components/authors";
10+
import Caption from "../../components/caption";
11+
import GitHub from "../../components/github";
12+
import Authors, { Author } from "../../components/authors";
1313

1414
<Authors date="2023-11-13">
1515
<Author

pages/blog/loro-richtext.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ image: https://i.ibb.co/rsX5vR6/cover-long.png
1212

1313
# Loro 富文本 CRDT 简介
1414

15-
import Authors, { Author } from "../../../components/authors";
15+
import Authors, { Author } from "../../components/authors";
1616

1717
<Authors date="2024-01-22">
1818
<Author
@@ -23,7 +23,7 @@ import Authors, { Author } from "../../../components/authors";
2323

2424
![](./loro-richtext/cover_long.png)
2525

26-
import Caption from "../../../components/caption";
26+
import Caption from "../../components/caption";
2727
import Demo from "@components/richtextDemo";
2828

2929
本文介绍了 Loro 中实现的富文本 CRDT 算法,该算法符合 [Peritext] 的无缝富文本协作标准。此外,它可以构建在任何列表 CRDT 算法之上,并将它们转化为富文本 CRDT。
@@ -72,7 +72,7 @@ Eg-walker 是一种新颖的 CRDT 算法,在以下文章中介绍:
7272
7373
Eg-walker 是一种新颖的 CRDT 算法,它结合了 OT 和 CRDT 的优点。它具有 CRDT 的分布式特性,可实现 P2P 协作和数据所有权。此外,它在没有并发编辑的场景中实现了最小的开销,类似于 OT。
7474

75-
import { ReactPlayer } from "../../../components/video";
75+
import { ReactPlayer } from "../../components/video";
7676

7777
<ReactPlayer
7878
url="/static/REG.mp4"

pages/blog/movable-tree.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ image: https://i.ibb.co/nMrgzZJ/DALL-E-2024-01-31-21-29-16-Create-a-black-and-wh
77

88
# 可移动树 CRDTs 和 Loro 的实现
99

10-
import Caption from "../../../components/caption";
11-
import Authors, { Author } from "../../../components/authors";
10+
import Caption from "../../components/caption";
11+
import Authors, { Author } from "../../components/authors";
1212

1313
<Authors date="2024-07-18">
1414
<Author name="Liang Zhao" link="https://github.com/Leeeon233" />

pages/blog/v1.0.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ image: https://i.ibb.co/T1x1bSf/IMG-8191.jpg
88

99
# Loro 1.0
1010

11-
import Authors, { Author } from "../../../components/authors";
11+
import Authors, { Author } from "../../components/authors";
1212

1313
<Author
1414
name="Zixuan Chen"
@@ -253,8 +253,8 @@ console.log(doc.getText("text").toString()); // "Hello, world! Alice!"
253253

254254
### 利用 [Eg-walker](https://arxiv.org/abs/2409.14252) 的潜力
255255

256-
import { ReactPlayer } from "../../../components/video";
257-
import Caption from "../../../components/caption";
256+
import { ReactPlayer } from "../../components/video";
257+
import Caption from "../../components/caption";
258258

259259
<ReactPlayer
260260
url="/static/REG.mp4"

pages/changelog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getPagesUnderRoute } from "nextra/context";
22
import Link from "next/link";
33
import { useState, useEffect } from 'react'
4-
import { ChangelogComponent } from "../../components/changelog"
4+
import { ChangelogComponent } from "../components/changelog"
55
export function ChangelogHeader() {
66
return (
77
<div className="max-w-screen-lg mx-auto pt-4 pb-8 mb-8 border-b border-gray-400 border-opacity-20 text-center">

0 commit comments

Comments
 (0)