From 9eeaf3424b399de504d58369002c5d8df6890287 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 19 Jul 2015 23:37:46 +0200 Subject: [PATCH] init --- .gitignore | 2 + bin/carew | 1 + composer.json | 25 ++ composer.lock | 710 +++++++++++++++++++++++++++++++++ config.yml | 11 + pages/about.md | 14 + pages/index.md | 16 + posts/2013-01-05-welcome.md | 16 + posts/2013-09-14-your-title.md | 5 + 9 files changed, 800 insertions(+) create mode 100644 .gitignore create mode 120000 bin/carew create mode 100644 composer.json create mode 100644 composer.lock create mode 100644 config.yml create mode 100644 pages/about.md create mode 100644 pages/index.md create mode 100644 posts/2013-01-05-welcome.md create mode 100644 posts/2013-09-14-your-title.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b2dcc8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vendor/ +/web/ diff --git a/bin/carew b/bin/carew new file mode 120000 index 0000000..39ef316 --- /dev/null +++ b/bin/carew @@ -0,0 +1 @@ +../vendor/carew/carew/bin/carew \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..945fb42 --- /dev/null +++ b/composer.json @@ -0,0 +1,25 @@ +{ + "name" : "carew/boilerplate", + "description" : "Carew boilerplate", + "license" : "MIT", + "homepage" : "http://carew.github.com/", + "keywords" : ["carew"], + "authors" : [ + { + "name" : "Grégoire Pineau", + "email" : "lyrixx@lyrixx.info" + } + ], + "require": { + "carew/carew": "^2.1", + "carew/theme-bootstrap": "^2.1" + }, + "config": { + "bin-dir": "bin" + }, + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..8fa9043 --- /dev/null +++ b/composer.lock @@ -0,0 +1,710 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "621220a4323d440dc231780f11c16805", + "packages": [ + { + "name": "carew/carew", + "version": "v2.1.0", + "source": { + "type": "git", + "url": "https://github.com/carew/carew.git", + "reference": "5034c90017f73f3d1a1b59f2e0d20d186d954dee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/carew/carew/zipball/5034c90017f73f3d1a1b59f2e0d20d186d954dee", + "reference": "5034c90017f73f3d1a1b59f2e0d20d186d954dee", + "shasum": "" + }, + "require": { + "erusev/parsedown": "~1.1", + "pimple/pimple": "~1.0", + "psr/log": "~1.0", + "symfony/console": "~2.5", + "symfony/event-dispatcher": "~2.3", + "symfony/filesystem": "~2.3", + "symfony/finder": "~2.3", + "symfony/process": "~2.3", + "symfony/yaml": "~2.3", + "twig/twig": "~1.15", + "yohang/htmltools": "~0.1" + }, + "require-dev": { + "carew/theme-bootstrap": "~2.1", + "lyrixx/my-theme-bootstrap": "~2.0", + "symfony/css-selector": "~2.3", + "symfony/dom-crawler": "~2.3" + }, + "bin": [ + "bin/carew" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-0": { + "Carew": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + }, + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + } + ], + "description": "The tiny static site generator.", + "homepage": "http://carew.github.com/", + "keywords": [ + "carew", + "static-site-generator" + ], + "time": "2015-04-23 10:15:40" + }, + { + "name": "carew/theme-bootstrap", + "version": "v2.1.0", + "source": { + "type": "git", + "url": "https://github.com/carew/theme-bootstrap.git", + "reference": "7a46274797cfbdfbfc9efbc757d79ffd90a1cf3d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/carew/theme-bootstrap/zipball/7a46274797cfbdfbfc9efbc757d79ffd90a1cf3d", + "reference": "7a46274797cfbdfbfc9efbc757d79ffd90a1cf3d", + "shasum": "" + }, + "require": { + "carew/carew": "~2.0@dev" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + } + ], + "description": "Twitter bootstrap theme for Carew", + "time": "2014-11-21 18:12:27" + }, + { + "name": "erusev/parsedown", + "version": "1.5.2", + "source": { + "type": "git", + "url": "https://github.com/erusev/parsedown.git", + "reference": "468d1e3da8bde049debee7f484a4f9c4b26b41ba" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/468d1e3da8bde049debee7f484a4f9c4b26b41ba", + "reference": "468d1e3da8bde049debee7f484a4f9c4b26b41ba", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-0": { + "Parsedown": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Emanuil Rusev", + "email": "hello@erusev.com", + "homepage": "http://erusev.com" + } + ], + "description": "Parser for Markdown.", + "homepage": "http://parsedown.org", + "keywords": [ + "markdown", + "parser" + ], + "time": "2015-03-18 18:44:57" + }, + { + "name": "pimple/pimple", + "version": "v1.1.1", + "source": { + "type": "git", + "url": "https://github.com/silexphp/Pimple.git", + "reference": "2019c145fe393923f3441b23f29bbdfaa5c58c4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/silexphp/Pimple/zipball/2019c145fe393923f3441b23f29bbdfaa5c58c4d", + "reference": "2019c145fe393923f3441b23f29bbdfaa5c58c4d", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-0": { + "Pimple": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Pimple is a simple Dependency Injection Container for PHP 5.3", + "homepage": "http://pimple.sensiolabs.org", + "keywords": [ + "container", + "dependency injection" + ], + "time": "2013-11-22 08:30:29" + }, + { + "name": "psr/log", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b", + "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-0": { + "Psr\\Log\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "time": "2012-12-21 11:40:51" + }, + { + "name": "symfony/console", + "version": "v2.6.6", + "target-dir": "Symfony/Component/Console", + "source": { + "type": "git", + "url": "https://github.com/symfony/Console.git", + "reference": "5b91dc4ed5eb08553f57f6df04c4730a73992667" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/Console/zipball/5b91dc4ed5eb08553f57f6df04c4730a73992667", + "reference": "5b91dc4ed5eb08553f57f6df04c4730a73992667", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/event-dispatcher": "~2.1", + "symfony/phpunit-bridge": "~2.7", + "symfony/process": "~2.1" + }, + "suggest": { + "psr/log": "For using the console logger", + "symfony/event-dispatcher": "", + "symfony/process": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\Console\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony Console Component", + "homepage": "http://symfony.com", + "time": "2015-03-30 15:54:10" + }, + { + "name": "symfony/css-selector", + "version": "v2.6.6", + "target-dir": "Symfony/Component/CssSelector", + "source": { + "type": "git", + "url": "https://github.com/symfony/CssSelector.git", + "reference": "db2c48df9658423a8c168d89f7b971b73d3d74a4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/CssSelector/zipball/db2c48df9658423a8c168d89f7b971b73d3d74a4", + "reference": "db2c48df9658423a8c168d89f7b971b73d3d74a4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "symfony/phpunit-bridge": "~2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\CssSelector\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony CssSelector Component", + "homepage": "http://symfony.com", + "time": "2015-03-22 16:55:57" + }, + { + "name": "symfony/event-dispatcher", + "version": "v2.6.6", + "target-dir": "Symfony/Component/EventDispatcher", + "source": { + "type": "git", + "url": "https://github.com/symfony/EventDispatcher.git", + "reference": "70f7c8478739ad21e3deef0d977b38c77f1fb284" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/EventDispatcher/zipball/70f7c8478739ad21e3deef0d977b38c77f1fb284", + "reference": "70f7c8478739ad21e3deef0d977b38c77f1fb284", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "~2.0,>=2.0.5", + "symfony/dependency-injection": "~2.6", + "symfony/expression-language": "~2.6", + "symfony/phpunit-bridge": "~2.7", + "symfony/stopwatch": "~2.3" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony EventDispatcher Component", + "homepage": "http://symfony.com", + "time": "2015-03-13 17:37:22" + }, + { + "name": "symfony/filesystem", + "version": "v2.6.6", + "target-dir": "Symfony/Component/Filesystem", + "source": { + "type": "git", + "url": "https://github.com/symfony/Filesystem.git", + "reference": "4983964b3693e4f13449cb3800c64a9112c301b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/Filesystem/zipball/4983964b3693e4f13449cb3800c64a9112c301b4", + "reference": "4983964b3693e4f13449cb3800c64a9112c301b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "symfony/phpunit-bridge": "~2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\Filesystem\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony Filesystem Component", + "homepage": "http://symfony.com", + "time": "2015-03-22 16:55:57" + }, + { + "name": "symfony/finder", + "version": "v2.6.6", + "target-dir": "Symfony/Component/Finder", + "source": { + "type": "git", + "url": "https://github.com/symfony/Finder.git", + "reference": "5dbe2e73a580618f5b4880fda93406eed25de251" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/Finder/zipball/5dbe2e73a580618f5b4880fda93406eed25de251", + "reference": "5dbe2e73a580618f5b4880fda93406eed25de251", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "symfony/phpunit-bridge": "~2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\Finder\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony Finder Component", + "homepage": "http://symfony.com", + "time": "2015-03-30 15:54:10" + }, + { + "name": "symfony/process", + "version": "v2.6.6", + "target-dir": "Symfony/Component/Process", + "source": { + "type": "git", + "url": "https://github.com/symfony/Process.git", + "reference": "a8bebaec1a9dc6cde53e0250e32917579b0be552" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/Process/zipball/a8bebaec1a9dc6cde53e0250e32917579b0be552", + "reference": "a8bebaec1a9dc6cde53e0250e32917579b0be552", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "symfony/phpunit-bridge": "~2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\Process\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony Process Component", + "homepage": "http://symfony.com", + "time": "2015-03-30 15:54:10" + }, + { + "name": "symfony/yaml", + "version": "v2.6.6", + "target-dir": "Symfony/Component/Yaml", + "source": { + "type": "git", + "url": "https://github.com/symfony/Yaml.git", + "reference": "174f009ed36379a801109955fc5a71a49fe62dd4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/Yaml/zipball/174f009ed36379a801109955fc5a71a49fe62dd4", + "reference": "174f009ed36379a801109955fc5a71a49fe62dd4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "symfony/phpunit-bridge": "~2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-0": { + "Symfony\\Component\\Yaml\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + } + ], + "description": "Symfony Yaml Component", + "homepage": "http://symfony.com", + "time": "2015-03-30 15:54:10" + }, + { + "name": "twig/twig", + "version": "v1.18.1", + "source": { + "type": "git", + "url": "https://github.com/twigphp/Twig.git", + "reference": "9f70492f44398e276d1b81c1b43adfe6751c7b7f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/9f70492f44398e276d1b81c1b43adfe6751c7b7f", + "reference": "9f70492f44398e276d1b81c1b43adfe6751c7b7f", + "shasum": "" + }, + "require": { + "php": ">=5.2.7" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.18-dev" + } + }, + "autoload": { + "psr-0": { + "Twig_": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com", + "homepage": "http://fabien.potencier.org", + "role": "Lead Developer" + }, + { + "name": "Armin Ronacher", + "email": "armin.ronacher@active-4.com", + "role": "Project Founder" + }, + { + "name": "Twig Team", + "homepage": "http://twig.sensiolabs.org/contributors", + "role": "Contributors" + } + ], + "description": "Twig, the flexible, fast, and secure template language for PHP", + "homepage": "http://twig.sensiolabs.org", + "keywords": [ + "templating" + ], + "time": "2015-04-19 08:30:27" + }, + { + "name": "yohang/htmltools", + "version": "0.1.0", + "source": { + "type": "git", + "url": "https://github.com/yohang/HtmlTools.git", + "reference": "cd4dbaacc65453d4ce0b190286f8128ea2033131" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/yohang/HtmlTools/zipball/cd4dbaacc65453d4ce0b190286f8128ea2033131", + "reference": "cd4dbaacc65453d4ce0b190286f8128ea2033131", + "shasum": "" + }, + "require": { + "php": ">5.3.3", + "symfony/css-selector": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.1.x-dev" + } + }, + "autoload": { + "psr-0": { + "HtmlTools": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Some helpers to work with HTML", + "time": "2013-08-25 01:07:22" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..ec18b41 --- /dev/null +++ b/config.yml @@ -0,0 +1,11 @@ +site: + title: My new site + description: Is awesome + author_name: You name here + author_email: Your email here + author_url: Your url here + url_absolute: http://exemple.com + +engine: + themes: + - %dir%/vendor/carew/theme-bootstrap diff --git a/pages/about.md b/pages/about.md new file mode 100644 index 0000000..250b96a --- /dev/null +++ b/pages/about.md @@ -0,0 +1,14 @@ +--- +title: How to build my website ? +tags: demo +navigations: main +--- + +Hello +----- + +Just run: + + $ bin/carew build + +For more information visit [the documentation](http://carew.github.com) diff --git a/pages/index.md b/pages/index.md new file mode 100644 index 0000000..a62a67f --- /dev/null +++ b/pages/index.md @@ -0,0 +1,16 @@ +--- +title: Welcome +subtitle: to your new blog +navigations: main +--- + +## Posts + +{{ render_documents(paginate(carew.posts|reverse)) }} + +## Pages + +{{ render_documents(paginate(carew.pages)) }} + + +Or you can {{ link('tags', 'browse all tags') }}. diff --git a/posts/2013-01-05-welcome.md b/posts/2013-01-05-welcome.md new file mode 100644 index 0000000..be1447e --- /dev/null +++ b/posts/2013-01-05-welcome.md @@ -0,0 +1,16 @@ +--- +title: How to create a new blog post ? +layout: post +tags: + - demo + - another tag +--- + +How to build post +----------------- + +Just run: + + $ bin/carew generate:post "Your title" + +For more information visit [the documentation](http://carew.github.com) diff --git a/posts/2013-09-14-your-title.md b/posts/2013-09-14-your-title.md new file mode 100644 index 0000000..e84f98d --- /dev/null +++ b/posts/2013-09-14-your-title.md @@ -0,0 +1,5 @@ +--- +layout: post +title: Your title +--- +