From fc2c9a14397549a88398f76a129904470ce8be8b Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 3 May 2023 12:50:15 +0100 Subject: [PATCH] Remove sponsors and relevant codebase --- .github/workflows/update-sponsors.yml | 43 ------------------- src/data/roadmaps/backend/backend.md | 8 ---- src/data/roadmaps/devops/devops.md | 8 ---- src/data/roadmaps/frontend/frontend.md | 8 ---- src/data/roadmaps/graphql/graphql.md | 8 ---- src/data/roadmaps/nodejs/nodejs.md | 8 ---- src/layouts/BaseLayout.astro | 2 - src/lib/best-pratice.ts | 2 - src/lib/roadmap.ts | 1 - src/pages/[roadmapId]/index.astro | 1 - .../[bestPracticeId]/index.astro | 1 - 11 files changed, 90 deletions(-) delete mode 100644 .github/workflows/update-sponsors.yml diff --git a/.github/workflows/update-sponsors.yml b/.github/workflows/update-sponsors.yml deleted file mode 100644 index b0d02d89a..000000000 --- a/.github/workflows/update-sponsors.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Update Sponsors - -on: - workflow_dispatch: # allow manual run - schedule: - - cron: '0 0 * * *' # run daily at 00:00 UTC - -env: - SPONSOR_SHEET_API_KEY: ${{ secrets.SPONSOR_SHEET_API_KEY }} - SPONSOR_SHEET_ID: ${{ secrets.SPONSOR_SHEET_ID }} - -jobs: - update-sponsors: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 - with: - node-version: 18 - - uses: pnpm/action-setup@v2.2.2 - with: - version: 7.13.4 - - name: Install dependencies - run: | - pnpm install - - name: Update sponsors - run: | - node bin/update-sponsors.cjs - - name: Create PR - uses: peter-evans/create-pull-request@v4 - with: - delete-branch: false - branch: 'update-sponsors' - base: 'master' - labels: | - sponsors - automated pr - reviewers: kamranahmedse - commit-message: 'chore: update sponsors' - title: 'Update Sponsor Banners' - body: | - Updates sponsor banners. - Please review the changes and merge if everything looks good. diff --git a/src/data/roadmaps/backend/backend.md b/src/data/roadmaps/backend/backend.md index 00d1c919c..cec36ddc2 100644 --- a/src/data/roadmaps/backend/backend.md +++ b/src/data/roadmaps/backend/backend.md @@ -11,13 +11,6 @@ tnsBannerLink: 'https://thenewstack.io?utm_source=roadmap.sh&utm_medium=Referral dimensions: width: 968 height: 2840.4 -sponsors: - - url: 'https://www.apollographql.com/tutorials/lift-off-part1?utm_campaign=2023-05-01_odyssey-lift-off-backend&utm_medium=display&utm_source=roadmap' - title: 'Free GraphQL Courses' - imageUrl: 'https://i.imgur.com/pZzroyL.png' - description: 'Level up your knowledge with interactive GraphQL trainings and earn a Graph Developer certification.' - page: 'Backend' - company: 'Apollo' schema: headline: 'Backend Developer Roadmap' description: 'Learn how to become a Backend Developer with this interactive step by step guide in 2023. We also have resources and short descriptions attached to the roadmap items so you can get everything you want to learn in one place.' @@ -69,4 +62,3 @@ tags: - 'main-sitemap' - 'role-roadmap' --- - diff --git a/src/data/roadmaps/devops/devops.md b/src/data/roadmaps/devops/devops.md index 9bdf56907..bbe56e363 100644 --- a/src/data/roadmaps/devops/devops.md +++ b/src/data/roadmaps/devops/devops.md @@ -11,13 +11,6 @@ tnsBannerLink: 'https://thenewstack.io?utm_source=roadmap.sh&utm_medium=Referral dimensions: width: 968 height: 2527.46 -sponsors: - - url: 'https://info.honeycomb.io/observability-engineering-oreilly-book-2022?utm_medium=paid-sponsorship&utm_source=insight-partners&utm_campaign=plg_insightpartners_paidsponsorship' - title: 'Free eBook' - imageUrl: 'https://i.imgur.com/zS1FMNo.jpg' - description: 'Learn how to debug more quickly & get more time to innovate by starting your observability journey' - page: 'DevOps' - company: 'Honeycomb' schema: headline: 'DevOps Roadmap' description: 'Learn to become a DevOps, SRE or get any other operations role with this interactive step by step guide in 2023. We also have resources and short descriptions attached to the roadmap items so you can get everything you want to learn in one place.' @@ -61,4 +54,3 @@ tags: - 'main-sitemap' - 'role-roadmap' --- - diff --git a/src/data/roadmaps/frontend/frontend.md b/src/data/roadmaps/frontend/frontend.md index f8c1decea..32f2ed6d6 100644 --- a/src/data/roadmaps/frontend/frontend.md +++ b/src/data/roadmaps/frontend/frontend.md @@ -11,13 +11,6 @@ tnsBannerLink: 'https://thenewstack.io?utm_source=roadmap.sh&utm_medium=Referral dimensions: width: 968 height: 2822.1 -sponsors: - - url: 'https://info.honeycomb.io/observability-engineering-oreilly-book-2022?utm_medium=paid-sponsorship&utm_source=insight-partners&utm_campaign=plg_insightpartners_paidsponsorship' - title: 'Free eBook' - imageUrl: 'https://i.imgur.com/zS1FMNo.jpg' - description: 'Learn how to debug more quickly & get more time to innovate by starting your observability journey' - page: 'Frontend' - company: 'Honeycomb' schema: headline: 'Frontend Developer Roadmap' description: 'Learn how to become a Frontend Developer with this interactive step by step guide in 2023. We also have resources and short descriptions attached to the roadmap items so you can get everything you want to learn in one place.' @@ -68,4 +61,3 @@ tags: - 'main-sitemap' - 'role-roadmap' --- - diff --git a/src/data/roadmaps/graphql/graphql.md b/src/data/roadmaps/graphql/graphql.md index d681af6ad..bf9bea1c5 100644 --- a/src/data/roadmaps/graphql/graphql.md +++ b/src/data/roadmaps/graphql/graphql.md @@ -11,13 +11,6 @@ hasTopics: true dimensions: width: 968 height: 1669.8 -sponsors: - - url: 'https://www.apollographql.com/tutorials/lift-off-part1?utm_campaign=2023-05-01_odyssey-lift-off-graphql&utm_medium=display&utm_source=roadmap' - title: 'Free GraphQL Courses' - imageUrl: 'https://i.imgur.com/pZzroyL.png' - description: 'Level up your knowledge with interactive GraphQL trainings and earn a Graph Developer certification.' - page: 'GraphQL' - company: 'Apollo' schema: headline: 'GraphQL Roadmap' description: 'Learn how to use GraphQL with this interactive step by step guide in 2023. We also have resources and short descriptions attached to the roadmap items so you can get everything you want to learn in one place.' @@ -53,4 +46,3 @@ tags: - 'main-sitemap' - 'skill-roadmap' --- - diff --git a/src/data/roadmaps/nodejs/nodejs.md b/src/data/roadmaps/nodejs/nodejs.md index 967997bd4..3ea1c9366 100644 --- a/src/data/roadmaps/nodejs/nodejs.md +++ b/src/data/roadmaps/nodejs/nodejs.md @@ -11,13 +11,6 @@ hasTopics: true dimensions: width: 968 height: 2474.06 -sponsors: - - url: 'https://www.apollographql.com/tutorials/lift-off-part1?utm_campaign=2023-05-01_odyssey-lift-off-nodejs&utm_medium=display&utm_source=roadmap' - title: 'Free GraphQL Courses' - imageUrl: 'https://i.imgur.com/pZzroyL.png' - description: 'Level up your knowledge with interactive GraphQL trainings and earn a Graph Developer certification.' - page: 'Node.js' - company: 'Apollo' schema: headline: 'Node.js Roadmap' description: 'Learn Node.js with this interactive step by step guide in 2023. We also have resources and short descriptions attached to the roadmap items so you can get everything you want to learn in one place.' @@ -89,4 +82,3 @@ tags: - 'main-sitemap' - 'skill-roadmap' --- - diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 5224b250e..670729647 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -19,7 +19,6 @@ export interface Props { noIndex?: boolean; canonicalUrl?: string; permalink?: string; - sponsors?: PageSponsorType[]; jsonLd?: Record[]; } @@ -31,7 +30,6 @@ const { noIndex = false, permalink = '', canonicalUrl: givenCanonical = '', - sponsors, jsonLd = [], redirectUrl = '', } = Astro.props; diff --git a/src/lib/best-pratice.ts b/src/lib/best-pratice.ts index 2735966a1..436851676 100644 --- a/src/lib/best-pratice.ts +++ b/src/lib/best-pratice.ts @@ -1,4 +1,3 @@ -import type { PageSponsorType } from '../components/PageSponsor'; import type { MarkdownFileType } from './file'; export interface BestPracticeFrontmatter { @@ -15,7 +14,6 @@ export interface BestPracticeFrontmatter { width: number; height: number; }; - sponsors?: PageSponsorType[]; seo: { title: string; description: string; diff --git a/src/lib/roadmap.ts b/src/lib/roadmap.ts index 34ae65316..d15bba55e 100644 --- a/src/lib/roadmap.ts +++ b/src/lib/roadmap.ts @@ -18,7 +18,6 @@ export interface RoadmapFrontmatter { width: number; height: number; }; - sponsors?: PageSponsorType[]; seo: { title: string; description: string; diff --git a/src/pages/[roadmapId]/index.astro b/src/pages/[roadmapId]/index.astro index 01cc97bcb..943d6107a 100644 --- a/src/pages/[roadmapId]/index.astro +++ b/src/pages/[roadmapId]/index.astro @@ -64,7 +64,6 @@ const contentContributionLink = `https://github.com/kamranahmedse/developer-road briefTitle={roadmapData?.briefTitle} description={roadmapData.seo.description} keywords={roadmapData.seo.keywords} - sponsors={roadmapData.sponsors} noIndex={roadmapData.isUpcoming} jsonLd={jsonLdSchema} > diff --git a/src/pages/best-practices/[bestPracticeId]/index.astro b/src/pages/best-practices/[bestPracticeId]/index.astro index d5daaa743..06addbc36 100644 --- a/src/pages/best-practices/[bestPracticeId]/index.astro +++ b/src/pages/best-practices/[bestPracticeId]/index.astro @@ -56,7 +56,6 @@ const contentContributionLink = `https://github.com/kamranahmedse/developer-road briefTitle={bestPracticeData?.briefTitle} description={bestPracticeData.seo.description} keywords={bestPracticeData.seo.keywords} - sponsors={bestPracticeData.sponsors} noIndex={bestPracticeData.isUpcoming} jsonLd={jsonLdSchema} >