Contribute: Content
Write series, chapters, or articles that make STEM accessible for learners in SEA.
Adding content
Recommended: Use the CLI Wizard
We have a built-in tool that handles file creation and configuration for you. Run this command in your terminal:
pnpm run compose
(Make sure you have pnpm installed)
If you prefer to work manually, follow the steps below.
New series
-
Create
src/data/series/<series-slug>.ts. ExportseriesSlug,titleanddescription(each{ en, bn }), andchapters. Copycontributing-to-open-source-a-practical-guide.tsas a template. -
In
src/data/series/index.ts: add one import and one line to theseriesListarray:{ slug, title, description, chapters }. Done—hub and landing pages appear automatically.
Chapters in an existing series
-
Edit
src/data/series/<series-slug>.tsand append a new entry to thechaptersarray withslug,title,titleBn,description,descriptionBn. Use kebab-case forslug. -
Chapter body content: create a file at
src/content/series/<series-slug>/<chapter-slug>.mdx. This will automatically replace the placeholder on the chapter page.
Updating content
- Series or chapter metadata (title, description,
order): edit the corresponding file in
src/data/series/. Reorder by changing the order of items in thechaptersarray. - Series title or description (EN/BN): edit
the
titleordescriptionexport in that series’ file undersrc/data/series/. - Chapter body: once MDX/content is wired,
edit the matching
.mdxfile undersrc/content/series/<series-slug>/.
Fork the repo, make your changes, and open a PR. For large new series, an issue or discussion first can help align with the roadmap.