From 9b3e58c561071b8d714ed9b99a8eb6c9477f7649 Mon Sep 17 00:00:00 2001
From: "adam j. sontag"
Date: Thu, 22 Mar 2012 19:52:31 -0400
Subject: [PATCH 1/5] rename "How To" to "Frequently Asked Questions"
---
Rules | 2 +-
content/{how-to => faq}/add_keyboard_navigation.md | 0
content/faq/dex.md | 3 +++
content/{how-to => faq}/enable_the_back_button.md | 0
content/how-to/dex.md | 3 ---
5 files changed, 4 insertions(+), 4 deletions(-)
rename content/{how-to => faq}/add_keyboard_navigation.md (100%)
create mode 100644 content/faq/dex.md
rename content/{how-to => faq}/enable_the_back_button.md (100%)
delete mode 100644 content/how-to/dex.md
diff --git a/Rules b/Rules
index abab2928..e0bf6441 100644
--- a/Rules
+++ b/Rules
@@ -93,7 +93,7 @@ preprocess do
"plugins",
"performance",
"code-organization",
- "how-to"
+ "faq"
]
@chapters = {}
diff --git a/content/how-to/add_keyboard_navigation.md b/content/faq/add_keyboard_navigation.md
similarity index 100%
rename from content/how-to/add_keyboard_navigation.md
rename to content/faq/add_keyboard_navigation.md
diff --git a/content/faq/dex.md b/content/faq/dex.md
new file mode 100644
index 00000000..5ec6b9fd
--- /dev/null
+++ b/content/faq/dex.md
@@ -0,0 +1,3 @@
+---
+title: Frequently Asked Questions
+---
diff --git a/content/how-to/enable_the_back_button.md b/content/faq/enable_the_back_button.md
similarity index 100%
rename from content/how-to/enable_the_back_button.md
rename to content/faq/enable_the_back_button.md
diff --git a/content/how-to/dex.md b/content/how-to/dex.md
deleted file mode 100644
index 1cff22e6..00000000
--- a/content/how-to/dex.md
+++ /dev/null
@@ -1,3 +0,0 @@
----
-title: How To
----
From 5e33b0ef7f74a1577e84578cea59564e3937cd59 Mon Sep 17 00:00:00 2001
From: "adam j. sontag"
Date: Thu, 22 Mar 2012 20:44:56 -0400
Subject: [PATCH 2/5] Rename "Getting Started" to "About jQuery"
---
content/{getting-started => about-jquery}/dex.md | 3 +--
.../{getting-started => about-jquery}/downloading-jquery.md | 0
content/{getting-started => about-jquery}/how-jquery-works.md | 0
3 files changed, 1 insertion(+), 2 deletions(-)
rename content/{getting-started => about-jquery}/dex.md (82%)
rename content/{getting-started => about-jquery}/downloading-jquery.md (100%)
rename content/{getting-started => about-jquery}/how-jquery-works.md (100%)
diff --git a/content/getting-started/dex.md b/content/about-jquery/dex.md
similarity index 82%
rename from content/getting-started/dex.md
rename to content/about-jquery/dex.md
index 82a87e24..14d2d19c 100644
--- a/content/getting-started/dex.md
+++ b/content/about-jquery/dex.md
@@ -1,6 +1,5 @@
---
-title: Getting Started
-index: true
+title: About jQuery
---
Getting started with jQuery can be easy or challenging, depending on
diff --git a/content/getting-started/downloading-jquery.md b/content/about-jquery/downloading-jquery.md
similarity index 100%
rename from content/getting-started/downloading-jquery.md
rename to content/about-jquery/downloading-jquery.md
diff --git a/content/getting-started/how-jquery-works.md b/content/about-jquery/how-jquery-works.md
similarity index 100%
rename from content/getting-started/how-jquery-works.md
rename to content/about-jquery/how-jquery-works.md
From fd302739a26d95993a1ada4d9d49111eba442d83 Mon Sep 17 00:00:00 2001
From: "adam j. sontag"
Date: Fri, 23 Mar 2012 01:27:56 -0400
Subject: [PATCH 3/5] rework nanoc and node build processes to use a config
file (order.yaml) to control category and article listing order. resolves #87
---
.gitignore | 1 +
Rules | 43 +++++++++-----------
nanoc2wordpress/nanoc.js | 13 +++++-
nanoc2wordpress/wordpress.js | 12 ++++--
order.yaml | 77 ++++++++++++++++++++++++++++++++++++
5 files changed, 117 insertions(+), 29 deletions(-)
create mode 100644 order.yaml
diff --git a/.gitignore b/.gitignore
index 036562e4..85d6f0bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
output/
tmp/*
tmp
+order.json
.DS_Store
diff --git a/Rules b/Rules
index e0bf6441..51442c89 100644
--- a/Rules
+++ b/Rules
@@ -83,25 +83,18 @@ end
Nanoc3::Filter.register 'CodeBlocks', :code_blocks
preprocess do
- @chapterOrder = [
- "getting-started",
- "javascript-101",
- "using-jquery-core",
- "events",
- "effects",
- "ajax",
- "plugins",
- "performance",
- "code-organization",
- "faq"
- ]
-
+ @order = YAML.load(File.read("order.yaml"))
+ @chapter_articles = {}
+ @chapter_order = @order.map{ |chapter|
+ @chapter_articles[ chapter.keys.first ] = chapter[ chapter.keys.first ]
+ chapter.keys.first
+ }
@chapters = {}
-
@github_users = {
"jquery" => nil
}
+ File.open("order.json", "w") {|f| f.write @order.to_json }
@items.each do |item|
item[:chapter] = item[:filename].split('/')[1]
item[:chapter_title] = item[:chapter].gsub(/-/, " ").upcase
@@ -118,25 +111,25 @@ preprocess do
@github_users[ username ] = JSON.parse(request.body_str)
end
+ @grouped_items = @items.group_by {|item| item[:chapter]}
- @groupedItems = @items.group_by {|item| item[:chapter]}
-
- @orderedItems = []
+ @ordered_items = []
- @chapterOrder.each do |folder|
- myitems = @groupedItems[ folder ]
+ @chapter_order.each do |folder|
@chapters [ folder] = {}
- @chapters[ folder ][ :items ] = @groupedItems[folder].sort_by {|i| i[:section] || 0 }
- @orderedItems = @orderedItems + @chapters[ folder ][ :items ]
+ @chapters[ folder ][ :items ] = @grouped_items[folder].sort_by {|i|
+ p @chapter_articles[ i[ :chapter ] ].index( p i.identifier.split('/')[2] ) || 0
+ @chapter_articles[ i[ :chapter ] ].index( p i.identifier.split('/')[2] ) || 0
+ }
+ @ordered_items = @ordered_items + @chapters[ folder ][ :items ]
@chapters[ folder ][ :title ] = folder.gsub(/-/, " ").upcase
@chapters[ folder ][ :folder ] = folder
end
-
@items.each do |item|
- i = item[:ordinal_index] = @orderedItems.index(item)
+ i = item[:ordinal_index] = @ordered_items.index(item)
if i
- item[:next_item] = @orderedItems[ i+1 ]
- item[:previous_item] = @orderedItems[ i-1 ]
+ item[:next_item] = @ordered_items[ i+1 ]
+ item[:previous_item] = @ordered_items[ i-1 ]
end
item[:github_user] = @github_users[ item[:github] ]
end
diff --git a/nanoc2wordpress/nanoc.js b/nanoc2wordpress/nanoc.js
index a2f4374f..12964d34 100644
--- a/nanoc2wordpress/nanoc.js
+++ b/nanoc2wordpress/nanoc.js
@@ -6,6 +6,7 @@ fs = require("fs"),
jsdom = require( "jsdom" ),
_ = require( "underscore" ),
config = require("./config"),
+order = require("../order"),
OUTPUT_DIR = config.git_dir + "/output",
META_REGEX = /<\/script>(\\n)*/,
@@ -13,7 +14,15 @@ META_REGEX = /<\/script>(\\n)*/,
site = {
articles: [],
categories: []
-};
+},
+
+category_articles = {},
+category_order = order.map(function( articles ) {
+ for ( var a in articles ) {
+ category_articles[ a ] = articles[a];
+ return a;
+ }
+});
_.mixin(require('underscore.string').exports());
@@ -68,6 +77,7 @@ function processCategories( continuation ) {
_.extend( cat, JSON.parse(meta.textContent) )
cat.contents = _.trim(cat.contents.replace( META_REGEX, ""));
cat.slug = cat.chapter;
+ cat.menu_order = category_order.indexOf( cat.chapter );
}
});
continuation();
@@ -95,6 +105,7 @@ function processArticles( continuation ) {
_.extend( file, JSON.parse(meta.textContent) )
file.contents = _.trim(file.contents.replace( META_REGEX, ""));
file.slug = file.filename.replace( "/"+file.chapter+ "/", "").replace("/index.html", "");
+ file.menu_order = category_articles[ file.chapter ] ? category_articles[ file.chapter ].indexOf( file.slug ) : -1;
}
});
continuation();
diff --git a/nanoc2wordpress/wordpress.js b/nanoc2wordpress/wordpress.js
index 70876a35..2aee9985 100644
--- a/nanoc2wordpress/wordpress.js
+++ b/nanoc2wordpress/wordpress.js
@@ -40,7 +40,12 @@ var wordpress = module.exports = {
function(){
var group = this.group();
pages.forEach(function( page, index ) {
- wordpress.createPage( page, group() )
+ // Only allow pages that are in the order.yaml sitemap
+ if ( ~page.menu_order ) {
+ wordpress.createPage( page, group() )
+ } else {
+ group()(null);
+ }
});
},
function(){
@@ -54,8 +59,9 @@ var wordpress = module.exports = {
localDate = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds(),
gmtDate = date.getUTCFullYear() + "-" + (date.getUTCMonth() + 1) + "-" + date.getUTCDate() + " " + date.getUTCHours() + ":" + date.getUTCMinutes() + ":" + date.getUTCSeconds();
db.query(
- "INSERT INTO `" + postsTable + "` " + "SET `post_type` = 'page', `post_author` = ?, `post_name` = ?, `post_title` = ?, `post_content` = ?, " + "`post_date` = ?, `post_date_gmt` = ?, `post_modified` = ?, `post_modified_gmt` = ?, `comment_status` = ?, `ping_status` = ?",
- [1, page.slug, page.title, page.contents, localDate, gmtDate, localDate, gmtDate, "closed", "closed"],
+ "INSERT INTO `" + postsTable + "` " + "SET `post_type` = 'page', `post_author` = ?, `post_name` = ?, `post_title` = ?, `post_content` = ?, `menu_order` = ?, "
+ + "`post_date` = ?, `post_date_gmt` = ?, `post_modified` = ?, `post_modified_gmt` = ?, `comment_status` = ?, `ping_status` = ?",
+ [1, page.slug, page.title, page.contents, page.menu_order, localDate, gmtDate, localDate, gmtDate, "closed", "closed"],
this
);
},
diff --git a/order.yaml b/order.yaml
new file mode 100644
index 00000000..bd032630
--- /dev/null
+++ b/order.yaml
@@ -0,0 +1,77 @@
+- about-jquery:
+ - downloading-jquery
+ - how-jquery-works
+- javascript-101:
+ - running-code
+ - syntax-basics
+ - types
+ - operators
+ - conditional-code
+ - loops
+ - reserved-words
+ - arrays
+ - objects
+ - functions
+ - testing-type
+ - this-keyword
+ - scope
+ - closures
+- using-jquery-core:
+ - dollar-object-vs-function
+ - document-ready
+ - avoid-conflicts-other-libraries
+ - attributes
+ - selecting-elements
+ - working-with-selections
+ - manipulating-elements
+ - traversing
+ - css-styling-dimensions
+ - data-methods
+ - feature-browser-detection
+ - utility-methods
+- events:
+ - events-to-elements
+ - inside-event-handling-function
+ - event-helpers
+ - event-extensions
+ - event-delegation
+ - using_delegate_and_undelegate
+ - working_with_events_part_1
+ - working_with_events_part_2
+ - triggering-event-handlers
+ - introduction-to-custom-events
+- effects:
+ - built-in-effects
+ - custom-effects
+ - managing-effects
+ - queue_and_dequeue_explained
+ - uses_of_queue_and_dequeue
+- ajax:
+ - key-concepts
+ - jquery-ajax-methods
+ - ajax-and-forms
+ - working-with-jsonp
+ - ajax-events
+- plugins:
+ - finding-evaluating-plugins
+ - basic-plugin-creation
+ - a_plugin_development_pattern
+ - making_a_jquery_plugin_truly_customizable
+ - stateful-plugins-with-widget-factory
+- performance:
+ - append-outside-loop
+ - cache-loop-length
+ - clever-conditionals
+ - detach-elements-before-work-with-them
+ - dont-act-on-absent-elements
+ - optimize-selectors
+ - use-stylesheets-for-changing-css
+ - variable-definition
+ - read-the-source
+- code-organization:
+ - concepts
+ - beware-anonymous-functions
+ - dont-repeat-yourself
+- faq:
+ - add_keyboard_navigation
+ - enable_the_back_button
From 93f656e72481ca4a4c1f887364037964b94afcb3 Mon Sep 17 00:00:00 2001
From: "adam j. sontag"
Date: Fri, 23 Mar 2012 01:38:32 -0400
Subject: [PATCH 4/5] remove now-unnecessary chapter and section metadata from
existing articles
---
content/ajax/ajax-and-forms.md | 5 +----
content/ajax/ajax-events.md | 2 --
content/ajax/ajax-excercises.md | 2 --
content/ajax/jquery-ajax-methods.md | 2 --
content/ajax/key-concepts.md | 2 --
content/ajax/working-with-jsonp.md | 2 --
content/code-organization/beware-anonymous-functions.md | 2 --
content/code-organization/concepts.md | 2 --
content/code-organization/dont-repeat-yourself.md | 2 --
content/effects/built-in-effects.md | 2 --
content/effects/custom-effects.md | 2 --
content/effects/effects-exercises.md | 2 --
content/effects/managing-effects.md | 2 --
content/events/dex.md | 1 -
content/events/event-delegation.md | 2 --
content/events/event-exercises.md | 2 --
content/events/event-extensions.md | 2 --
content/events/event-helpers.md | 2 --
content/events/events-to-elements.md | 2 --
content/events/inside-event-handling-function.md | 2 --
content/events/introduction-to-custom-events.md | 2 --
content/events/triggering-event-handlers.md | 2 --
content/javascript-101/arrays.md | 2 --
content/javascript-101/closures.md | 2 --
content/javascript-101/conditional-code.md | 2 --
content/javascript-101/dex.md | 4 +---
content/javascript-101/functions.md | 2 --
content/javascript-101/loops.md | 2 --
content/javascript-101/objects.md | 2 --
content/javascript-101/operators.md | 2 --
content/javascript-101/reserved-words.md | 2 --
content/javascript-101/running-code.md | 2 --
content/javascript-101/scope.md | 2 --
content/javascript-101/syntax-basics.md | 2 --
content/javascript-101/testing-type.md | 2 --
content/javascript-101/this-keyword.md | 2 --
content/javascript-101/types.md | 2 --
content/performance/append-outside-loop.md | 2 --
content/performance/cache-loop-length.md | 2 --
content/performance/clever-conditionals.md | 2 --
content/performance/detach-elements-before-work-with-them.md | 2 --
content/performance/dont-act-on-absent-elements.md | 2 --
content/performance/optimize-selectors.md | 2 --
content/performance/use-stylesheets-for-changing-css.md | 2 --
content/performance/variable-definition.md | 2 --
content/plugins/basic-plugin-creation.md | 2 --
content/plugins/dex.md | 2 --
content/plugins/finding-evaluating-plugins.md | 2 --
content/plugins/stateful-plugins-with-widget-factory.md | 4 +---
content/using-jquery-core/attributes.md | 2 --
content/using-jquery-core/avoid-conflicts-other-libraries.md | 4 +---
content/using-jquery-core/css-styling-dimensions.md | 2 --
content/using-jquery-core/data-methods.md | 2 --
content/using-jquery-core/document-ready.md | 2 --
content/using-jquery-core/dollar-object-vs-function.md | 2 --
content/using-jquery-core/exercises.md | 4 +---
content/using-jquery-core/feature-browser-detection.md | 2 --
content/using-jquery-core/manipulating-elements.md | 2 --
content/using-jquery-core/selecting-elements.md | 2 --
content/using-jquery-core/traversing.md | 2 --
content/using-jquery-core/utility-methods.md | 2 --
content/using-jquery-core/working-with-selections.md | 2 --
62 files changed, 5 insertions(+), 129 deletions(-)
diff --git a/content/ajax/ajax-and-forms.md b/content/ajax/ajax-and-forms.md
index dc78e052..efdfc695 100644
--- a/content/ajax/ajax-and-forms.md
+++ b/content/ajax/ajax-and-forms.md
@@ -1,9 +1,6 @@
---
-chapter : ajax
-section : 4
title : Ajax and Forms
attribution: jQuery Fundamentals
-
---
jQuery’s ajax capabilities can be especially useful when dealing with forms. There are several advantages, which can range from serialization, to simple client-side validation (e.g. "Sorry, that username is taken"), to [prefilters](http://api.jquery.com/extending-ajax/#Prefilters) (explained below), and even more!
@@ -88,4 +85,4 @@ You can pass in an optional argument before the callback function that specifies
$.ajaxPrefilter( "json script", function( options, originalOptions, jqXHR ) {
// do all of the prefiltering here, but only for requests that indicate a dataType of "JSON" or "script"
})
-
\ No newline at end of file
+
diff --git a/content/ajax/ajax-events.md b/content/ajax/ajax-events.md
index 709ebde8..ac7a938e 100644
--- a/content/ajax/ajax-events.md
+++ b/content/ajax/ajax-events.md
@@ -1,6 +1,4 @@
---
-chapter : ajax
-section : 6
title : Ajax Events
attribution: jQuery Fundamentals
---
diff --git a/content/ajax/ajax-excercises.md b/content/ajax/ajax-excercises.md
index 80cb3756..396dfb16 100644
--- a/content/ajax/ajax-excercises.md
+++ b/content/ajax/ajax-excercises.md
@@ -1,6 +1,4 @@
---
-chapter : ajax
-section : 7
title : Exercises
attribution: jQuery Fundamentals
---
diff --git a/content/ajax/jquery-ajax-methods.md b/content/ajax/jquery-ajax-methods.md
index 806c7411..9bd3fc7b 100644
--- a/content/ajax/jquery-ajax-methods.md
+++ b/content/ajax/jquery-ajax-methods.md
@@ -1,6 +1,4 @@
---
-chapter : ajax
-section : 3
title : jQuery's Ajax-Related Methods
attribution: jQuery Fundamentals
---
diff --git a/content/ajax/key-concepts.md b/content/ajax/key-concepts.md
index 87a07d50..418d1cae 100644
--- a/content/ajax/key-concepts.md
+++ b/content/ajax/key-concepts.md
@@ -1,6 +1,4 @@
---
-chapter : ajax
-section : 2
title : Key Concepts
attribution: jQuery Fundamentals
---
diff --git a/content/ajax/working-with-jsonp.md b/content/ajax/working-with-jsonp.md
index d61ed206..df164acb 100644
--- a/content/ajax/working-with-jsonp.md
+++ b/content/ajax/working-with-jsonp.md
@@ -1,6 +1,4 @@
---
-chapter : ajax
-section : 5
title : Working with JSONP
attribution: jQuery Fundamentals
---
diff --git a/content/code-organization/beware-anonymous-functions.md b/content/code-organization/beware-anonymous-functions.md
index 50646981..f7712b4e 100644
--- a/content/code-organization/beware-anonymous-functions.md
+++ b/content/code-organization/beware-anonymous-functions.md
@@ -1,6 +1,4 @@
---
-chapter : code-organization
-section: 2
title: Beware Anonymous Functions
attribution: jQuery Fundamentals
---
diff --git a/content/code-organization/concepts.md b/content/code-organization/concepts.md
index 48d27dc7..01799175 100644
--- a/content/code-organization/concepts.md
+++ b/content/code-organization/concepts.md
@@ -1,6 +1,4 @@
---
-chapter : Code Organization
-section: 0
title: Code Organization Concepts
attribution: $jQuery Fundamentals
---
diff --git a/content/code-organization/dont-repeat-yourself.md b/content/code-organization/dont-repeat-yourself.md
index ac9fc839..2b5962d5 100644
--- a/content/code-organization/dont-repeat-yourself.md
+++ b/content/code-organization/dont-repeat-yourself.md
@@ -1,6 +1,4 @@
---
-chapter : code-organization
-section: 0
title: Keep Things DRY
attribution: jQuery Fundamentals
---
diff --git a/content/effects/built-in-effects.md b/content/effects/built-in-effects.md
index 19a7349d..a319f2ca 100644
--- a/content/effects/built-in-effects.md
+++ b/content/effects/built-in-effects.md
@@ -1,6 +1,4 @@
---
-chapter : effects
-section : 2
title : Built-in Effects
attribution: jQuery Fundamentals
---
diff --git a/content/effects/custom-effects.md b/content/effects/custom-effects.md
index 955e9dbf..717ea3ab 100644
--- a/content/effects/custom-effects.md
+++ b/content/effects/custom-effects.md
@@ -1,6 +1,4 @@
---
-chapter : effects
-section : 3
title : Custom Effects with $.fn.animate
attribution: jQuery Fundamentals
---
diff --git a/content/effects/effects-exercises.md b/content/effects/effects-exercises.md
index dd8a9817..cbb69ff2 100644
--- a/content/effects/effects-exercises.md
+++ b/content/effects/effects-exercises.md
@@ -1,6 +1,4 @@
---
-chapter : effects
-section : 5
title : Effect Exercises
attribution: jQuery Fundamentals
---
diff --git a/content/effects/managing-effects.md b/content/effects/managing-effects.md
index 65c6f2ad..9743df5f 100644
--- a/content/effects/managing-effects.md
+++ b/content/effects/managing-effects.md
@@ -1,6 +1,4 @@
---
-chapter : effects
-section : 4
title : Managing Effects
attribution: jQuery Fundamentals
---
diff --git a/content/events/dex.md b/content/events/dex.md
index 5b18763e..29635c4d 100644
--- a/content/events/dex.md
+++ b/content/events/dex.md
@@ -1,6 +1,5 @@
---
title: Events
-section : 1
attribution: jQuery Fundamentals
---
jQuery provides simple methods for attaching event handlers to selections.
diff --git a/content/events/event-delegation.md b/content/events/event-delegation.md
index 1ef1d6df..15a96e3b 100644
--- a/content/events/event-delegation.md
+++ b/content/events/event-delegation.md
@@ -1,6 +1,4 @@
---
-chapter : events
-section : 4
title : Increasing Performance with Event Delegation
attribution: jQuery Fundamentals
---
diff --git a/content/events/event-exercises.md b/content/events/event-exercises.md
index 2638c53d..cde3751d 100644
--- a/content/events/event-exercises.md
+++ b/content/events/event-exercises.md
@@ -1,6 +1,4 @@
---
-chapter : events
-section : 6
title : Excercises
attribution: jQuery Fundamentals
---
diff --git a/content/events/event-extensions.md b/content/events/event-extensions.md
index cdbed8bd..65991c2d 100644
--- a/content/events/event-extensions.md
+++ b/content/events/event-extensions.md
@@ -1,6 +1,4 @@
---
-chapter : events
-section : 7
title : jQuery Event Extensions
attribution: Dave Methvin
github: dmethvin
diff --git a/content/events/event-helpers.md b/content/events/event-helpers.md
index d474186c..ea02e7d8 100644
--- a/content/events/event-helpers.md
+++ b/content/events/event-helpers.md
@@ -1,6 +1,4 @@
---
-chapter : events
-section : 5
title : Event Helpers
attribution: jQuery Fundamentals
---
diff --git a/content/events/events-to-elements.md b/content/events/events-to-elements.md
index a60cfcb2..33e85cf2 100644
--- a/content/events/events-to-elements.md
+++ b/content/events/events-to-elements.md
@@ -1,6 +1,4 @@
---
-chapter : events
-section : 2
title : Connecting Events to Elements
attribution: jQuery Fundamentals
---
diff --git a/content/events/inside-event-handling-function.md b/content/events/inside-event-handling-function.md
index fd551c00..b85cca9e 100644
--- a/content/events/inside-event-handling-function.md
+++ b/content/events/inside-event-handling-function.md
@@ -1,6 +1,4 @@
---
-chapter : events
-section : 3
title : Inside the Event Handling Function
attribution: jQuery Fundamentals
---
diff --git a/content/events/introduction-to-custom-events.md b/content/events/introduction-to-custom-events.md
index 7df975e2..17aa9571 100644
--- a/content/events/introduction-to-custom-events.md
+++ b/content/events/introduction-to-custom-events.md
@@ -1,6 +1,4 @@
---
-chapter : Custom Events
-section: 0
title: Introducing Custom Events
attribution: $jQuery Fundamentals
---
diff --git a/content/events/triggering-event-handlers.md b/content/events/triggering-event-handlers.md
index d3a05877..514e61bb 100644
--- a/content/events/triggering-event-handlers.md
+++ b/content/events/triggering-event-handlers.md
@@ -1,6 +1,4 @@
---
-chapter : events
-section : 4
title : Triggering Event Handlers
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/arrays.md b/content/javascript-101/arrays.md
index 435d3cd7..96725e48 100644
--- a/content/javascript-101/arrays.md
+++ b/content/javascript-101/arrays.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 6
title: Arrays
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/closures.md b/content/javascript-101/closures.md
index b3c6ba6a..79abb6a6 100644
--- a/content/javascript-101/closures.md
+++ b/content/javascript-101/closures.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 12
title: Closures
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/conditional-code.md b/content/javascript-101/conditional-code.md
index 96097723..74558324 100644
--- a/content/javascript-101/conditional-code.md
+++ b/content/javascript-101/conditional-code.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 3
title: Conditional Code
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/dex.md b/content/javascript-101/dex.md
index f2376b9f..688e845c 100644
--- a/content/javascript-101/dex.md
+++ b/content/javascript-101/dex.md
@@ -1,10 +1,8 @@
---
title : JavaScript 101
-chapter : javascript-101
-section : 1
attribution: jQuery Fundamentals
---
jQuery is built on top of JavaScript, a rich and expressive language in its own right. This means when using jQuery, we are still writing valid JavaScript; it just serves as a framework to make many aspects of writing JavaScript easier and more reliable in the various browser environments. With that said, a basic knowledge of JavaScript will go a long way in understanding, structuring, and debugging our code; jQuery will just help make that basic knowledge go much, much further.
-This section covers the basic concepts of JavaScript, as well as some frequent pitfalls many developers fall into during their first foray into the language. While it will be of particular value to people with little to no programming experience, even people who have used other programming languages may benefit from learning about some of the peculiarities of JavaScript.
\ No newline at end of file
+This section covers the basic concepts of JavaScript, as well as some frequent pitfalls many developers fall into during their first foray into the language. While it will be of particular value to people with little to no programming experience, even people who have used other programming languages may benefit from learning about some of the peculiarities of JavaScript.
diff --git a/content/javascript-101/functions.md b/content/javascript-101/functions.md
index 14fad281..90465ba1 100644
--- a/content/javascript-101/functions.md
+++ b/content/javascript-101/functions.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 8
title: Functions
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/loops.md b/content/javascript-101/loops.md
index f38049af..c55fd185 100644
--- a/content/javascript-101/loops.md
+++ b/content/javascript-101/loops.md
@@ -1,6 +1,4 @@
---
-chapter : js10
-section: 4
title: Loops
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/objects.md b/content/javascript-101/objects.md
index 9e54ab6c..7fa1c7a6 100644
--- a/content/javascript-101/objects.md
+++ b/content/javascript-101/objects.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 7
title: Objects
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/operators.md b/content/javascript-101/operators.md
index 2384be04..072a73c0 100644
--- a/content/javascript-101/operators.md
+++ b/content/javascript-101/operators.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 2
title: Operators
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/reserved-words.md b/content/javascript-101/reserved-words.md
index b28f740e..4580bd8b 100644
--- a/content/javascript-101/reserved-words.md
+++ b/content/javascript-101/reserved-words.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 5
title: Reserved Words
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/running-code.md b/content/javascript-101/running-code.md
index 36a03f13..883ab6f5 100644
--- a/content/javascript-101/running-code.md
+++ b/content/javascript-101/running-code.md
@@ -1,6 +1,4 @@
---
-chapter: javascript-101
-section: 1
title: Running Code
attribution: jQuery Fundamentals
github: jquery
diff --git a/content/javascript-101/scope.md b/content/javascript-101/scope.md
index d253956d..272f00e6 100644
--- a/content/javascript-101/scope.md
+++ b/content/javascript-101/scope.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 11
title: Scope
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/syntax-basics.md b/content/javascript-101/syntax-basics.md
index a8cb571f..9ad2de2c 100644
--- a/content/javascript-101/syntax-basics.md
+++ b/content/javascript-101/syntax-basics.md
@@ -1,6 +1,4 @@
---
-chapter: javascript-101
-section: 2
title: Syntax Basics
attribution: jQuery Fundamentals
github: jquery
diff --git a/content/javascript-101/testing-type.md b/content/javascript-101/testing-type.md
index b424a7ab..d5b502b3 100644
--- a/content/javascript-101/testing-type.md
+++ b/content/javascript-101/testing-type.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 9
title: Testing Type
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/this-keyword.md b/content/javascript-101/this-keyword.md
index 848498a0..9a62f3be 100644
--- a/content/javascript-101/this-keyword.md
+++ b/content/javascript-101/this-keyword.md
@@ -1,6 +1,4 @@
---
-chapter : js101
-section: 10
title: The "this" Keyword
attribution: jQuery Fundamentals
---
diff --git a/content/javascript-101/types.md b/content/javascript-101/types.md
index 5948138e..df68b810 100644
--- a/content/javascript-101/types.md
+++ b/content/javascript-101/types.md
@@ -1,6 +1,4 @@
---
-chapter: javascript-101
-section: 2
title: Types
attribution: jQuery Fundamentals
github: jquery
diff --git a/content/performance/append-outside-loop.md b/content/performance/append-outside-loop.md
index a9731082..c10874ce 100644
--- a/content/performance/append-outside-loop.md
+++ b/content/performance/append-outside-loop.md
@@ -1,6 +1,4 @@
---
-chapter : performance
-section: 0
title: Append Outside of Loops
attribution: jQuery Fundamentals
tags: performance
diff --git a/content/performance/cache-loop-length.md b/content/performance/cache-loop-length.md
index 2039aa6e..dbdd8d20 100644
--- a/content/performance/cache-loop-length.md
+++ b/content/performance/cache-loop-length.md
@@ -1,6 +1,4 @@
---
-chapter : performance
-section: 0
title: Cache Length During Loops
attribution: jQuery Fundamentals
tags: performance
diff --git a/content/performance/clever-conditionals.md b/content/performance/clever-conditionals.md
index 19734264..0daf34dc 100644
--- a/content/performance/clever-conditionals.md
+++ b/content/performance/clever-conditionals.md
@@ -1,6 +1,4 @@
---
-chapter : performance
-section: 0
title: Clever Conditionals
attribution: jQuery Fundamentals
tags: performance
diff --git a/content/performance/detach-elements-before-work-with-them.md b/content/performance/detach-elements-before-work-with-them.md
index 54104987..b4bf7f6d 100644
--- a/content/performance/detach-elements-before-work-with-them.md
+++ b/content/performance/detach-elements-before-work-with-them.md
@@ -1,6 +1,4 @@
---
-chapter : performance
-section: 0
title: Detach Elements to Work with Them
attribution: jQuery Fundamentals
tags: performance
diff --git a/content/performance/dont-act-on-absent-elements.md b/content/performance/dont-act-on-absent-elements.md
index e043503c..64a1c44d 100644
--- a/content/performance/dont-act-on-absent-elements.md
+++ b/content/performance/dont-act-on-absent-elements.md
@@ -1,6 +1,4 @@
---
-chapter : performance
-section: 0
title: Don't Act on Absent Elements
attribution: jQuery Fundamentals
tags: performance
diff --git a/content/performance/optimize-selectors.md b/content/performance/optimize-selectors.md
index aa8f8db3..b41fee9e 100644
--- a/content/performance/optimize-selectors.md
+++ b/content/performance/optimize-selectors.md
@@ -1,6 +1,4 @@
---
-chapter : performance
-section: 0
title: Optimize Selectors
attribution: jQuery Fundamentals
tags: performance
diff --git a/content/performance/use-stylesheets-for-changing-css.md b/content/performance/use-stylesheets-for-changing-css.md
index 1c0b29ff..ba0e35aa 100644
--- a/content/performance/use-stylesheets-for-changing-css.md
+++ b/content/performance/use-stylesheets-for-changing-css.md
@@ -1,6 +1,4 @@
---
-chapter : performance
-section: 0
title: Use Stylesheets for Changing CSS on Many Elements
attribution: jQuery Fundamentals
tags: performance
diff --git a/content/performance/variable-definition.md b/content/performance/variable-definition.md
index 105a8f0d..2fbaee9d 100644
--- a/content/performance/variable-definition.md
+++ b/content/performance/variable-definition.md
@@ -1,6 +1,4 @@
---
-chapter : performance
-section: 0
title: Variable Definition
attribution: jQuery Fundamentals
tags: performance
diff --git a/content/plugins/basic-plugin-creation.md b/content/plugins/basic-plugin-creation.md
index 4b049894..70f75f43 100644
--- a/content/plugins/basic-plugin-creation.md
+++ b/content/plugins/basic-plugin-creation.md
@@ -1,6 +1,4 @@
---
-chapter : plugins
-section : 2
title : How to create a basic plugin
attribution: jQuery Fundamentals
---
diff --git a/content/plugins/dex.md b/content/plugins/dex.md
index 77846e28..888dec09 100644
--- a/content/plugins/dex.md
+++ b/content/plugins/dex.md
@@ -1,7 +1,5 @@
---
title: Plugins
-chapter: plugins
-section : 1
attribution: jQuery Fundamentals
---
A jQuery plugin is simply a new method that we use to extend jQuery's prototype
diff --git a/content/plugins/finding-evaluating-plugins.md b/content/plugins/finding-evaluating-plugins.md
index 260ba29c..85684930 100644
--- a/content/plugins/finding-evaluating-plugins.md
+++ b/content/plugins/finding-evaluating-plugins.md
@@ -1,6 +1,4 @@
---
-chapter : plugins
-section : 3
title : Finding & Evaluating Plugins
attribution: jQuery Fundamentals
---
diff --git a/content/plugins/stateful-plugins-with-widget-factory.md b/content/plugins/stateful-plugins-with-widget-factory.md
index 9ef890da..da61acec 100644
--- a/content/plugins/stateful-plugins-with-widget-factory.md
+++ b/content/plugins/stateful-plugins-with-widget-factory.md
@@ -1,6 +1,4 @@
---
-chapter : plugins
-section : 5
title : Writing Stateful Plugins with the jQuery UI Widget Factory
attribution: jQuery Fundamentals
---
@@ -352,4 +350,4 @@ The widget factory is only one way of creating stateful plugins. There are a
few different models that can be used and each have their own advantages and
disadvantages. The widget factory solves lots of common problems for you and
can greatly improve productivity, it also greatly improves code reuse, making
-it a great fit for jQuery UI as well as many other stateful plugins.
\ No newline at end of file
+it a great fit for jQuery UI as well as many other stateful plugins.
diff --git a/content/using-jquery-core/attributes.md b/content/using-jquery-core/attributes.md
index 9c7cc0d2..0cc793b0 100644
--- a/content/using-jquery-core/attributes.md
+++ b/content/using-jquery-core/attributes.md
@@ -1,7 +1,5 @@
---
-chapter : using-jquery-core
level : beginner
-section : 4
title : Attributes
---
An element's attributes can contain useful information for your application, so
diff --git a/content/using-jquery-core/avoid-conflicts-other-libraries.md b/content/using-jquery-core/avoid-conflicts-other-libraries.md
index 9f9939d1..e48fe596 100644
--- a/content/using-jquery-core/avoid-conflicts-other-libraries.md
+++ b/content/using-jquery-core/avoid-conflicts-other-libraries.md
@@ -1,9 +1,7 @@
---
-chapter : using-jquery-core
-level: beginner
-section : 6
title : Avoiding Conflicts with Other Libraries
attribution: jQuery Fundamentals
+level: beginner
---
If you are using another JavaScript library that uses the `$` variable, you can
run into conflicts with jQuery. In order to avoid these conflicts, you need to
diff --git a/content/using-jquery-core/css-styling-dimensions.md b/content/using-jquery-core/css-styling-dimensions.md
index 69df6fe1..d823611f 100644
--- a/content/using-jquery-core/css-styling-dimensions.md
+++ b/content/using-jquery-core/css-styling-dimensions.md
@@ -1,7 +1,5 @@
---
-chapter : using-jquery-core
level: beginner
-section : 3
title : CSS, Styling, & Dimensions
---
## CSS, Styling, & Dimensions
diff --git a/content/using-jquery-core/data-methods.md b/content/using-jquery-core/data-methods.md
index 5ff83f36..4b472738 100644
--- a/content/using-jquery-core/data-methods.md
+++ b/content/using-jquery-core/data-methods.md
@@ -1,6 +1,4 @@
---
-chapter : jquery-core
-section : 4
title : Data Methods
attribution: jQuery Fundamentals
level: intermediate
diff --git a/content/using-jquery-core/document-ready.md b/content/using-jquery-core/document-ready.md
index ba5e0d3c..c389005c 100644
--- a/content/using-jquery-core/document-ready.md
+++ b/content/using-jquery-core/document-ready.md
@@ -1,7 +1,5 @@
---
-chapter : jquery-basics
level: beginner
-section : 1
title : $(document).ready()
---
You cannot safely manipulate a page until the document is “ready.”
diff --git a/content/using-jquery-core/dollar-object-vs-function.md b/content/using-jquery-core/dollar-object-vs-function.md
index 1bf1ff37..4dde485d 100644
--- a/content/using-jquery-core/dollar-object-vs-function.md
+++ b/content/using-jquery-core/dollar-object-vs-function.md
@@ -1,6 +1,4 @@
---
-chapter : using-jquery-core
-section : 1
title : $ vs $()
attribution: jQuery Fundamentals
level: beginner
diff --git a/content/using-jquery-core/exercises.md b/content/using-jquery-core/exercises.md
index 8fce494e..50936c6a 100644
--- a/content/using-jquery-core/exercises.md
+++ b/content/using-jquery-core/exercises.md
@@ -1,6 +1,4 @@
---
-chapter : jquery-basics
-section : 7
title : Exercises
attribution: jQuery Fundamentals
---
@@ -51,4 +49,4 @@ Open the file `/exercises/index.html` in your browser. Use the file `/exercises/
4. Add another option to the select element; give the option the value "Wednesday"
-5. Add a new div.module to the page after the last one; put a copy of one of the existing images inside of it.
\ No newline at end of file
+5. Add a new div.module to the page after the last one; put a copy of one of the existing images inside of it.
diff --git a/content/using-jquery-core/feature-browser-detection.md b/content/using-jquery-core/feature-browser-detection.md
index 3f0929df..1c19c11d 100644
--- a/content/using-jquery-core/feature-browser-detection.md
+++ b/content/using-jquery-core/feature-browser-detection.md
@@ -1,6 +1,4 @@
---
-chapter : using-jquery-core
-section : 5
title : Feature & Browser Detection
level: intermediate
attribution: jQuery Fundamentals
diff --git a/content/using-jquery-core/manipulating-elements.md b/content/using-jquery-core/manipulating-elements.md
index 8db77af6..dca06b3c 100644
--- a/content/using-jquery-core/manipulating-elements.md
+++ b/content/using-jquery-core/manipulating-elements.md
@@ -1,6 +1,4 @@
---
-chapter : using-jquery-core
-section : 6
title : Manipulating Elements
attribution: jQuery Fundamentals
level: beginner
diff --git a/content/using-jquery-core/selecting-elements.md b/content/using-jquery-core/selecting-elements.md
index e971ab12..9c6115f1 100644
--- a/content/using-jquery-core/selecting-elements.md
+++ b/content/using-jquery-core/selecting-elements.md
@@ -1,6 +1,4 @@
---
-chapter : using-jquery-core
-section : 2
title : Selecting Elements
level: beginner
---
diff --git a/content/using-jquery-core/traversing.md b/content/using-jquery-core/traversing.md
index 92980db0..b84c4a3e 100644
--- a/content/using-jquery-core/traversing.md
+++ b/content/using-jquery-core/traversing.md
@@ -1,6 +1,4 @@
---
-chapter : using-jquery-core
-section : 5
title : Traversing
level: beginner
---
diff --git a/content/using-jquery-core/utility-methods.md b/content/using-jquery-core/utility-methods.md
index 6742e267..e5dd9e8c 100644
--- a/content/using-jquery-core/utility-methods.md
+++ b/content/using-jquery-core/utility-methods.md
@@ -1,6 +1,4 @@
---
-chapter : using-jquery-core
-section : 2
title : Utility Methods
attribution: jQuery Fundamentals
level: beginner
diff --git a/content/using-jquery-core/working-with-selections.md b/content/using-jquery-core/working-with-selections.md
index 481d0dd3..04279873 100644
--- a/content/using-jquery-core/working-with-selections.md
+++ b/content/using-jquery-core/working-with-selections.md
@@ -1,6 +1,4 @@
---
-chapter : using-jquery-core
-section : 3
title : Working with Selections
level: beginner
---
From f65c09420470b9406c97f9cba940c0f00c872b19 Mon Sep 17 00:00:00 2001
From: "adam j. sontag"
Date: Fri, 23 Mar 2012 01:42:43 -0400
Subject: [PATCH 5/5] rename order.yaml to order.yml
---
order.yaml => order.yml | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename order.yaml => order.yml (100%)
diff --git a/order.yaml b/order.yml
similarity index 100%
rename from order.yaml
rename to order.yml