Skip to content

Releases: CurtisLusmore/ghp

v0.1

30 Jan 20:01
Compare
Choose a tag to compare
v0.1 Pre-release
Pre-release

Description

When requesting any path ($path), ghp will do the following (all file
operations are relative to the root commandline flag):

  1. Check whether $path points to a file, if so serve that file
  2. Check whether $path points to a directory, if so serve $path/index.html
  3. Check whether $path.html points to a file, if so serve that file
  4. Check whether 404.html is a file, if so serve that file as a 404
  5. Serve a 404

Usage

$ ghp -help
Usage of ghp:
  -port int
        The port to serve over (default 8080)
  -root string
        The root directory to serve files from (your GitHub Pages repo) (default ".")
$ ghp -root MyGitHubPages

Notes

  • Haven't tested darwin and linux binaries yet, please raise an issue if you have any problems.