This is a set of plugins, themes, and configuration files for jQuery's website infrastructure, which is powered by WordPress. It is designed as a custom content directory. So think of web-base-template
as your wp-content
directory.
-
Configure your local webserver with a virtual host that covers the relevant jQuery domains, such as
*.jquery.com
and*.jqueryui.com
, all pointing to the same root. For example, in Apache:<VirtualHost *:80> ServerName dev.jquery.com ServerAlias *.jquery.com *.jqueryui.com *.jquery.org *.qunitjs.com *.sizzlejs.com *.jquerymobile.com DocumentRoot "/srv/www/jquery" </VirtualHost>
-
Configure your
/etc/hosts
file to pointdev.jquery.com
,dev.jqueryui.com
, etc. to your local machine. For example:127.0.0.1 dev.jquery.com dev.api.jquery.com dev.plugins.jquery.com dev.blog.jquery.com dev.learn.jquery.com 127.0.0.1 dev.jqueryui.com dev.blog.jqueryui.com dev.api.jqueryui.com 127.0.0.1 dev.jquery.org dev.qunitjs.com dev.api.qunitjs.com dev.sizzlejs.com dev.jquerymobile.com dev.api.jquerymobile.com
Be sure to flush your DNS when you are done. On a Mac, that would be
dscacheutil -flushcache
. -
Place the WordPress core files in the document root you chose. (Don't install it.) You can do this any number of ways:
- Download the latest version from http://wordpress.org/latest.zip
- Check out the latest tag from http://core.svn.wordpress.org/tags/
- Clone the official WordPress Github mirror at http://github.com/wordpress/wordpress/
-
Clone
web-base-template
into place, so you have a file tree that looks like this:web-base-template/ wp-admin/ wp-content/ wp-includes/ index.php ...
-
Copy
web-base-template/wp-config-sample.php
and move it up one directory, towp-config.php
. Fill in your database credentials. -
Create an .htaccess file with the following content into that same document root:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteRule ^resources/(.*) gw-resources/%{HTTP_HOST}/$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]
-
Go to
http://dev.jquery.com
and walk through the standard WordPress installation.web-base-template
includes a special install script that will initialize the entire network.