All Projects → nicolas-van → easy-markdown-to-github-pages

nicolas-van / easy-markdown-to-github-pages

Licence: MIT license
Convert Markdown files in Github to a full website using Github Pages

Projects that are alternatives of or similar to easy-markdown-to-github-pages

Vanhiupun.github.io
🏖️ Vanhiupun's Awesome Site ==> another theme for elegant writers with modern flat style and beautiful night/dark mode.
Stars: ✭ 57 (-28.75%)
Mutual labels:  github-pages
chicio.github.io
👻 Fabrizio Duroni (me 😄) personal website. Created using GatsbyJS, Styled Components, Storybook, Typescript, tsParticles, GitHub pages, Github Actions, Upptime.
Stars: ✭ 20 (-75%)
Mutual labels:  github-pages
csharp-docs-generator
An action that generates html documentation for C# programs to use for GitHub pages.
Stars: ✭ 21 (-73.75%)
Mutual labels:  github-pages
static-export-template
A template to automatically convert Pluto notebooks to an HTML website with GitHub Pages. Demo page:
Stars: ✭ 70 (-12.5%)
Mutual labels:  github-pages
jr.mitou.org
未踏ジュニアの公式Webサイトです! YAML ファイルで更新できます 🛠💨
Stars: ✭ 17 (-78.75%)
Mutual labels:  github-pages
houbb.github.io
🧀The blog for github pages.
Stars: ✭ 20 (-75%)
Mutual labels:  github-pages
tech-seo-crawler
Build a small, 3 domain internet using Github pages and Wikipedia and construct a crawler to crawl, render, and index.
Stars: ✭ 57 (-28.75%)
Mutual labels:  github-pages
mkdocs-jekyll
The Material theme from MkDocs provided as a Jekyll template, optimized for GitHub Pages
Stars: ✭ 55 (-31.25%)
Mutual labels:  github-pages
wowchemy-hugo-themes
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, easily build with blocks! 创建在线课程,学术简历或初创网站。#OpenScience
Stars: ✭ 6,891 (+8513.75%)
Mutual labels:  github-pages
aliquam
Jekyll theme
Stars: ✭ 21 (-73.75%)
Mutual labels:  github-pages
pehapkari.cz-old
Website of Czech and Slovak PHP Community
Stars: ✭ 31 (-61.25%)
Mutual labels:  github-pages
obsidian-publish-mkdocs
A Template to Publish Obsidian/Foam Notes on Github Pages (uses MkDocs)
Stars: ✭ 219 (+173.75%)
Mutual labels:  github-pages
Zeusro.github.io
我的个人博客想写什么就写什么~
Stars: ✭ 13 (-83.75%)
Mutual labels:  github-pages
SupportDocs
Generate help centers for your iOS apps. Hosted by GitHub and always up-to-date.
Stars: ✭ 135 (+68.75%)
Mutual labels:  github-pages
vue3-md-blog
✍️ Minimal config Vue3 + Markdown blog engine
Stars: ✭ 53 (-33.75%)
Mutual labels:  github-pages
jekyll-avatar
A Jekyll plugin for rendering GitHub avatars
Stars: ✭ 79 (-1.25%)
Mutual labels:  github-pages
jasond94.github.io
Personal website:
Stars: ✭ 67 (-16.25%)
Mutual labels:  github-pages
actions-publish-gh-pages
🍣 A GitHub Action to publish static website using GitHub Pages
Stars: ✭ 12 (-85%)
Mutual labels:  github-pages
Onassis
The Onassis Theme for Jekyll
Stars: ✭ 22 (-72.5%)
Mutual labels:  github-pages
thelounge.github.io
🌍 ‎ The official website for The Lounge
Stars: ✭ 33 (-58.75%)
Mutual labels:  github-pages

Easy Markdown to Github Pages

Introduction

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.

  • You don't need to use the command line or anything other than your browser.
  • It doesn't require any knowledge in Jekyll.
  • It's completely compatible with any bunch of markdown files you already have in any existing repository without any modification to those files. That includes the basic README.md almost all repositories contain.
  • The markdown files will remain just as readable and usable in Github than in your website.

In fact this guide uses the same configuration and can be read both in Github and in Github Pages, at your preference:

Step by step instructions

Determine the repository where you want to activate Github Pages

You can of course create a new repository if you want.

Create the _config.yml file

That 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 a better handling of Markdown files.

Activate Github Pages in your repository configuration

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 your website:

Usage guide

  • Any markdown file in your repository will display in your Github Pages website. You just have to use the same path to access it and replace the .md extension by .html.
  • To make links between your Markdown files just use a relative path to the other Markdown file. The configuration you copy pasted in your _config.yml provides a plugin to convert those URLs. So your Markdown files will have correct links both in Github and Github Pages.
  • The index page of your website can be a index.md file or a README.md file. If both exists the index.md file has priority.
  • You should be able to use any Github Flavored Markdown.

Known differences between Github and Github Pages

  • 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 behavior, so you'll have to braces your links with the []() syntax.

Recipes

Since the purpose of this guide is to demonstrate how to publish multiple Markdown files as a website but I don't have much more to say I will propose to you some delicious recipes instead:

Other Github Pages related projects

I'm a fan of Github Pages for the possibilities it offers to anyone to publish a website for free. I have multiple projects that could be of interest if that's your case too:

Contributing

See the Contribution Guide.

License

See the License File.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].