diff --git a/.gitignore b/.gitignore index b5a693a5..633f1bde 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,3 @@ -dist -node_modules -config.json -.project -*~ -*.diff -*.patch -.DS_Store -.settings \ No newline at end of file +/dist/ +/node_modules/ +config.js* diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..f599e28b --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +10 diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 00000000..15d01b05 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,41 @@ +module.exports = function( grunt ) { + +grunt.loadNpmTasks( "grunt-jquery-content" ); + +grunt.initConfig({ + xmllint: { + all: [ + "entries/**", + "includes/**", + "categories.xml", + "entries2html.xsl", + "notes.xsl" + ] + }, + "build-posts": { + page: "pages/**" + }, + "build-xml-entries": { + all: "entries/**" + }, + "build-resources": { + all: "resources/**" + }, + wordpress: (function() { + var config = require( "./config" ); + config.dir = "dist/wordpress"; + return config; + })() +}); + +grunt.registerTask( "lint", [ "xmllint" ] ); + +grunt.registerTask( "build", [ + "build-posts", + "build-resources", + "build-xml-entries", + "build-xml-categories", + "build-xml-full" +]); + +}; diff --git a/LICENSE-MIT.txt b/LICENSE-MIT.txt index b2a404dd..96aede76 100644 --- a/LICENSE-MIT.txt +++ b/LICENSE-MIT.txt @@ -1,4 +1,4 @@ -Copyright (c) 2014 jQuery Foundation, http://jquery.org/ +Copyright jQuery Foundation and other contributors, https://jquery.org/ This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history diff --git a/README.md b/README.md index 87b689e5..2381691f 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,12 @@ -api.jqueryui.com -================ +# api.jqueryui.com -## Building +## Building and Deploying -### Requirements -* libxml2 -* libxslt +To build and deploy your changes for previewing in a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](http://contribute.jquery.org/web-sites/). -The `xmllint` and `xsltproc` utilities need to be in your path. If you are on Windows, you can get libxml2 and libxslt from GnuWin32. +### Requirements -### Build +* [libxml2](http://xmlsoft.org/) +* [libxslt](http://xmlsoft.org/libxslt/) -To build and deploy your changes for previewing in a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](http://contribute.jquery.org/web-sites/). +The `xmllint` and `xsltproc` utilities need to be in your path. If you are on Windows, you can get libxml2 and libxslt from GnuWin32. diff --git a/entries/datepicker.xml b/entries/datepicker.xml index b3cc2605..78e4c4f2 100644 --- a/entries/datepicker.xml +++ b/entries/datepicker.xml @@ -139,7 +139,7 @@

Extract a date in expanded French format.


 				$.datepicker.parseDate( "DD, MM d, yy", "Samedi, Juillet 14, 2007", {
-					shortYearCuroff: 20,
+					shortYearCutoff: 20,
 					dayNamesShort: $.datepicker.regional[ "fr" ].dayNamesShort,
 					dayNames: $.datepicker.regional[ "fr" ].dayNames,
 					monthNamesShort: $.datepicker.regional[ "fr" ].monthNamesShort,
diff --git a/entries/draggable.xml b/entries/draggable.xml
index 8334338f..ab6db179 100644
--- a/entries/draggable.xml
+++ b/entries/draggable.xml
@@ -120,7 +120,7 @@
 			The duration of the revert animation, in milliseconds. Ignored if the revert option is false.