ghshard

Helper for crystal shards that are hosted in github.

Features

Installation

As a standalone executable

$ git clone https://github.com/bcardiff/ghshard.git
$ cd ghshard
$ shards build
# keep ./bin/ghshard executable where you can find it

As a development dependency

# shard.yml
development_dependencies:
  ghshard:
    github: bcardiff/ghshard
$ crystal deps
# use ./bin/ghshard

Usage

You favorite shard is read for a proper presentation to the world.

$ cd path/to/shard
$ ./bin/ghshard docs:publish

It will create the gh-pages branch and submit the result of crystal docs to /api/0.1.0.

You can add redirections:

$ ./bin/ghshard docs:redirect 0.1 0.1.0
$ ./bin/ghshard docs:redirect latest 0.1

When you are ready to release 0.1.1 you will need to:

$ ./bin/ghshard docs:publish
$ ./bin/ghshard docs:redirect 0.1 0.1.1

When you are ready to release 0.2.0 you will need to:

$ ./bin/ghshard docs:publish
$ ./bin/ghshard docs:redirect 0.2 0.2.0
$ ./bin/ghshard docs:redirect latest 0.2

Check the Lorem sample project.

Roadmap

$ ghshard bump
current: 0.1.9
  a. patch 0.1.10
  b. minor 0.2.0
  c. mayor 1.0.0
choose [a-c]: ...

Contributing

  1. Fork it ( https://github.com/bcardiff/ghshard/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors