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

Refactor faq #60

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add order field for explicit ordering
  • Loading branch information
versecafe committed Jul 24, 2024
commit 514e4325e565f3e513026abe2329aa2b359b62b9
1 change: 1 addition & 0 deletions src/components/landing/faq.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { getCollection } from "astro:content";
import { markdown } from "@/components/md";

const faqs = await getCollection("faqs");
faqs.sort((a, b) => a.data.order - b.data.order);
const faqContent = await Promise.all(
versecafe marked this conversation as resolved.
Show resolved Hide resolved
faqs.map(async (faq) => {
const { Content } = await faq.render();
Expand Down
1 change: 1 addition & 0 deletions src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const faqs = defineCollection({
type: "content",
schema: z.object({
question: z.string().min(5).max(280),
order: z.number().min(0),
}),
});

Expand Down
1 change: 1 addition & 0 deletions src/content/faqs/hiring-plan.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: What's the hiring plan
order: 2
---

We have 3 new full-time engineers starting soon. Going forward, we would like to
Expand Down
1 change: 1 addition & 0 deletions src/content/faqs/independance.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: How can you be "independent" if you have sponsors
order: 7
---

All sponsorships are in the form of unrestricted donations. Board seats and other forms of influence are not for sale.
1 change: 1 addition & 0 deletions src/content/faqs/mobile-support.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: Will Ladybird work on mobile devices
order: 5
---

We don't have anyone actively working on an Android or iOS port. More effort
Expand Down
1 change: 1 addition & 0 deletions src/content/faqs/no-code-policy.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: What does "No code from other browsers" really mean
order: 3
---

The focus of the Ladybird project is to build a new browser engine from the
Expand Down
1 change: 1 addition & 0 deletions src/content/faqs/number-of-devs.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: How many people are working on the browser today
order: 1
---

We currently have 4 paid full-time engineers working on Ladybird. There is also
Expand Down
1 change: 1 addition & 0 deletions src/content/faqs/sponsor-tiers.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: What are the sponsor tiers
order: 6
---

- **Platinum** USD 100,000
Expand Down
1 change: 1 addition & 0 deletions src/content/faqs/when.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: When is it coming
order: 0
---

We are targeting Summer 2026 for a first Alpha version on Linux and macOS. This
Expand Down
1 change: 1 addition & 0 deletions src/content/faqs/why-cpp.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: Why build a new browser in C++ when safer and more modern languages are available
order: 8
---

Ladybird started as a component of the SerenityOS hobby project, which only
Expand Down
1 change: 1 addition & 0 deletions src/content/faqs/windows-support.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
question: Will Ladybird work on Windows
order: 4
---

We don't have anyone actively working on Windows support, and there are
Expand Down