Remove sponsors and relevant codebase

pull/3882/head
Kamran Ahmed 2 years ago
parent b50935ecd6
commit fc2c9a1439
  1. 43
      .github/workflows/update-sponsors.yml
  2. 8
      src/data/roadmaps/backend/backend.md
  3. 8
      src/data/roadmaps/devops/devops.md
  4. 8
      src/data/roadmaps/frontend/frontend.md
  5. 8
      src/data/roadmaps/graphql/graphql.md
  6. 8
      src/data/roadmaps/nodejs/nodejs.md
  7. 2
      src/layouts/BaseLayout.astro
  8. 2
      src/lib/best-pratice.ts
  9. 1
      src/lib/roadmap.ts
  10. 1
      src/pages/[roadmapId]/index.astro
  11. 1
      src/pages/best-practices/[bestPracticeId]/index.astro

@ -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.

@ -11,13 +11,6 @@ tnsBannerLink: 'https://thenewstack.io?utm_source=roadmap.sh&utm_medium=Referral
dimensions: dimensions:
width: 968 width: 968
height: 2840.4 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: schema:
headline: 'Backend Developer Roadmap' 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.' 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' - 'main-sitemap'
- 'role-roadmap' - 'role-roadmap'
--- ---

@ -11,13 +11,6 @@ tnsBannerLink: 'https://thenewstack.io?utm_source=roadmap.sh&utm_medium=Referral
dimensions: dimensions:
width: 968 width: 968
height: 2527.46 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: schema:
headline: 'DevOps Roadmap' 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.' 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' - 'main-sitemap'
- 'role-roadmap' - 'role-roadmap'
--- ---

@ -11,13 +11,6 @@ tnsBannerLink: 'https://thenewstack.io?utm_source=roadmap.sh&utm_medium=Referral
dimensions: dimensions:
width: 968 width: 968
height: 2822.1 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: schema:
headline: 'Frontend Developer Roadmap' 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.' 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' - 'main-sitemap'
- 'role-roadmap' - 'role-roadmap'
--- ---

@ -11,13 +11,6 @@ hasTopics: true
dimensions: dimensions:
width: 968 width: 968
height: 1669.8 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: schema:
headline: 'GraphQL Roadmap' 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.' 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' - 'main-sitemap'
- 'skill-roadmap' - 'skill-roadmap'
--- ---

@ -11,13 +11,6 @@ hasTopics: true
dimensions: dimensions:
width: 968 width: 968
height: 2474.06 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: schema:
headline: 'Node.js Roadmap' 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.' 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' - 'main-sitemap'
- 'skill-roadmap' - 'skill-roadmap'
--- ---

@ -19,7 +19,6 @@ export interface Props {
noIndex?: boolean; noIndex?: boolean;
canonicalUrl?: string; canonicalUrl?: string;
permalink?: string; permalink?: string;
sponsors?: PageSponsorType[];
jsonLd?: Record<string, unknown>[]; jsonLd?: Record<string, unknown>[];
} }
@ -31,7 +30,6 @@ const {
noIndex = false, noIndex = false,
permalink = '', permalink = '',
canonicalUrl: givenCanonical = '', canonicalUrl: givenCanonical = '',
sponsors,
jsonLd = [], jsonLd = [],
redirectUrl = '', redirectUrl = '',
} = Astro.props; } = Astro.props;

@ -1,4 +1,3 @@
import type { PageSponsorType } from '../components/PageSponsor';
import type { MarkdownFileType } from './file'; import type { MarkdownFileType } from './file';
export interface BestPracticeFrontmatter { export interface BestPracticeFrontmatter {
@ -15,7 +14,6 @@ export interface BestPracticeFrontmatter {
width: number; width: number;
height: number; height: number;
}; };
sponsors?: PageSponsorType[];
seo: { seo: {
title: string; title: string;
description: string; description: string;

@ -18,7 +18,6 @@ export interface RoadmapFrontmatter {
width: number; width: number;
height: number; height: number;
}; };
sponsors?: PageSponsorType[];
seo: { seo: {
title: string; title: string;
description: string; description: string;

@ -64,7 +64,6 @@ const contentContributionLink = `https://github.com/kamranahmedse/developer-road
briefTitle={roadmapData?.briefTitle} briefTitle={roadmapData?.briefTitle}
description={roadmapData.seo.description} description={roadmapData.seo.description}
keywords={roadmapData.seo.keywords} keywords={roadmapData.seo.keywords}
sponsors={roadmapData.sponsors}
noIndex={roadmapData.isUpcoming} noIndex={roadmapData.isUpcoming}
jsonLd={jsonLdSchema} jsonLd={jsonLdSchema}
> >

@ -56,7 +56,6 @@ const contentContributionLink = `https://github.com/kamranahmedse/developer-road
briefTitle={bestPracticeData?.briefTitle} briefTitle={bestPracticeData?.briefTitle}
description={bestPracticeData.seo.description} description={bestPracticeData.seo.description}
keywords={bestPracticeData.seo.keywords} keywords={bestPracticeData.seo.keywords}
sponsors={bestPracticeData.sponsors}
noIndex={bestPracticeData.isUpcoming} noIndex={bestPracticeData.isUpcoming}
jsonLd={jsonLdSchema} jsonLd={jsonLdSchema}
> >

Loading…
Cancel
Save