Skip to content
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
6 changes: 1 addition & 5 deletions src/components/GuideReadingTime.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import readingTime from 'reading-time';
import { getCollection } from 'astro:content';
import { Icon } from '@astrojs/starlight/components';

export interface Props {
slug: string;
}

const { slug } = Astro.props;
const slug = Astro.url.pathname.slice(1);

const docs = await getCollection('docs');
let guideReadingTime = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Whether you're a seasoned developer or just starting out, contributing to open-s

---

<GuideReadingTime slug="guide/contributing-to-open-source-projects" />
<GuideReadingTime />
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ By the end of this module, you will have the knowledge and skills necessary to c

---

<GuideReadingTime slug="guide/creating-your-own-open-source-project" />
<GuideReadingTime />
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ By the end of this module, you will have valuable insights into financing open-s

---

<GuideReadingTime slug="guide/financing-open-source-projects" />
<GuideReadingTime />
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ In this chapter, we will explore the fundamentals of open source and how you can

---

<GuideReadingTime slug="guide/getting-started-with-open-source" />
<GuideReadingTime />
2 changes: 1 addition & 1 deletion src/content/docs/guide/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Please note that this guide is always evolving as we are adding and modifying co

---

<GuideReadingTime slug="guide" />
<GuideReadingTime />
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ By delving into these challenges and providing practical insights, this module a

---

<GuideReadingTime slug="guide/maintaining-open-source-projects" />
<GuideReadingTime />
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Remember, this module is a toolkit—pick what suits your project. Nothing is ma

---

<GuideReadingTime slug="guide/promoting-open-source-projects" />
<GuideReadingTime />
2 changes: 1 addition & 1 deletion src/content/docs/guide/what-is-open-source/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ To learn more about open source and its impact, explore the following chapters.

---

<GuideReadingTime slug="guide/what-is-open-source" />
<GuideReadingTime />