Mercurial > piecrust2
view docs/config.yml @ 792:58ebf50235a5
routing: Simplify how routes are defined.
* No more declaring the type of route parameters -- the sources and generators
already know what type each parameter is supposed to be.
* Same for variadic parameters -- we know already.
* Update cache version to force a clear reload of the config.
* Update tests.
TODO: simplify code in the `Route` class to use source or generator transparently.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 07 Sep 2016 08:58:41 -0700 |
parents | fc761964e1a7 |
children | 922092c6eb8a |
line wrap: on
line source
# Basic stuff. site: title: PieCrust author: Ludovic Chabant tagline: Freshly baked sites & documents since 2006 description: A static website generator and flat-file CMS pretty_urls: true sources: docs: type: ordered data_endpoint: site.docs default_layout: doc api: type: ordered data_endpoint: site.api default_layout: api routes: - url: /docs/%path:slug% source: docs func: docurl(slug) - url: /api/%path:slug% source: api func: apiurl(slug) baker: assets_dirs: assets: # Ignore stuff that will get concatenated into the main JS file. ignore: js/piecrust # This is 2015, come on Markdown. markdown: extensions: abbr, fenced_code, footnotes, smart_strong, codehilite, smarty extension_configs: codehilite: css_class: highlight guess_lang: false # Need Foundation for CSS/JS. Install with Bower. sass: load_paths: - bower_components/foundation/scss # Using the Sass compiler directly now, but here's how it would look # like if we were using the whole Compass machinery instead. compass: enable: false options: --css-dir %out_dir%/css --generated-images-path %out_dir%/img