Skip to content

Using generate_exclude.rb Script

unknown edited this page Apr 23, 2015 · 10 revisions

Due to the large amount of articles in our documentation, Jekyll builds the site quite slowly.

Normally, using the exclude property in the _config.yml file, Jekyll can exclude some of the folders.

exclude: [README.md,Gemfile,Gemfile.lock,deploy.sh,LICENSE,SlugLog.log,UrlMappings-and-conversion-logs/*,temp_exclude_result.tmp,generate_exlude.rb]

Using the generate_exclude.rb script (located in the ajax-docs repository) you can generate the array for the exclude property.

Example 1: Generating an exclude array that will instruct Jekyll to build only the general-information and controls/button folders

ruby generate_exclude.rb "general-information" "controls/button"

The script will:

  1. Checkout the _config.yml file;
Clone this wiki locally