GithubHelp home page GithubHelp logo

timlrx / contentlayer2 Goto Github PK

View Code? Open in Web Editor NEW
46.0 5.0 3.0 63.5 MB

Contentlayer turns your content into data - making it super easy to import MD(X) and CMS content in your app

Home Page: https://contentlayer.dev

License: MIT License

JavaScript 0.11% TypeScript 99.76% Nix 0.10% MDX 0.02%

contentlayer2's Introduction

  Contentlayer Discord

Contentlayer is a content SDK that validates and transforms your content into type-safe JSON data you can easily import into your application's pages.

Video Thumbnail

⚠️ This is a maintained Contentlayer fork. No major breaking changes are expected while discussions are on-going about the project's future.

Getting Started

The video above is a brief look at Contentlayer. Explore further with our example projects, which you can clone to try out locally or in via Gitpod or Stackblitz in your browser.

StackBlitz

Contentlayer Playground

Tutorial & Documentation

Follow the tutorial to get started building your own project. Or explore the full documentation.

Features

  • Live reload on content changes
  • Fast and incremental builds
  • Simple but powerful schema DSL to design your content model (validates your content and generates types)
  • Auto-generated TypeScript types based on your content model (e.g. frontmatter or CMS schema)

Supported Content Sources

Supported Environments

Roadmap

See our docs for more information on our roadmap.

Community

Join our Discord community to get help, suggest new features, and stay up to date on all things Contentlayer.

Who is using Contentlayer?

Are you using Contentlayer? Please add your page (and repo) to the end of the list via a PR. 🙏

contentlayer2's People

Contributors

schickling avatar timlrx avatar mshick avatar tatchi avatar morganfeeney avatar dvlden avatar stefanprobst avatar willin avatar alexgleason avatar fiqryq avatar henriqgoncalvs avatar jahirfiquitiva avatar heykapil avatar mateusfg7 avatar nayaabkhan avatar pmarsceill avatar timoclsn avatar jintak0401 avatar n1xx1 avatar ijakubh avatar axonasif avatar achntj avatar adeecc avatar adrianmg avatar akashrajpurohit avatar akhila-ariyachandra avatar anudeepreddy avatar souavds avatar axeldelafosse avatar bartoszjarocki avatar

Stargazers

Fionn avatar Ka avatar kbkbkb avatar Pierre Teo avatar PxlSyl avatar Brian Anglin avatar Arthur Amon avatar WonkyDD avatar Titane w avatar Steve avatar Bryan Djafer avatar Mathieu Céraline avatar Pieter avatar Andrei Ghenov avatar Aaron Croissette avatar Nico Prananta avatar strn avatar souvik dutta avatar Toni Villena avatar Rodrigo Pombo avatar James Washington avatar Aaron Carpenter, MBA avatar Shea Long avatar  avatar Dima Ivashchuk avatar  avatar John D. Jameson avatar Sebastian Sebald avatar Nguyen Hoang Nhan avatar Karol Majewski avatar Jamie Rolfs avatar  avatar  avatar Fixt avatar cocdeshijie avatar Robert Radoslav avatar Valerius Mattfeld avatar Dan Stroot avatar Atanas Mahony avatar  avatar 抹桥 avatar Lubomir Georgiev (Любомир Георгиев) avatar KAIS avatar Lloyd Richards avatar Nat Welch avatar Royce Mathew avatar

Watchers

 avatar  avatar Shea Long avatar Arthur Amon avatar PxlSyl avatar

contentlayer2's Issues

opentelemetry+exporter-trace-otlp-grpc Error

When installing contentlayer with the plugin next-contentlayer I always encounter this error when trying to run my web application:
Capture

Things I have tried:
-Downgrading to compatible NextJS versions even downgrading to other Contentlayer versions (mostly used 0.3.1)
-Tried installing Contentlayer in a fresh Nextjs project
-Installing the module it says it is having trouble finding, it just acts like it doesn't exist
-Have looked at reddit threads and original Contentlayer issue forums for similar issues and have tried all methods posted (from what I have found) that might fix the issue

What oddly works:
For some reason when I clone this repo: https://github.com/shadcn-ui/taxonomy that uses Contentlayer for its blogs I run into no issues, even building on top of this repository and making other blogs doesn't break anything.

Getting started

New here? Or migrating from Contentlayer?

Please see the following discussion: #3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.