How to Convert GitHub Markdown Files to a Simple Website

undefined or mostly null.
Search for a command to run...

undefined or mostly null.
No comments yet. Be the first to comment.
In this series, I will share articles related to creating, contributing to, maintaining, and sustaining open source projects.
Hey! This article is going to be very short and unstyled. My goal here is to introduce this feature I find very helpful to those who haven't heard of it and probably fill up the SEO space for those searching for it. GitHub recently introduced a new f...
I wrote this article in December 2023 for an interview screening task and thought to share it today while clearing my drafts for some new content prep, just in case it's still helpful to someone out t

Hey! I’m super excited to announce that I have joined the Secretariat Team at the Digital Public Goods Alliance. In this role, I leverage my passion for open source and technical background to assess DPG applications, provide technical support and ad...

Creative designs have become more important than ever in the software ecosystem today with many industries and end-consumers having several use cases that require them to offer design editing solutions to either designers or end-consumers. Every busi...

With the rise of artificial intelligence (AI) and large language models (LLMs), it has become easier to solve different human problems than ever before. Even consumers with little to no technical expertise can benefit from AI. Humans can now automate...

Some years ago, GitHub introduced the new Profile README feature that allowed GitHub users to pin a markdown file on their profile using a special repository named after their GitHub username. Since then, developers have used this file as a quick por...

This little guide demonstrates how to turn any Github repository with a bunch of Markdown files into a simple website using Github Pages and Jekyll.
README.md almost all repositories contain.You can, of course, create a new repository if you want.
_.config.yml fileThat file should be created on the root of your repository. Here is some content to copy-paste in it:
plugins:
- jekyll-relative-links
relative_links:
enabled: true
collections: true
include:
- CONTRIBUTING.md
- README.md
- LICENSE.md
- COPYING.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- ISSUE_TEMPLATE.md
- PULL_REQUEST_TEMPLATE.md
It's basically just a few tuning of GitHub Pages default configuration to have better handling of Markdown files.
On the GitHub page of your project go into Settings > Options > Github Pages:

In the Source option, select master branch then Save:

You must also choose a theme:

That's it! Now you can just use the link provided by GitHub to access you website:
Your site is published at https://bolajiayodeji.github.io/xxxxxx/
.md extension
by .html.So if you want to display your README.md file, you have to enter the URL as
README.html
_config.yml provides
a plugin to convert those URLs.So your Markdown files will have correct links both in GitHub and GitHub Pages.
index.md file or a README.md file.
If both exist the index.md file has priority.There are no automatic links with GitHub Pages. The GitHub Markdown renderer can automatically detect a simple copy-pasted link and make it a clickable link.
GitHub Pages doesn't propose a feature to reproduce that behaviour, so you'll
have to braces your links with the []()syntax.