Skip to content
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

docs: add Drakula app to Trusted By section #742

Merged
merged 4 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
"libc",
"chatwoot",
"obytes",
"kitsu"
"kitsu",
"drakula"
],
"ignorePaths": [
"node_modules",
Expand Down
6 changes: 5 additions & 1 deletion docs/__tests__/screenshot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,7 +23,7 @@ function screenshotPathname(pathname: string) {
// Wait for hydration, requires Docusaurus v2.4.3+
// Docusaurus adds a <html data-has-hydrated="true"> 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));
});
Expand Down
6 changes: 6 additions & 0 deletions docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading