• Stars
    star
    213
  • Rank 178,798 (Top 4 %)
  • Language
    HTML
  • License
    MIT License
  • Created almost 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Generate a simple HTML page based on a markdown file, that looks like GitHub's stylesheet

Markdown to GitHub style web

Because GitHub's README styling is actually really nice

Background

If you have a little side project, often you might want a simple landing page. The GitHub README rendering is really beautifully done: clean, simple and modern. The official GitHub markdown to HTML API generates the HTML code, but not the stylesheets necessary to make it look nice.

Using your GitHub README as the main landing point works great for open source projects, where your visitors are developers and are familiar with GitHub, as well as you have all the text right where the code, the Issues and PRs are. But for some projects this isn't ideal. I built this project within a few hours for myself to get WalkWithFriends off the ground fast, without investing in building an actual website, or using a bloated website builder.

Some issues you run into when using GitHub as your main landing page

  • Maybe your project isn't actually an open source project, so you can't just host a README on GitHub
  • If you want to link to just the README, you could append #readme to your browser URL (making the URL less pretty), or the visitor has to know they have to scroll down
  • The mobile page of GitHub is still pretty bad, and it only renders the first few lines, as soon as you have a logo and badges on your page, it doesn't render at all, unless the visitor hits View all of README.md
    • Non-tech visitors don't know what's a README.md
    • The button is small, and people don't know what is
    • GitHub renders the GitHub Pulse below, something that doens't make sense for non-tech visitors
    • The URL changes from something nice like github.com/krausefx/fastlane to github.com/krausefx/fastlane/blob/master/README.md, meaning you can either link directly to this page to have a nice content, or you link to the root page and have the downside of the extra buttons
    • Nat announced, that they working on improving the mobile experience, which is great news for everybody :)
  • You can't use your own domain
  • If you use your own domain, you have to use GitHub Pages (which is excellent btw), but then you have to have HTML files ready, which is exactly what this project solves.

Solution

A simple script that converts a markdown (.md) file to a single HTML file, that includes all the HTML and CSS code inline, so you can host it anywhere.

There is no need to use this script if you already convert your markdown file to HTML, you can directly use the stylesheet of this repo.

How it works

This project doesn't actually use the GitHub stylesheet, it's far too complex, and has legal implications.

Instead this project does 2 things:

Resulting you get an HTML file that contains everything needed, so you can host the page on GitHub pages, AWS S3, Google Cloud Storage or anywhere else.

Dependencies

npm install

Usage

node convert.js MyPageTitle

This will read the README.md from your current working directory and output the resulting HTML as README.html in the same directory.

Open tasks

Check out the open issues, in particular code blocks currently don't support syntax highlighting, however that's something that's rather easy to add. For a minimalistic stylesheet we could take the styles from krausefx.com css.

Playground to test

{
  testcode: 1
}
  • Bullet list item 1
  • Bullet list item 2
    • Bullet list item 2.1
    • Bullet list item 2.2

  1. Numbered list item 1
  2. Numbered list item 2

Inline code comments are 100

Quoted texts are more gray and look differently

Bold text is bold and inline links work as well.

Header 1

Header 2

Header 3

Header 4

Header 5

Normal text content again, lorem ipsum

Text 1 Text 2 Text 3
Text 1 Text 2 Text 3
Text 1 Text 2 Text 3

More Repositories

1

TSMessages

๐Ÿ’Œ Easy to use and customizable messages/notifications for iOS ร  la Tweetbot
Objective-C
4,879
star
2

detect.location

An easy way to access the user's iOS location data without actually having access
Objective-C
1,244
star
3

FxLifeSheet

Tracking the key metrics of my life
Ruby
1,051
star
4

what-terminal-is-felix-using

๐Ÿ’ป For everyone who wants to know more about the terminal I use
511
star
5

overkill-for-mac

Stop iTunes from opening when you connect your iPhone
Swift
488
star
6

overkill

Don't let iTunes interrupt your workflow ๐Ÿ’ฅ๐ŸŽต
Ruby
479
star
7

InAppBrowser.com

Showcasing what in-app browsers do under the hood
HTML
469
star
8

WiFiAuth

Because connecting to WiFis is still an unsolved problem ๐Ÿ˜‚
Objective-C
426
star
9

mood

Keeping track of current level of happiness
Ruby
350
star
10

steal.password

Easily get the user's Apple ID password, just by asking
330
star
11

watch.user

Every iOS app you ever gave permission to use your camera can record you any time it runs - without notice
Swift
286
star
12

MajorKey

The fastest iOS app to add a note to your email inbox
Swift
186
star
13

new-mac

List of the things to do on a new Mac
Ruby
179
star
14

notes-exporter

Because GPDR exists for a reason, oh hi Apple
Ruby
162
star
15

krausefx.com

My personal blog
HTML
158
star
16

instapipe

Automatically cross-post your Instagram stories
Ruby
155
star
17

twitter-unfollow

Unfollow everybody on Twitter
Ruby
145
star
18

whereisfelix.today-backend

Yes, that's a thing
JavaScript
127
star
19

howisFelix.today

Yes, that's a thing
HTML
108
star
20

dotfiles

Learning the difference between > and >>
Shell
85
star
21

fastrockets

Visualize fastlane launches as rockets
Ruby
25
star
22

speaking

Upcoming and past speaking engagements
23
star
23

fastlane-ascii-art

๐Ÿƒ Add some fun to your fastlane output.
Ruby
22
star
24

auxcord.org

Have a Sonos system, and are hosting a party? Let's gooo
Ruby
21
star
25

evaluation_report

The evaluation report I wrote about fastlane at university
19
star
26

trollol

GitHub pull requests - done right
14
star
27

fastlane-plugin-load_json

Loads a local JSON file and parses it
Ruby
14
star
28

Three20.swift

Three20 is a Swift library for iOS developers
11
star
29

privacy-share-button

Proof of concept: detect when an iOS user hits the share button on your website
HTML
11
star
30

rScreenshooter

Helps you create screenshots in multiple languages on different device types using UIAutomation.
Ruby
11
star
31

fastlane-plugin-clubmate

Print the Club Mate logo in your build output
Ruby
10
star
32

brewfile

Some of the brews I use
Ruby
9
star
33

trips

My upcoming trips
Ruby
9
star
34

fastlane-tunes

๐ŸŽถ Play music using fastlane, because you can.
Ruby
9
star
35

telegram-advent-calendar

A simple to use Telegram Advent Calendar
Ruby
8
star
36

fastlane-plugin-ya_tu_sabes

Ya tu sabes.
Ruby
8
star
37

felix.fitness

Public fitness dashboard
7
star
38

certs

Certificates for [email protected] certs
7
star
39

tweet_collection_manager

Managing all the tweets, like a management manager
Ruby
6
star
40

fastlane-plugin-no_u

no u
Ruby
6
star
41

wealthfront-tax-info-exporter

Export all transactions (including dividends) details into a CSV file
Ruby
5
star
42

doesitrain.today

Ruby
5
star
43

resume

About me
5
star
44

engagement-enhancer

Not hitting your OKRs? Not getting enough engagement? Fix it with one little trick
HTML
4
star
45

krausefx-gem

Ruby
4
star
46

set-times

A collection of set-times for various venues
HTML
4
star
47

bot

@seriouskrausefx
Ruby
4
star
48

gwg

Geringwertige Wirtschaftsgรผter finden
CSS
2
star
49

license_checker

Ruby
2
star
50

light-phone-note-to-self

A simple script to fetch the most recent Notes from your Light Phone and send them to yourself via Email
Ruby
1
star
51

whichsideoftheriver.in

HTML
1
star