Code Monkey home page Code Monkey logo

web-base-template's Introduction

jQuery.com web-base-template

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.

Installation

  1. 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 local.jquery.com
    ServerAlias *.jquery.com *.jqueryui.com *.jquery.org *.qunitjs.com *.sizzlejs.com *.jquerymobile.com
    DocumentRoot "/srv/www/jquery"
    </VirtualHost>
    

You do not need to configure your /etc/hosts file for local.* because jquery.com's DNS handles this for you.

  1. Place the WordPress core files in the document root you chose. (Don't install it.) You can do this any number of ways:

  2. 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
    ...
    
  3. Copy web-base-template/wp-config-sample.php and move it up one directory, to wp-config.php. Fill in your database credentials.

  4. Create an .htaccess file with the following content into that same document root:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    RewriteRule ^resources/?$ index.php [L]
    RewriteRule ^resources/(.+) gw-resources/%{HTTP_HOST}/$1 [L]
    
    # Add a trailing slash to the wp-admin of a subsite.
    RewriteRule ^([_0-9a-zA-Z\.-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    
    # Handle wp-admin, wp-includes, and root PHP files for subsites.
    RewriteRule  ^[_0-9a-zA-Z\.-]+/((wp-admin|wp-includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z\.-]+/(.*\.php)$ $1 [L]
    
    RewriteRule . index.php [L]
    
  5. Go to http://local.jquery.com and walk through the standard WordPress installation. web-base-template includes a special install script that will initialize the entire network.

Auto-Updates

Changes pushed to master will be pulled onto the stage domain.

Copyright

Copyright 2012 jQuery Foundation and other contributors. All rights reserved.

The web-base-template repository contains themes for rendering all jQuery Foundation web sites.

What is licensed

The contents of these web sites are all available under terms of the MIT license ( http://jquery.org/license ).

Special exception: Code samples are given away for you to freely use, for any purpose. For code samples in API sites and Learn articles (unlike the source code of jQuery projects) you don't even have to say where you got the code from. Just use it.

The PHP files in the web-base-template repository are a derivative work of WordPress, and available under the terms of the GPL license ( http://codex.wordpress.org/License )

What is not licensed

The theme, design, layout, look-and-feel of the web-base-template repository, including all html, css, images, and icons, is not licensed for use. Not by the MIT license or any other license. It is copyrighted. You don't have permission to use it in any way for any purpose, commercial or otherwise. If you have questions about this, please ask a member of the jQuery Content Team.

web-base-template's People

Contributors

scottgonzalez avatar rdworth avatar nacin avatar kswedberg avatar dcneiner avatar jzaefferer avatar jonlongnecker avatar kborchers avatar ravasthi avatar eddiemonge avatar ajpiano avatar darcyclarke avatar peol avatar krinkle avatar agcolom avatar gnarf avatar jonathansampson avatar addyosmani avatar

Watchers

Chetan Shenoy avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.