feature(shields): Add nice!view

* Use two shield system, nice_view, and nice_view_adapter
* Build system fixes for interconnect use.
This commit is contained in:
Nick Winans 2022-09-29 20:11:26 -05:00 committed by GitHub
parent 30e9accc95
commit 3d3c45bc80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 252 additions and 7 deletions

View file

@ -21,13 +21,13 @@ export const toc = [
id: "composite",
level: 2,
},
...Object.values(groupedMetadata(Metadata).interconnects).map(
({ interconnect }) => ({
...Object.values(groupedMetadata(Metadata).interconnects)
.filter((ic) => ic.interconnect !== undefined)
.map(({ interconnect }) => ({
value: `${interconnect.name} Interconnect`,
id: interconnect.id,
level: 3,
})
),
})),
{
value: "Other Hardware",
id: "other-hardware",

View file

@ -41,7 +41,11 @@ function groupedShield(agg: GroupedMetadata, shield: Shield) {
ic.shields.push(shield);
agg.interconnects[id] = ic;
});
shield.exposes?.forEach((id) => {
let ic = agg.interconnects[id] ?? { boards: [], shields: [] };
ic.shields.push(shield);
agg.interconnects[id] = ic;
});
return agg;
}