diff --git a/cspell.json b/cspell.json index 6b46e2b671..fe62f723db 100644 --- a/cspell.json +++ b/cspell.json @@ -129,7 +129,8 @@ "libc", "chatwoot", "obytes", - "kitsu" + "kitsu", + "drakula" ], "ignorePaths": [ "node_modules", diff --git a/docs/__tests__/screenshot.spec.ts b/docs/__tests__/screenshot.spec.ts index e4225a4db2..42faf85867 100644 --- a/docs/__tests__/screenshot.spec.ts +++ b/docs/__tests__/screenshot.spec.ts @@ -11,6 +11,10 @@ const sitemapPath = "./build/sitemap.xml"; const stylesheetPath = "./__tests__/screenshot.css"; const stylesheet = fs.readFileSync(stylesheetPath).toString(); +function waitForDocusaurusHydration() { + return document.documentElement.dataset.hasHydrated === "true"; +} + function screenshotPathname(pathname: string) { test(`pathname ${pathname}`, async ({ page }) => { const url = siteUrl + pathname; @@ -19,7 +23,7 @@ function screenshotPathname(pathname: string) { // Wait for hydration, requires Docusaurus v2.4.3+ // Docusaurus adds a once hydrated // See https://github.com/facebook/docusaurus/pull/9256 - // await page.waitForFunction(waitForDocusaurusHydration); + await page.waitForFunction(waitForDocusaurusHydration); await page.addStyleTag({ content: stylesheet }); await argosScreenshot(page, pathnameToArgosName(pathname)); }); diff --git a/docs/src/pages/index.tsx b/docs/src/pages/index.tsx index 26b82973a8..4a7e6725ee 100644 --- a/docs/src/pages/index.tsx +++ b/docs/src/pages/index.tsx @@ -101,6 +101,12 @@ const trustedBy = [ link: "https://github.com/hummingbird-me/kitsu-mobile", name: "Kitsu", }, + { + img: "https://play-lh.googleusercontent.com/KsXljWMtBXw131OcLT44ByxwznfdgM1a-2gZVYNBzPBKz9gqOCxEIhC83IpS35OIZQc=w200-h480-rw", + alt: "Drakula: Watch Videos App", + link: "https://play.google.com/store/apps/details?id=app.drakula", + name: "Drakula", + }, ]; function TrustedBy(): JSX.Element {