ohh icon indicating copy to clipboard operation
ohh copied to clipboard

ANSI animations should have common setup / teardown

Open Marak opened this issue 13 years ago • 2 comments

We should probably always call charm.reset() as the setup step for all animations.

We should also probably add a credit line at the end of each animation that has an authors accreditation and a link back to the ohh github repo and main ohh.io site.

Marak avatar Nov 02 '11 20:11 Marak

What about a credits.json:

{
  "repository": "http://github.com/Marak/ohh/",
  "website": "ohh.io",
  "authors": {
    "dancing": {
      "Giovanni Cappellotto": "http://github.com/potomak"
    },
    "flames": {
      "Marak Squires": "http://github.com/marak"
    },
    "outer_space": {
      "Lucas Arduini": "http://github.com/luke-a",
      "Mystery User": "http://github.com/..."
    }
  }
}
  • each author could reference this for main ohh.io site and repo. can be changed without having to change each animation.
  • handy for listing multiple authors
  • could be used with a function that returns author information that new authors could quickly drop into their animation with minimal effort

luk- avatar Nov 02 '11 23:11 luk-

Right idea, but you've got the structure wrong.

We are close to releasing some stuff @nodejitsu that will help manage static content for sites ( like ohh.io ) soon.

The basic idea is that each piece of content gets it's own directory, and inside that directory we may have a page.json file that may contain metadata about the page. We've been refactoring the nodejitsu/docs to do this.

This helper might give you an idea https://github.com/nodejitsu/docs/blob/refactor/lib/helpers.js#L70 ( still needs to be cleaned up ).

Marak avatar Nov 02 '11 23:11 Marak