developer-content icon indicating copy to clipboard operation
developer-content copied to clipboard

Code Import

Open heyAyushh opened this issue 7 months ago • 4 comments

Problem

Solves #170

Summary of Changes

  • added a script to import code files

  • does supports dev and build mode for md and mdx files

  • supports this syntax (ignore square brackets) [```]language file="filepath.ext" ..... [`` `]

  • added pre-build script, before building, import code files and then builds contentlayer project

  • added dev script to import code files at development

  • to import code use yarn code-import

Example

markdown file

code file

heyAyushh avatar Jul 05 '24 18:07 heyAyushh