Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce basic support for nanoc environment: - nanoc command is updated to include --env argument - config are overriden using the active environment if any - unless define in environment, output_dir is {{output_dir}}/{{env_name}} Setting environments is done in nanoc.yaml using the `environments` property. Example usage is: ``` output_dir: output environments: default: &default base_url: ... ... development: <<: *default base_url: ... production: <<: *default base_url: ... yet_another_env: <<: *default base_url: ... output_dir: build ``` Selecting working environment can be done: - using environment variable `NANOC_ENVIRONMENT` - using `nanoc --env=[<value>]`
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters