Giter VIP home page Giter VIP logo

Preview Github README.md

The preview mimics repo homepage in Github.

Requirements

  • PHP 5.3+
  • curl enabled
  • Internet connection to send POST request to Github API

How to use

You have project that need to be published onto Github and you're not sure about how the README.md will render in your repository's homepage.

Using CLI

$ ./preview_github_readme README.md

or you can pipe it to browser:

$ ./preview_github_readme README.md | browser

In daily use, it's worth to alias this long script's name:

alias gmd='/path/to/cloned-repo/preview_github_readme'

Using webserver

Assuming your local development is accessible via http://localhost/ and you're cloning this preview scripts into the docroot of your localhost. Now you can preview your local README.md:

http://localhost/preview_github_readme.php

or you can use PHP built-in server:

php -S localhost:8080

and open above url with specified port.

How it Works

preview_github_readme.php looks for readme file and if the file exists, send it to Github Markdown's API, otherwise lookup README.md, Readme.md, or readme.md file in root directory.

The markup and stylesheet for previewing are copied from Github.

ดูตัวอย่าง Github README.md # Infothailan Aukcje internet for site! Aukcje อินเทอร์เน็ตสำหรับ stroAu ของคุณ

Info Thailand's Projects

atom icon atom

The hackable text editor :atom:

github icon github

ดู ธีม ตัวอย่าง Github README.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.