Giter Site home page Giter Site logo

repoman's Introduction

Why Make This?

I was unable to find a convenient way to preview markdown files before committing to a Github-hosted repo, so I built a file server that renders markdown as similarly to Github as possible.

Overview

The primary purpose of this tool is to serve markdown files over HTTP and render them in a Github-like way. This includes support for relative links and GFM mode. Markdown files (ie: those with the .md extension) are posted to Github's API for translation to html. This helps to ensure that the markdown is rendered as closesly as possible to how Github would do it on their site. Other files are served directly, byte for byte.

Installation

From your terminal, run:

$ go get -u github.com/kevin-cantwell/repoman/cmd/repoman

Usage

Change directories into the root of your repo, then run:

$ repoman

The server is available at localhost:9999.

TODOs

  • Render directory listings with Github styles, just like on Github.
    • Sort files directory-first
  • Auto-render anything named README.md below directory listings if the directory contains such a filename, just like on Github.
  • Fix breadcrumbs to accurately display the current path to a given file.
  • Render code files with syntax highlighting and Github styles, just like on Github.
    • TODO: Support all Prism-supported languages
  • Render binary files and images with Github styles, just like on Github.

repoman's People

Contributors

kevin-cantwell avatar

Stargazers

Lukas N avatar  avatar Heewa Barfchin avatar

Watchers

Heewa Barfchin avatar James Cloos avatar  avatar  avatar

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.