don-patterson / recipes

A simple React site to display our recipes, formatted with Markdown
https://don-patterson.github.io/recipes/
MIT License
1 stars 1 forks source link
github-api markdown react

This page hosts a list of recipes in Markdown format, dynamically pulling the files from this directory of the repo. Adding and modifying entries there does not require a re-deploy of the React site. The site is live here!

It lists files using fetch and the GitHub API repository contents endpoint. Markdown content is fetched from the corresponding raw.githubusercontent site. These details have been separated out into the gh-reader repo.

The markdown content itself is rendered using markedjs. This site could easily be modified to host any sort simple text data, not just recipes. Enjoy!