{"repo":"inadeqtfuturs/next-mdx-relations","free":true,"listed":false,"github":"https://github.com/inadeqtfuturs/next-mdx-relations","clone":"git clone https://github.com/inadeqtfuturs/next-mdx-relations.git","description":"🌿 a set of utilities for generating and creating relations between pages in nextjs using md/x","language":"TypeScript","stars":13,"topics":["nextjs","mdx","mdx-js"],"license":null,"category":"saas-starters-boilerplates","readme_excerpt":"next-mdx-relations i have markdown. i want to generate relations between them. next-mdx-relations is a light set of utilities for generation relational data between markdown files. it is built to work with next-mdx-remote , which it uses as a peer dependency. next-mdx-relations abstracts away much of the boilerplate you would write to spin up an md/x powered next.js site, while providing control over how your md/x is processed. Please Note : This software is in early beta and the api is still prone to change. Please check readme between versions. toc 1. getting started 2. example 3. api 4. typescript 5. future getting started 1. Add package and peer dependencies 2. Create a next-mdx-relations.config.js in your project (preferably the root, but it can be anywhere) 3. Use any of the exported functions in getStaticPaths or getStaticProps . example I'm building a blog with a collection of posts written in markdown: api next-mdx-relations takes a config object and returns utilities for generating static content and relationships between them. Most of the api for actually generating the pages is what you would write yourself if you were spinning up a blog or statically generated next.js site. What next-mdx-relations provides is a suite of utilities that process your data, overrides to filesystem-based routing, and allows you to intervene at critical points in the content generation process. Behind the scenes, we do the following: 1. get all of the files from your content folder 2. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/inadeqtfuturs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/inadeqtfuturs/next-mdx-relations/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}