Skip to content

Commit 0ce68ed

Browse files
authored
docs: add Drakula app to Trusted By section (#742)
## 📜 Description Drakula also trusts us, so let's add it to the "Trusted by" section. ## 💡 Motivation and Context I got a consent to add this app to landing page from @hirbod 🙂 ## 📢 Changelog <!-- High level overview of important changes --> <!-- For example: fixed status bar manipulation; added new types declarations; --> <!-- If your changes don't affect one of platform/language below - then remove this platform/language --> ### Docs - added Drakula app on landing page; - wait for hydration before taking screenshots. ## 🤔 How Has This Been Tested? Tested on localhost:3000. ## 📸 Screenshots (if appropriate): <img width="1383" alt="image" src="https://github.com/user-attachments/assets/1521d120-9d19-4ee3-9fed-a635487d43f7" /> ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
1 parent a395182 commit 0ce68ed

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

cspell.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@
129129
"libc",
130130
"chatwoot",
131131
"obytes",
132-
"kitsu"
132+
"kitsu",
133+
"drakula"
133134
],
134135
"ignorePaths": [
135136
"node_modules",

docs/__tests__/screenshot.spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ const sitemapPath = "./build/sitemap.xml";
1111
const stylesheetPath = "./__tests__/screenshot.css";
1212
const stylesheet = fs.readFileSync(stylesheetPath).toString();
1313

14+
function waitForDocusaurusHydration() {
15+
return document.documentElement.dataset.hasHydrated === "true";
16+
}
17+
1418
function screenshotPathname(pathname: string) {
1519
test(`pathname ${pathname}`, async ({ page }) => {
1620
const url = siteUrl + pathname;
@@ -19,7 +23,7 @@ function screenshotPathname(pathname: string) {
1923
// Wait for hydration, requires Docusaurus v2.4.3+
2024
// Docusaurus adds a <html data-has-hydrated="true"> once hydrated
2125
// See https://github.com/facebook/docusaurus/pull/9256
22-
// await page.waitForFunction(waitForDocusaurusHydration);
26+
await page.waitForFunction(waitForDocusaurusHydration);
2327
await page.addStyleTag({ content: stylesheet });
2428
await argosScreenshot(page, pathnameToArgosName(pathname));
2529
});

docs/src/pages/index.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ const trustedBy = [
101101
link: "https://github.com/hummingbird-me/kitsu-mobile",
102102
name: "Kitsu",
103103
},
104+
{
105+
img: "https://play-lh.googleusercontent.com/KsXljWMtBXw131OcLT44ByxwznfdgM1a-2gZVYNBzPBKz9gqOCxEIhC83IpS35OIZQc=w200-h480-rw",
106+
alt: "Drakula: Watch Videos App",
107+
link: "https://play.google.com/store/apps/details?id=app.drakula",
108+
name: "Drakula",
109+
},
104110
];
105111

106112
function TrustedBy(): JSX.Element {

0 commit comments

Comments
 (0)