Skip to content

feat: add curriculum-press parser and template for astro-react - #68

Open
ShaunSHamilton wants to merge 1 commit into
mainfrom
feat_curriculum-press-parser
Open

feat: add curriculum-press parser and template for astro-react#68
ShaunSHamilton wants to merge 1 commit into
mainfrom
feat_curriculum-press-parser

Conversation

@ShaunSHamilton

Copy link
Copy Markdown
  1. Go to https://curriculum-press.preview.freecode.camp/
  2. Create project
  3. Copy-pasta template from curriculum-template.json into https://curriculum-press.preview.freecode.camp/
  4. Create lessons
  5. Export project json somewhere in app
  6. Replace load-curriculum.ts with:
import { parseCurriculumPress } from '../lib/curriculum-press';
import project from '../data/my-project.json';

const curriculum = parseCurriculumPress(project, {
  title: 'My Curriculum',
  description: 'Optional description',
});

Alternative: Force file name convention for curriculum content, and add scripts.dev:json , and major refactor to split between working with Markdown or JSON 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant