From 85a22599642c571c5bad11ed5d2facad97b1662a Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Sun, 6 Apr 2014 15:34:06 -0400 Subject: [PATCH] add docs about component --- archive/v0.1.3/change-log.html | 5 +++++ archive/v0.1.3/component.json | 2 +- archive/v0.1.3/installation.html | 11 ++++++++++- archive/v0.1.3/mithril.min.zip | Bin 20819 -> 20819 bytes docs/change-log.md | 5 +++++ docs/installation.md | 26 +++++++++++++++++++++++++- docs/layout/component.json | 2 +- 7 files changed, 47 insertions(+), 4 deletions(-) diff --git a/archive/v0.1.3/change-log.html b/archive/v0.1.3/change-log.html index 992906bb..564ee657 100644 --- a/archive/v0.1.3/change-log.html +++ b/archive/v0.1.3/change-log.html @@ -61,6 +61,11 @@

Change Log

v0.1.3 - maintenance

+

News:

+

Bug Fixes:

diff --git a/archive/v0.1.3/mithril.min.zip b/archive/v0.1.3/mithril.min.zip index abb9af890cc6615013b6d644e85816e7fc00c9cb..5d7370e0e36fa6fb8dfbc0aec3250ce87f7a58a5 100644 GIT binary patch delta 45 vcmcb-i1G3wMxFp~W)?065YVgH$n#u|Nv~$}SGn7UKzj0}04os17w8HAH-!!j delta 45 vcmcb-i1G3wMxFp~W)?065J;-p$n#u|DXD7nSGn7UKzj0}04os17w8HAMAZ(} diff --git a/docs/change-log.md b/docs/change-log.md index b6c8cf3b..9ddc7952 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -2,6 +2,11 @@ [v0.1.3](/mithril/archive/v0.1.3) - maintenance +### News: + +- Mithril is now available via [Component](http://component.io) +- There's now an extra low-level optimization hook called a SubtreeDirective, which allows implementing plugins that only create virtual trees if necessary. + ### Bug Fixes: - diff no longer touch the DOM when processing `style` attributes and event handlers diff --git a/docs/installation.md b/docs/installation.md index 1c5fe733..23b2c0fb 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -58,7 +58,7 @@ Then, to use Mithril, point a script tag to the downloaded file: ### Bower -[Bower](http://http://bower.io) is a package manager for [NodeJS](http://nodejs.org/). If you're using NodeJS already or planning on using [Grunt](http://gruntjs.com/) to create a build system, you can use Bower to conveniently keep up-to-date with Mithril versions. +[Bower](http://bower.io) is a package manager for [NodeJS](http://nodejs.org/). If you're using NodeJS already or planning on using [Grunt](http://gruntjs.com/) to create a build system, you can use Bower to conveniently keep up-to-date with Mithril versions. Assuming you have NodeJS installed, you can install Bower by typing this in the command line: @@ -77,3 +77,27 @@ Then, to use Mithril, point a script tag to the downloaded file: ```markup ``` + +--- + +### Component + +[Component](http://component.io) is another package manager for [NodeJS](http://nodejs.org/). If you're using NodeJS already or planning on using [Grunt](http://gruntjs.com/) to create a build system, you can use Component to conveniently keep up-to-date with Mithril versions. + +Assuming you have NodeJS installed, you can install Bower by typing this in the command line: + +``` +npm install -g component +``` + +And you can download Mithril by typing this: + +``` +component install lhorie/mithril@gh-pages +``` + +Then, to use Mithril, point a script tag to the downloaded file: + +```markup + +``` diff --git a/docs/layout/component.json b/docs/layout/component.json index 484349e5..489ab5ce 100644 --- a/docs/layout/component.json +++ b/docs/layout/component.json @@ -2,7 +2,7 @@ "name": "mithril", "description": "A Javascript framework for building brilliant applications", "keywords": ["mvc", "framework"], - "repo": "lhorie/mithril", + "repository": "lhorie/mithril", "main": "mithril.min.js", "scripts": ["mithril.min.js"], "version": "$version",