• Stars
    star
    318
  • Rank 127,008 (Top 3 %)
  • Language
    HTML
  • License
    Other
  • Created about 12 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

API documentation for jQuery Core

api.jquery.com

Building and Deploying

To build and deploy your changes for previewing in a jquery-wp-content instance, follow the workflow instructions from our documentation on contributing to jQuery Foundation web sites.

Requirements

The xmllint and xsltproc utilities need to be in your path. If you are on Windows, you can get libxml2 and libxslt from zlatkovic.com.

Note: If you're using Windows and you receive the error "Error" when executing the task build-xml-entries:all, try to add the DLL libwinpthread-1.dll in the root of the project.

Style Guidelines

Prose Style & Grammar

Sentence Structure

  • Write in clear, easy-to-understand statements.
  • Keep sentences short and to the point.
  • Include the Oxford (serial) comma in a list of three or more items.
    • Yes: The load, scroll, and error events (e.g., on an <img> element) do not bubble
    • No: The load, scroll and error events (e.g., on an <img> element) do not bubble

Spelling

  • The documentation standardizes on American English spelling. For example:
    • Yes: color, while, among, customize, argument
    • No: colour, whilst, amongst, customise, arguement

Pronoun Usage

  • Use second-person pronoun ("you") when necessary, but try to avoid it.
  • Favor the definite article ("the") over second-person possessive ("your").
    • Yes: Insert the paragraph after the unordered list.
    • No: Insert your paragraph after the unordered list.
  • When editing current entries, change first-person plural pronouns ("we," "our," "us") to second-person.
    • Yes: The .insertAfter() method here adds an unordered list beneath the paragraph.
    • No: And now we have our paragraph beneath the unordered list.

"Voice"

  • Prefer active voice over passive.
    • Active: Calling .click() binds a click handler to the elements in the collection
    • Passive: Click handlers are bound to elements in the collection when .click() is called

Code Style

Code in the API documentation should follow the jQuery Core Style Guide with the following addition:

  • Document ready syntax: Use $( document ).ready(function() { instead of $(function() { as it's harder for new users to distinguish the difference between the latter and an IIFE.

Code within prose content (paragraphs and the like):

  • Methods: use a dot, followed by the method name, followed by parentheses: e.g. The .focus() method is a shortcut for .on( "focus", handler ) in the first and second variations, and .trigger( "focus" ) in the third.
  • Properties: use a dot, followed by the property name: e.g. .length.
  • Functions: use the function name, followed by parentheses: myFunction().

Examples

  • Examples should indicate what the expected result will be before presenting the code. This makes code clearer and skimming easier, especially for newer coders who may not understand what is supposed to be happening from reading the code itself.
    • Yes: Find all p elements that are children of a div element and apply a border to them.
    • No: Find all p elements that are children of a div element.
  • Make your example easy to follow with good comments so that the explanation isn't necessary.

Rhetorical Context

  • Subject
    • The entirety of jQuery's public API
  • Audience
    • jQuery users
    • International: Native and non-native English readers
    • Experience Level: Absolute beginner through expert
    • First-time through frequent consumers of site
  • Purpose
    • Describe comprehensively and accessibly every public method, property, and selector in the jQuery library
    • Reinforce understanding of concepts through relevant code examples
    • Demonstrate the effect the methods have by executing code examples
  • Authors
    • Proficient in JavaScript development
    • Well versed in jQuery best practices
    • Strong in English writing
  • Tone
    • Middle ground between formal and familiar. Err on the side of formality.
    • Authoritative
    • Tactful

More Repositories

1

jquery

jQuery JavaScript Library
JavaScript
58,659
star
2

jquery-ui

The official jQuery user interface library.
JavaScript
11,211
star
3

esprima

ECMAScript parsing infrastructure for multipurpose analysis
TypeScript
6,928
star
4

sizzle

A sizzlin' hot selector engine.
JavaScript
6,276
star
5

jquery-mousewheel

A jQuery plugin that adds cross-browser mouse wheel support.
JavaScript
3,903
star
6

jquery-migrate

A development tool to help migrate away from APIs and features that have been or will be removed from jQuery core
JavaScript
1,981
star
7

jquery-color

jQuery plugin for color manipulation and animation support.
JavaScript
1,635
star
8

testswarm

Distributed continuous integration testing for JavaScript.
PHP
969
star
9

learn.jquery.com

jQuery Learning Center web site content
JavaScript
920
star
10

jquery-wp-content

WordPress themes and plugins for the jQuery sites
PHP
253
star
11

jquery-simulate

jQuery Event Unit Testing Helpers
JavaScript
171
star
12

themeroller.jquerymobile.com

ThemeRoller site for jQuery Mobile
CSS
140
star
13

jqueryui.com

jQuery UI web site content
HTML
130
star
14

jquery-dist

Distribution repo for jQuery Core releases
JavaScript
100
star
15

download.jqueryui.com

Download Builder for jQuery UI
JavaScript
85
star
16

jquery.com

jQuery web site content
HTML
80
star
17

api.jqueryui.com

API documentation for jQuery UI
HTML
69
star
18

api.jquerymobile.com

API documentation for jQuery Mobile
HTML
56
star
19

codeorigin.jquery.com

jQuery CDN
JavaScript
55
star
20

jquerymobile.com

jQuery Mobile web site content
HTML
54
star
21

jquery.org

jQuery Foundation web site content
HTML
50
star
22

gsoc

Home for the jQuery Foundations ideas list for Google Summer of Code 2015
41
star
23

grunt-jquery-content

XSLT
38
star
24

eslint-config-jquery

jQuery's eslint config, enforcing the jQuery styleguide
JavaScript
32
star
25

meetings.jquery.org

Calendar and minutes of public jQuery team meetings
JavaScript
27
star
26

testswarm-browserstack

Integration layer between TestSwarm and BrowserStack
JavaScript
26
star
27

typesense-minibar

Fast 2kB autocomplete search bar. Alternative to Algolia DocSearch, InstantSearch, autocomplete-js, and typesense-js.
JavaScript
26
star
28

contribute.jquery.org

Developer documentation common to jQuery projects
HTML
25
star
29

jquery-release

Release automation script for jQuery projects
JavaScript
24
star
30

demos.jquerymobile.com

jQuery Mobile demo site
HTML
21
star
31

2012-dev-summit

Information regarding the 2012 Developer Summit in DC
15
star
32

jquery-license

jQuery Foundation License Verification
JavaScript
12
star
33

2015-developer-summit

a sandbox site for making mistakes
HTML
10
star
34

globalizejs.com

Globalize web site content
JavaScript
10
star
35

brand.jquery.org

Information on jQuery's branding
HTML
8
star
36

events.jquery.org

jQuery Events & Conferences web site content
HTML
8
star
37

irc.jquery.org

jQuery Foundation IRC channels and logs site content
HTML
8
star
38

node-amd-builder

Node.js service to build bundles from amd projects in a git repository
JavaScript
7
star
39

jquery.github.io

HTML
7
star
40

infrastructure-puppet

Puppet configuration for jQuery Infrastructure servers.
Puppet
5
star
41

jquery-compat-dist

Distribution repo for jQuery Core Compat releases
JavaScript
5
star
42

ci-management

Shell
5
star
43

jquery-ui-themeroller

jQuery UI ThemeRoller
JavaScript
3
star
44

content

Content Team
3
star
45

blog.jquery.com-theme

Themes for blogs during transition period to jquery-wp-content.
CSS
2
star
46

node-packager

Build a package for your library or application on the fly on Node.js
JavaScript
2
star