Skip to content

Commit eb2781c

Browse files
committed
begin removing wintersmith dependency and using grunt-jquery-content for markdown processing by removing task from grunt.js, renaming "index.md" files in each "chapter" folder to appropriately named .md file in root to play nice with grunt-jquery-content
1 parent d6a31c4 commit eb2781c

14 files changed

+5
-21
lines changed

config-sample.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
{
2-
"output": "./page",
3-
"contents": "./content",
4-
"templates": "./layouts",
5-
"locals": {
6-
"url": "http://learn.jquery.com",
7-
"name": "jQuery Learning Site",
8-
"owner": "jQuery Foundation"
9-
},
10-
"plugins": ["/node_modules/wintersmith-ordered-pages/plugin.coffee"],
112
"url": "dev.learn.jquery.com",
123
"username": "admin",
134
"password": "sample"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

content/misc/index.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

grunt.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ grunt.loadNpmTasks( "grunt-clean" );
77
grunt.loadNpmTasks( "grunt-html" );
88
grunt.loadNpmTasks( "grunt-wordpress" );
99
grunt.loadNpmTasks( "grunt-jquery-content" );
10-
grunt.loadNpmTasks( "grunt-wintersmith" );
1110

1211
grunt.initConfig({
1312
clean: {
14-
wordpress: "dist/",
15-
wintersmith: "page/"
13+
wordpress: "dist/"
1614
},
1715
htmllint: {
1816
resources: "resources/*.html"
@@ -28,25 +26,23 @@ grunt.initConfig({
2826
},
2927
watch: {
3028
pages: {
31-
files: "page/**/*.html",
29+
files: "content/**",
3230
tasks: "deploy"
3331
}
3432
},
3533
"build-pages": {
36-
all: grunt.file.expandFiles( "page/**/*.html" )
34+
all: grunt.file.expandFiles( "content/**" )
3735
},
3836
"build-resources": {
3937
all: grunt.file.expandFiles( "resources/**/*" )
4038
},
4139
wordpress: grunt.utils._.extend({
4240
dir: "dist/wordpress"
43-
}, grunt.file.readJSON( "config.json" ) ),
44-
45-
wintersmith: config
41+
}, grunt.file.readJSON( "config.json" ) )
4642
});
4743

4844
grunt.registerTask( "default", "wordpress-deploy" );
49-
grunt.registerTask( "build-wordpress", "clean lint wintersmith build-pages build-resources");
45+
grunt.registerTask( "build-wordpress", "clean lint build-pages build-resources");
5046
grunt.registerTask( "deploy", "wordpress-deploy" );
5147

5248
};

0 commit comments

Comments
 (0)