Skip to content

Commit 4f2fbde

Browse files
committed
docs: πŸ“ update coupon
1 parent ef26523 commit 4f2fbde

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

β€Ždocs/docusaurus.config.tsβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { themes as prismThemes } from 'prism-react-renderer';
22
import type { Config } from '@docusaurus/types';
33
import type * as Preset from '@docusaurus/preset-classic';
4+
import { courseLink, workshopLink } from './links';
45

56
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
67

@@ -68,11 +69,11 @@ const config: Config = {
6869
},
6970
{
7071
label: 'πŸ“Ί Video Course',
71-
href: 'https://courses.marmicode.io/courses/pragmatic-angular-testing?utm_source=angular-vitest-mini-workshop&utm_medium=sidenav&coupon=NGDE_KITCHEN_SPECIAL',
72+
href: courseLink,
7273
},
7374
{
7475
label: 'πŸ‘¨πŸ»β€πŸ« 3-Day Workshop',
75-
href: 'https://luma.com/27f85isx?coupon=NGDE_KITCHEN_SPECIAL',
76+
href: workshopLink,
7677
},
7778
],
7879
},

β€Ždocs/links.tsβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const todayCoupon = 'NGPOLAND_PERIOGI';
2+
export const courseLink = `https://courses.marmicode.io/courses/pragmatic-angular-testing?utm_source=cookbook&utm_medium=sidenav&coupon=${todayCoupon}`;
3+
export const workshopLink = `https://luma.com/27f85isx?coupon=${todayCoupon}`;

β€Ždocs/sidebars.tsβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';
2+
import { courseLink, workshopLink } from './links';
23

34
const sidebars: SidebarsConfig = {
45
instructions: [
@@ -11,12 +12,12 @@ const sidebars: SidebarsConfig = {
1112
{
1213
type: 'link',
1314
label: 'πŸ‘¨πŸ»β€πŸ« 3-Day Workshop (30% off)',
14-
href: 'https://luma.com/27f85isx?coupon=NGDE_KITCHEN_SPECIAL',
15+
href: workshopLink,
1516
},
1617
{
1718
type: 'link',
1819
label: 'πŸ“Ί Video Course (60% off)',
19-
href: 'https://courses.marmicode.io/courses/pragmatic-angular-testing?utm_source=angular-vitest-mini-workshop&utm_medium=sidenav&coupon=NGDE_KITCHEN_SPECIAL',
20+
href: courseLink,
2021
},
2122
],
2223
},

0 commit comments

Comments
Β (0)