Skip to content

Commit 5fd4800

Browse files
fiji-flocaugnerLeoMcA
authored
feat(curriculum): integrate MDN Curriculum (#10433)
Integrate the [MDN Curriculum](https://github.com/mdn/curriculum) repo. --------- Co-authored-by: Claas Augner <[email protected]> Co-authored-by: Leo McArdle <[email protected]>
1 parent 7678024 commit 5fd4800

File tree

84 files changed

+3418
-108
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+3418
-108
lines changed

Diff for: .github/workflows/prod-build.yml

+9
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ jobs:
8989
lfs: true
9090
token: ${{ secrets.MDN_STUDIO_PAT }}
9191

92+
- uses: actions/checkout@v4
93+
if: ${{ ! vars.SKIP_BUILD }}
94+
with:
95+
repository: mdn/curriculum
96+
path: mdn/curriculum
97+
9298
# Our usecase is a bit complicated. When the cron schedule runs this workflow,
9399
# we rely on the env vars defined at the top of the file. But if it's a manual
94100
# trigger we rely on the inputs and only the inputs. That way, the user can
@@ -278,6 +284,9 @@ jobs:
278284
# Build the blog
279285
yarn build:blog
280286
287+
# Build the curriculum
288+
yarn build:curriculum
289+
281290
# Generate whatsdeployed files.
282291
yarn tool whatsdeployed --output client/build/_whatsdeployed/code.json
283292
yarn tool whatsdeployed $CONTENT_ROOT --output client/build/_whatsdeployed/content.json

Diff for: .github/workflows/stage-build.yml

+10
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ jobs:
8989
lfs: true
9090
token: ${{ secrets.MDN_STUDIO_PAT }}
9191

92+
- uses: actions/checkout@v4
93+
if: ${{ ! vars.SKIP_BUILD }}
94+
with:
95+
repository: mdn/curriculum
96+
path: mdn/curriculum
97+
9298
# Our usecase is a bit complicated. When the cron schedule runs this workflow,
9399
# we rely on the env vars defined at the top of the file. But if it's a manual
94100
# trigger we rely on the inputs and only the inputs. That way, the user can
@@ -169,6 +175,7 @@ jobs:
169175
CONTENT_TRANSLATED_ROOT: ${{ github.workspace }}/mdn/translated-content/files
170176
CONTRIBUTOR_SPOTLIGHT_ROOT: ${{ github.workspace }}/mdn/mdn-contributor-spotlight/contributors
171177
BLOG_ROOT: ${{ github.workspace }}/mdn/mdn-studio/content/posts
178+
CURRICULUM_ROOT: ${{ github.workspace }}/mdn/curriculum
172179
BASE_URL: "https://developer.allizom.org"
173180

174181
# The default for this environment variable is geared for writers
@@ -271,6 +278,9 @@ jobs:
271278
# Build the blog
272279
yarn build:blog
273280
281+
# Build the curriculum
282+
yarn build:curriculum
283+
274284
# Generate whatsdeployed files.
275285
yarn tool whatsdeployed --output client/build/_whatsdeployed/code.json
276286
yarn tool whatsdeployed $CONTENT_ROOT --output client/build/_whatsdeployed/content.json

Diff for: .github/workflows/xyz-build.yml

+9
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ jobs:
6060
lfs: true
6161
token: ${{ secrets.MDN_STUDIO_PAT }}
6262

63+
- uses: actions/checkout@v4
64+
if: ${{ ! vars.SKIP_BUILD }}
65+
with:
66+
repository: mdn/curriculum
67+
path: mdn/curriculum
68+
6369
- uses: actions/checkout@v4
6470
if: ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }}
6571
with:
@@ -190,6 +196,9 @@ jobs:
190196
# Build the blog
191197
yarn build:blog
192198
199+
# Build the curriculum
200+
yarn build:curriculum
201+
193202
# Generate whatsdeployed files.
194203
yarn tool whatsdeployed --output client/build/_whatsdeployed/code.json
195204
yarn tool whatsdeployed $CONTENT_ROOT --output client/build/_whatsdeployed/content.json

Diff for: build/build-curriculum.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env node
2+
import { buildCurriculum } from "./curriculum.js";
3+
4+
buildCurriculum({ verbose: true });

0 commit comments

Comments
 (0)