-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update prerender to include a content manifest csv output #2268
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good just some minor things/questions
script/prerender/contentManifest.ts
Outdated
|
||
const quoteValue = (value?: string) => value ? `"${value.replace(/"/g, '""')}"` : '""'; | ||
|
||
export const renderAndSaveContentManfiest = async( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manifest typo?
: []; | ||
|
||
return [ | ||
[stripIdVersion(id), title, textTitle, book.language, ...urlParams, tocType, toc_target_type ?? ''], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised the real (html) title gets used, but maybe the textTitle is used as the display value in the reports?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I doubt that the html will be used by anything but I threw it in there. the text title is intended to be used by reporting I added the context number in there for the eoc pages
script/prerender/sitemap.ts
Outdated
|
||
export const sitemapPath = (pathName: string) => `/rex/sitemaps/${pathName}.xml`; | ||
export const contentManifestPath = (pathName: string) => `/rex/manifest/${pathName}.xml`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this gets used?
script/prerender/fleet.ts
Outdated
import { SitemapPayload } from './sitemap'; | ||
import { SitemapPayload, renderAndSaveSitemapIndex } from './sitemap'; | ||
import { writeS3ReleaseXmlFile } from './fileUtils'; | ||
import { renderAndSaveContentManfiest } from './contentManifest'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import didn't get renamed
https://openstax.atlassian.net/browse/DISCO-23
adds a csv output of all book toc node info for use by reporting platforms to associate uuids with slugs with titles (for querying and output formatting in reporting dashboards)
also moved sitemap index output to queue generation to avoid loading all the books twice