Compare commits

...

2 Commits

Author SHA1 Message Date
codex-bot a4c9349fce Keep retired document pages readable outside the catalog 2026-11-05 22:27:12 +08:00
Zayden-Jung 4c4471c2bd Merge pull request '优先展示 Endorphin,撤下重复的 Endor 导航' (#52) from codex/endorphin-catalog into main
Verify and deploy Tabularium / verify-and-deploy (push) Failing after 10m31s
Reviewed-on: #52
2026-11-05 14:15:15 +00:00
+2 -1
View File
@@ -58,7 +58,8 @@ export default function DocPage({
const [active, setActive] = useState("");
const siblings = docs.filter((d) => d.collection === doc.collection);
const collectionEntry = collectionEntries(docs).find((c) => c.name === doc.collection)!.entry;
// Historical pages remain readable even when their collection is outside the catalog.
const collectionEntry = collectionEntries(docs).find((c) => c.name === doc.collection)?.entry ?? doc;
const index = siblings.findIndex((d) => d.slug === doc.slug);
useEffect(() => {
const observer = new IntersectionObserver(