0.3.0 #356
schickling
announced in
Announcements
0.3.0
#356
Replies: 1 comment
-
Will |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ℹ️ [TLDR] New experimental source and required peer dependency update.
0.3.0
requires use of esbuild0.17.0
. You may need to update peer dependencies if experiencing installation issues.✨ New Source: Remote Files [experimental]
While still focused on content coming from files, you can begin to explore loading content from files not located in your repository.
This works by syncing content from a remote location into your local workspace, and then behaves similarly to the files source. Contentlayer provides the hook (via a
syncFiles
property) for syncing the files, but you must write the code that pulls the files in.Here is simple example with a remote Git repo and documentation.
✨ New helper functions:
defineComputedFields
&defineFields
You can now use a
defineComputedFields
function to leverage the document type, including its static fields. Here's an example:Other Improvements
mdxOptions
now always applies default Contentlayer remark plugins.This discussion was created from the release 0.3.0.
Beta Was this translation helpful? Give feedback.
All reactions