Skip to content

Commit

Permalink
docs: add Drakula app to Trusted By section (#742)
Browse files Browse the repository at this point in the history
## 📜 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
  • Loading branch information
kirillzyusko authored Dec 19, 2024
1 parent a395182 commit 0ce68ed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
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

0 comments on commit 0ce68ed

Please sign in to comment.