Giter Site home page Giter Site logo

jquery-wp-content's Introduction

jquery-wp-content

This repository provisions the wp-content directory of a WordPress installation, with the themes, plugins, and site options for jQuery Project websites.

Getting started

Production

To learn how the sites are managed in production, refer to https://github.com/jquery/infrastructure-puppet.

Staging

Changes pushed to the main branch of this repository are automatically pulled onto the staging servers, which are publicly reachable via the stage.* subdomains of the live sites. For example, the staging site for https://api.jquery.com is served at https://stage.api.jquery.com

Local

To help preview or debug changes locally during development, you can use https://github.com/jquery/jquery-wp-docker.

jquery-wp-content's People

Contributors

agcolom avatar ajpiano avatar arschmitz avatar arthurvr avatar aurelioderosa avatar chexee avatar danheberden avatar darcyclarke avatar dcneiner avatar dnschnur avatar eddiemonge avatar gnarf avatar jaspermdegroot avatar jonlongnecker avatar jzaefferer avatar kborchers avatar kleinmaetschke avatar krinkle avatar kswedberg avatar mgol avatar nacin avatar peol avatar ravasthi avatar rdworth avatar redwolves avatar scottgonzalez avatar sigorilla avatar supertassu avatar timmywil avatar tjvantoll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-wp-content's Issues

App base is an unneeded abstraction layer for jQuery website properties

No jQuery website (certainly not ALL jQuery websites) needs an abstraction layer of the sort that would allow for the seamless swapping out of jQuery for another JavaScript library that does DOM ready and Ajax.

This is only being used for DOM ready and to store a single variable that is just as well stored as a local variable. Removing will save 1K and a request. It can safely be removed.

Create an easy way to work on just web-base-template

It would facilitate the process of working on HTML and CSS greatly if people don't have to clone each site project and grunt deploy it to their local environment. We should provide a sql dump they can quickly execute to populate their local install so they can get down to pixels.

Document responsive breakpoints

We should document how the theme's responsive layout works so that people working on HTML and CSS can work with them in mind.

Format of template, and inclusion in other projects

From Boaz:

If any changes to the base template are planned please let me know as soon as you can as we have already done a bunch of work with it for the plugins site, and I have not figured out a workflow for version controlling just the jQuery template part.

Speaking of which, maybe the base template should come self contained in the repo so that it would be easy to submodule in other version controlled projects. The plugin site is version controlled here: https://github.com/Bocoup/jquery-plugins

It would be nice if the whole jQuery template repo was a sample index.html and then a directory called jquery-template. That way it would be easy to update each project that consumes the template.

Thoughts?

Search form not accessible with CSS alone

Problem
With JavaScript off, the search form is not accessible because the label sits overtop the field, obscuring view of what is typed.

Solution
The search form/label needs an alternate style for when the .no-js class is on the html element.

Tooltip Hover Code

The tooltips should not appear for the currently selected tab (Open to discussion, but thats how I envisioned it).

Also, they are not hiding consistently.

"All Projects" subtext unreadable

Dark grey on black doesn't work. Even if it supposed to change on mouseover, that seems to be a bad interaction on its own - hover styling is fine, but it should be readable without hovering.

Enforce option values in domains.php after installation

The lists of options in domains.php are nice as they get set during installation. But it would best to also allow a change in domains.php to work "live," without needing to do a fresh install or manually update the UI.

We can do this by using a hook in the options API to override whatever value is in the database. To test this commit, go to the General Settings page and try to update the site title. You won't be successful. Now go to domains.php and change the 'blogname' for that site. You'll see things update.

Debugging on stage server turned on, causes xml-rpc message errors

Certainly it is valuable to have debugging turned on for both php and wordpress notices on the stage. server, lines 16-17

// WordPress debugging mode (enables PHP E_NOTICE and WordPress notices)
define( 'WP_DEBUG', (bool) JQUERY_STAGING );

however, this prevents sites from deploying to the server because these notices are output as part of XML-RPC messages which causes

>> Error: Invalid XML-RPC message

Is there some way we can have debugging on generally but not for the xml-rpc page(s) specifically?

Use transparent background-image gradients

Right now each theme has its own gradient background image, which is somewhat suboptimal because it re-creates the same gradient, which means more maintenance in case of change, and requires an image to be generated for each new theme.

Instead, lets use a transparent background-image gradient and fill in the solid color behind it with css:

html.qunitjs, .qunitjs #container {
    background: #00733c url(../i/bg-body-trans.png) no-repeat center -20px;
}

Or even better, instead of a transparent gradient image, replace the image with css as well (css3 background-image gradient).

Validation issues

  • Some <img> tags are missing alt attributes
  • Seach contains superfluous closing <li>:
    <input type="text" id="search" name="search"></li>

Modernizr upgrade to version 2.0.6, select minimal components

There's a much newer version of Modernizr out.

  1. We should get it
  2. There's an option to include respond.js in it. This will cut down on a script element and a request
  3. There's a custom builder. The only parts we're using today are:
    • CSS3 - box-shadow
    • CSS3 - multiple backgrounds
    • CSS3 - CSS Gradients
    • Extra - HTML5 Shim/IEPP
    • Extra - MQ Polyfil ( respond.js )
    • Extra - Add CSS Classes

Selection of the above auto-selects also

  • Extra - Media Queries
  • Extensibility - Modernizr.testStyles()

The latest version today is 2.0.6 and the url for downloading with the above options is

http://www.modernizr.com/download/#-boxshadow-multiplebgs-cssgradients-iepp-respond-mq-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes

Items in 'All Projects' menu not accessible

The items in the 'All Projects' menu were taken out of the tab order by 84cdc48 as part of the fixes for #24. Simply reverting this is not sufficient as the items were not previously in the correct position in the tab order and had/have no relation to the 'All Projects' link item/button that expands them.

Links to GitHub repos

When people spot issues on our sites, they should instantly see a link to this and the respective content repo to report issues.

There's no focus styling

Right now it's impossible to tell where focus is because nothing visually changes as it's focused. I can tab through the entire page and the only element that gives any visual feedback is the search field. Even anchors in page content have no visual change on focus.

Complete styling for API documentation

Core currently has an API site, and one is close to completion for jQuery UI. The styling for API documentation content has been started but is not yet complete.

Hard tabs

Can we get rid of the hard tabs in the base template and just stick to two space soft tabs?

Fix buttons :hover :focus and :active states

Need to be more apparent as @kswedberg noted in the IRC channel. And the ".blue" classed button should be ".colored" or ".color" and then the button will style to the environment (ie. jQuery, jQuery Mobile or jQuery UI sites color schemes).

Add button to copy CDN URL to clipboard

The CDN URL in the quick access section should have a button to copy the URL to the clipboard, like GitHub's button to copy the clone URLs. Right now you have to manually select with a mouse drag in order to get the full URL with nothing else. A triple click will select the URL plus the word "CDN".

Remove dependency on typekit.com

We shouldn't be relying on a 3rd party site to host our fonts. This can kill the performance of our sites. On multiple occasions I've had extremely long page load times due to typekit.com

network capture

Provide link to git(hub) content repo

Each site should have a link to the content repo, so that people spotting issues know where to report or even fix them. Maybe along with a link to this repo for all design/header/footer issues.

Commenting platform (i.e. built-in, Disqus, etc.)

We talked about this about two weeks ago (me, Adam and Darcy) and we somewhat agree'd on Disqus. The problem here is that, what Worth mentioned about Progressive Enhancement in the issue about search not being available to non-JavaScript users (#18), I'm not so sure about Disqus either.

As far as I know, this requires JavaScript, especially if we need # of comments printed on different places (which we are), so I'm somewhat leaning towards using the WordPress built-in platform instead.

Any thoughts on this? I'm asking because we need to style the comments and that's not something we want to do before we decide on what platform we should use.

Make Copyright (and lack of license) explicit

The content in web-base-template is copyrighted and not licensed for use. This is really important as we don't intend for anyone to make use of any part of the design on our site themes, which is what this repository is meant to contain. We should simple state 'Copyright. All rights reserved' and explain that there is no license and ask if you have questions.

Search results pages need styling

There is search functionality on all the sites, but the results are currently in need of basic styling and layout. If possible, this should take into consideration that we'll be having multi-site search and we'll either want results to be grouped by site or to otherwise denote which subdomain the result came from.

Duplicate and unused images

The following images are duplicates or unused and should be removed or renamed for consistency:

duplicates (remove):
base/i/bg-body-qunit.jpg
base/i/bg-body-sizzle.jpg
base/i/logo-qunit.png
base/i/logo-sizzle.png

unused (remove):
base/i/bg-footer.png
base/i/bg-title-shadow.png
base/i/footer-comp.png
base/i/logos-sponsors.png

inconsistent (rename):
base/i/logo-top-qunit.png -> base/i/logo-top-qunitjs.png
base/i/logo-top-sizzle.png -> base/i/logo-top-sizzlejs.png

Script to generate new sites

We should have a script that will look at the domains array and install any new sites. This will be useful in the future whenever we decide to add another domain.

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.