diff --git a/site/src/components/Landing.astro b/site/src/components/Landing.astro index f12a95f..f86f475 100644 --- a/site/src/components/Landing.astro +++ b/site/src/components/Landing.astro @@ -1,13 +1,18 @@ --- -import { objects, initialObject, childrenOf, treePrefix, objectSignature, interfaceSignature } from '../lib/landing-demo'; -import { href } from '../lib/book'; +import { objects, initialObject, childrenOf, treePrefix, objectSignature, interfaceSignature, interfaceReference, initialCollapsedPaths, initialVisibleObjects } from '../lib/landing-demo'; +import { href, bookHref } from '../lib/book'; import '../styles/landing.css'; import BoxFrame from './BoxFrame.astro'; import TreePrefix from './TreePrefix.astro'; +import TreeGlyphs from './TreeGlyphs.astro'; import { trunkPath, stemWidth, branchY, branchThickness } from '../lib/landing-glyphs.mjs'; -const trunkLength = (objects.findLastIndex((object) => object.depth === 2) - 1) * 24 + branchY + branchThickness / 2; +const initialPaths = new Set(initialVisibleObjects.map((object) => object.path)); +const collapsed = new Set(initialCollapsedPaths); +const articles = objects.filter((object) => object.body); +const trunkLength = (initialVisibleObjects.findLastIndex((object) => object.depth === 2) - 1) * 24 + branchY + branchThickness / 2; --- -
+
+