The configuration file for a Nift project is stored in
Contents
Syntax
To use a command, enter
Project Configuration Files
Each Nift project has its own configuration file located at
{ "config": { "content-dir": "content/", "content-ext": ".content", "output-dir": "site/", "output-ext": ".html", "script-ext": ".f", "default-template": "template/page.template", "backup-scripts": true, "lolcat-default": false, "lolcat-cmd": "nift lolcat-cc -f", "build-threads": -1, "paginate-threads": -1, "incremental-mode": "modified", "terminal": "normal", "unix-editor": "subl -n", "windows-editor": "notepad", "root-branch": "master", "output-branch": "master" } }
Global Configuration File
Each system you have Nift installed on will have its own global configuration file, you can check the location of the global configuration file when starting
{ "config": { "lolcat-default": true, "lolcat-cmd": "lolcat-cc -f", "browser": "chromium-browser --new-window --incognito", "terminal": "*nix", "unix-editor": "subl -n", "windows-editor": "notepad" } }
Configurable
The table below contains information about what can be configured in the configuration files:
Name | Description | Valid Values | Global | Project |
---|---|---|---|---|
path to content directory | ||||
extension used for content files | ||||
path to output directory | ||||
extension used for build files | ||||
extension used for pre/post build scripts | ||||
default template file to use when tracking new pages | ||||
backup scripts before running them | ||||
max number of threads to use when building ($-x \rightarrow x*no\_cores$) | ||||
max number of threads to use with pagination ($-x \rightarrow x*no\_cores$) | ||||
choose between incremental mode using modification times or file hashes | ||||
whether to use lolcat for output | ||||
quoted command to use when running lolcat | eg. |
|||
mostly just to change output background colour for Powershell on Windows | ||||
specifies which text editor to use on *nix machines | eg. |
|||
specifies which text editor to use on Windows machines | eg. |
|||
Name | Description | Valid Values | Global | Project |