

This type of Build Step lets you tell CodeKit to do that. Sometimes, you need to compile some files before others. You can use this to do literally anything, including running node.js scripts, uploading your site to a server, and more. This type of step lets you define a custom Bash script or AppleScript that CodeKit should run. There are two types to choose from: "Run Script" Build Step Adding New StepsĬlick the giant "+" button to add a step. Before I go submit a pull request, it'd be nice to know.
Codekit index.hbs code#
This does not apply to the "Process Remaining" step, which cannot be renamed. /page1/, etc: static pages which will use page.hbs or page-page1.hbs as needed /blog-post-whatever/, etc: blog posts which will use post.hbs The only thing I foresee being an issue is that only index.hbs (as far as I know) is passed the posts template variable (see code on GitHub here). You can rename a step by clicking its title. To change the order, drag a step up or down. Each step completes before the next one starts. Files set to Copy are copied to their output locations, then any applicable Hooks are run. When it runs, CodeKit processes every file that has an Output Action other than Ignore.įor files set to Process, CodeKit runs any built-in processing and then runs any Hooks that apply to that file. It exists for all Projects and cannot be removed. If you want to change the layout or style of your book, chances are that you will have to modify this template a little bit. The markdown files are processed to html and then injected in that template. Initially, there's only one: The "Process Remaining" Step index.hbs is the handlebars template that is used to render the book. This window shows each step CodeKit will perform when building your project. Opening The Build AreaĬlick the bottom Command Button in the main window: You get to define the steps and, optionally, add custom ones that can make CodeKit do anything. A Build is just a set of steps that CodeKit performs to process everything in your Project at once.
