Skip to content

Commit

Permalink
Correcting linked ref text
Browse files Browse the repository at this point in the history
  • Loading branch information
dvargas92495 committed Sep 27, 2022
1 parent 0ee68e0 commit e310cf2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions lambdas/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -845,12 +845,6 @@ export const renderHtmlFromPage = ({
() => converter({ content }),
(e) => `<div>Failed to render page: ${p}</div><div>${e.message}</div>`
);
console.log(
"REFERENCES FOR",
p,
"INCLUDE",
JSON.stringify(references, null, 4)
);
const preHydratedHtml = config.template
.replace(
/\${PAGE_CONTENT}/g,
Expand Down Expand Up @@ -955,7 +949,6 @@ export const processSiteData = async ({
`resolving ${pageNames.length} pages ${new Date().toLocaleTimeString()}`
);
info(`Here are some: ${pageNames.slice(0, 5)}`);
console.log("References", references);
const blockInfoCache: Parameters<
typeof renderHtmlFromPage
>[0]["blockInfoCache"] = {};
Expand All @@ -967,7 +960,6 @@ export const processSiteData = async ({
};
content.forEach(forEach);
});
console.log("blockInfoCache", blockInfoCache);
const linkedReferencesCache: Parameters<
typeof renderHtmlFromPage
>[0]["linkedReferencesCache"] = {};
Expand All @@ -976,7 +968,6 @@ export const processSiteData = async ({
.forEach((node) => {
blockInfoCache[node.refUid] = blockInfoCache[node.refUid] || node.refText;
});
console.log("blockInfoCache", blockInfoCache);
references
.filter(({ refTitle }) => !!refTitle)
.forEach((node) => {
Expand All @@ -992,7 +983,6 @@ export const processSiteData = async ({
},
];
});
console.log("linkedReferencesCache", linkedReferencesCache);

const parseInline = await getParseInline();
pageNames.map((p) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/StaticSiteDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ export const getDeployBody = (pageUid: string) => {
node: formatRoamNodes([
{ ...ref, text: ref?.title || ref?.text || "" },
])[0],
refText: node?.text,
refText: node?.string,
refTitle: node?.title,
refUid: node?.uid,
})
Expand Down

0 comments on commit e310cf2

Please sign in to comment.