Skip to content

Commit 4f709fc

Browse files
zxch3nclaude
andcommitted
fix: properly configure redirects and clean up moved files
- Added redirects in next.config.mjs for moved concept pages - Removed old entries from advanced/_meta.js - Deleted the old moved files from advanced folder - Cleaned up shallow-imgs directory from advanced folder This ensures proper URL redirects and avoids duplicate content. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 319c8a0 commit 4f709fc

10 files changed

+21
-8
lines changed

next.config.mjs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,27 @@ export default withNextra({
7272
destination: '/docs/advanced/event_graph_walker',
7373
permanent: true,
7474
},
75+
// Redirects for extracted concept documents
76+
{
77+
source: '/docs/advanced/doc_state_and_oplog',
78+
destination: '/docs/concepts/oplog_docstate',
79+
permanent: true,
80+
},
81+
{
82+
source: '/docs/advanced/op_and_change',
83+
destination: '/docs/concepts/operations_changes',
84+
permanent: true,
85+
},
86+
{
87+
source: '/docs/advanced/event_graph_walker',
88+
destination: '/docs/concepts/event_graph_walker',
89+
permanent: true,
90+
},
91+
{
92+
source: '/docs/advanced/shallow_snapshot',
93+
destination: '/docs/concepts/shallow_snapshots',
94+
permanent: true,
95+
},
7596
]
7697
},
7798
})

pages/docs/advanced/_meta.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
export default {
2-
doc_state_and_oplog: "DocState and OpLog",
32
cid: "Container ID",
4-
shallow_snapshot: "Shallow Snapshot",
53
timestamp: "Storing Timestamps",
6-
op_and_change: "Operations and Change",
74
version_deep_dive: "Loro's Versioning Deep Dive: DAG, Frontiers, and Version Vectors",
8-
event_graph_walker: "Event Graph Walker",
95
undo: "Undo/Redo",
106
import_batch: "Batch Import",
117
inspector: "Loro Inspector"

pages/docs/advanced/doc_state_and_oplog.mdx

Lines changed: 0 additions & 1 deletion
This file was deleted.

pages/docs/advanced/event_graph_walker.mdx

Lines changed: 0 additions & 1 deletion
This file was deleted.

pages/docs/advanced/op_and_change.mdx

Lines changed: 0 additions & 1 deletion
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-182 KB
Binary file not shown.

pages/docs/advanced/shallow_snapshot.mdx

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)