Skip to content

Commit c6679ae

Browse files
authored
docs: Use https when possible. (#1597)
* Use https when possible. * Readme.md: fix badges
1 parent cd4a4d9 commit c6679ae

File tree

10 files changed

+66
-66
lines changed

10 files changed

+66
-66
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ how we'd like to work with you:
1717
# Documentation
1818

1919
Any API change should be reflected in the project's README.md file. Reuse
20-
[jQuery's documentation](http://api.jquery.com) wherever possible, but take
20+
[jQuery's documentation](https://api.jquery.com) wherever possible, but take
2121
care to note aspects that make Cheerio distinct.
2222

2323
# Code Style

Readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<h5 align="center">Fast, flexible & lean implementation of core jQuery designed specifically for the server.</h5>
44

55
<div align="center">
6-
<a href="http://travis-ci.org/cheeriojs/cheerio">
7-
<img src="https://secure.travis-ci.org/cheeriojs/cheerio.svg?branch=master" alt="Travis CI" />
6+
<a href="https://travis-ci.org/cheeriojs/cheerio">
7+
<img src="https://travis-ci.org/cheeriojs/cheerio.svg?branch=main" alt="Travis CI" />
88
</a>
99
<a href="https://coveralls.io/r/cheeriojs/cheerio">
10-
<img src="http://img.shields.io/coveralls/cheeriojs/cheerio.svg?branch=master&style=flat" alt="Coverage" />
10+
<img src="https://img.shields.io/coveralls/cheeriojs/cheerio.svg?branch=main&style=flat" alt="Coverage" />
1111
</a>
1212
<a href="https://gitter.im/cheeriojs/cheerio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge">
1313
<img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/cheeriojs/cheerio" />
@@ -259,7 +259,7 @@ Cheerio collections are made up of objects that bear some resemblance to [browse
259259

260260
## Screencasts
261261

262-
http://vimeo.com/31950192
262+
https://vimeo.com/31950192
263263

264264
> This video tutorial is a follow-up to Nettut's "How to Scrape Web Pages with Node.js and jQuery", using cheerio instead of JSDOM + jQuery. This video shows how easy it is to use cheerio and how much faster cheerio is than JSDOM + jQuery.
265265

lib/api/attributes.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function setAttr(el, name, value) {
9999
*
100100
* @param {string} name - Name of the attribute.
101101
* @param {string} [value] - If specified sets the value of the attribute.
102-
* @see {@link http://api.jquery.com/attr/}
102+
* @see {@link https://api.jquery.com/attr/}
103103
*
104104
* @returns {string | Cheerio} If `value` is specified the instance itself,
105105
* otherwise the attribute's value.
@@ -176,7 +176,7 @@ function setProp(el, name, value) {
176176
*
177177
* @param {string} name - Name of the property.
178178
* @param {any} [value] - If specified set the property to this.
179-
* @see {@link http://api.jquery.com/prop/}
179+
* @see {@link https://api.jquery.com/prop/}
180180
*
181181
* @returns {string | Cheerio} If `value` is specified the instance itself,
182182
* otherwise the prop's value.
@@ -323,7 +323,7 @@ function readData(el, name) {
323323
*
324324
* @param {string} name - Name of the attribute.
325325
* @param {any} [value] - If specified new value.
326-
* @see {@link http://api.jquery.com/data/}
326+
* @see {@link https://api.jquery.com/data/}
327327
*
328328
* @returns {string | Cheerio} If `value` is specified the instance itself,
329329
* otherwise the data attribute's value.
@@ -367,7 +367,7 @@ exports.data = function (name, value) {
367367
* //=> <input type="text" value="test"/>
368368
*
369369
* @param {string} [value] - If specified new value.
370-
* @see {@link http://api.jquery.com/val/}
370+
* @see {@link https://api.jquery.com/val/}
371371
*
372372
* @returns {string | Cheerio} If a new `value` is specified the instance
373373
* itself, otherwise the value.
@@ -445,7 +445,7 @@ function splitNames(names) {
445445
* //=> <li>Apple</li>
446446
*
447447
* @param {string} name - Name of the attribute.
448-
* @see {@link http://api.jquery.com/removeAttr/}
448+
* @see {@link https://api.jquery.com/removeAttr/}
449449
*
450450
* @returns {Cheerio} The instance itself.
451451
*/
@@ -475,7 +475,7 @@ exports.removeAttr = function (name) {
475475
* //=> true
476476
*
477477
* @param {string} className - Name of the class.
478-
* @see {@link http://api.jquery.com/hasClass/}
478+
* @see {@link https://api.jquery.com/hasClass/}
479479
*
480480
* @returns {boolean} Indicates if an element has the given `className`.
481481
*/
@@ -510,7 +510,7 @@ exports.hasClass = function (className) {
510510
* //=> <li class="apple fruit red">Apple</li>
511511
*
512512
* @param {string} value - Name of new class.
513-
* @see {@link http://api.jquery.com/addClass/}
513+
* @see {@link https://api.jquery.com/addClass/}
514514
*
515515
* @returns {Cheerio} The instance itself.
516516
*/
@@ -567,7 +567,7 @@ exports.addClass = function (value) {
567567
* //=> <li class="">Apple</li>
568568
*
569569
* @param {string} value - Name of the class.
570-
* @see {@link http://api.jquery.com/removeClass/}
570+
* @see {@link https://api.jquery.com/removeClass/}
571571
*
572572
* @returns {Cheerio} The instance itself.
573573
*/
@@ -629,7 +629,7 @@ exports.removeClass = function (value) {
629629
*
630630
* @param {string | Function} value - Name of the class. Can also be a function.
631631
* @param {boolean} [stateVal] - If specified the state of the class.
632-
* @see {@link http://api.jquery.com/toggleClass/}
632+
* @see {@link https://api.jquery.com/toggleClass/}
633633
*
634634
* @returns {Cheerio} The instance itself.
635635
*/
@@ -687,7 +687,7 @@ exports.toggleClass = function (value, stateVal) {
687687
* so `this` refers to the current element.
688688
*
689689
* @param {string | Function | Cheerio | Node} selector - Selector for the selection.
690-
* @see {@link http://api.jquery.com/is/}
690+
* @see {@link https://api.jquery.com/is/}
691691
*
692692
* @returns {Cheerio} The instance itself.
693693
*/

lib/api/css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var toString = Object.prototype.toString;
1010
*
1111
* @param {string | object} prop - The name of the property.
1212
* @param {string} [val] - If specified the new value.
13-
* @see {@link http://api.jquery.com/css/}
13+
* @see {@link https://api.jquery.com/css/}
1414
*
1515
* @returns {Cheerio} The instance itself.
1616
*/

lib/api/forms.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var rCRLF = /\r?\n/g;
99
/**
1010
* Encode a set of form elements as a string for submission.
1111
*
12-
* @see {@link http://api.jquery.com/serialize/}
12+
* @see {@link https://api.jquery.com/serialize/}
1313
*
1414
* @returns {string} The serialized form.
1515
*/
@@ -33,7 +33,7 @@ exports.serialize = function () {
3333
* $('<form><input name="foo" value="bar" /></form>').serializeArray();
3434
* //=> [ { name: 'foo', value: 'bar' } ]
3535
*
36-
* @see {@link http://api.jquery.com/serializeArray/}
36+
* @see {@link https://api.jquery.com/serializeArray/}
3737
*
3838
* @returns {object[]} The serialized form.
3939
*/

lib/api/manipulation.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function uniqueSplice(array, spliceIdx, spliceCount, newElems, parent) {
129129
* // </ul>
130130
*
131131
* @param {string | Cheerio} target - Element to append elements to.
132-
* @see {@link http://api.jquery.com/appendTo/}
132+
* @see {@link https://api.jquery.com/appendTo/}
133133
*
134134
* @returns {Cheerio} The instance itself.
135135
*/
@@ -162,7 +162,7 @@ exports.appendTo = function (target) {
162162
* // </ul>
163163
*
164164
* @param {string | Cheerio} target - Element to prepend elements to.
165-
* @see {@link http://api.jquery.com/prependTo/}
165+
* @see {@link https://api.jquery.com/prependTo/}
166166
*
167167
* @returns {Cheerio} The instance itself.
168168
*/
@@ -196,7 +196,7 @@ exports.prependTo = function (target) {
196196
*
197197
* @function
198198
*
199-
* @see {@link http://api.jquery.com/append/}
199+
* @see {@link https://api.jquery.com/append/}
200200
*/
201201
exports.append = _insert(function (dom, children, parent) {
202202
uniqueSplice(children, children.length, 0, dom, parent);
@@ -217,7 +217,7 @@ exports.append = _insert(function (dom, children, parent) {
217217
*
218218
* @function
219219
*
220-
* @see {@link http://api.jquery.com/prepend/}
220+
* @see {@link https://api.jquery.com/prepend/}
221221
*/
222222
exports.prepend = _insert(function (dom, children, parent) {
223223
uniqueSplice(children, 0, 0, dom, parent);
@@ -303,7 +303,7 @@ function _wrap(insert) {
303303
*
304304
* @param {Cheerio} wrapper - The DOM structure to wrap around each element in
305305
* the selection.
306-
* @see {@link http://api.jquery.com/wrap/}
306+
* @see {@link https://api.jquery.com/wrap/}
307307
*/
308308
exports.wrap = _wrap(function (el, elInsertLocation, wrapperDom) {
309309
var parent = el.parent;
@@ -353,7 +353,7 @@ exports.wrap = _wrap(function (el, elInsertLocation, wrapperDom) {
353353
*
354354
* @param {Cheerio} wrapper - The DOM structure to wrap around the content of
355355
* each element in the selection.
356-
* @see {@link http://api.jquery.com/wrapInner/}
356+
* @see {@link https://api.jquery.com/wrapInner/}
357357
*/
358358
exports.wrapInner = _wrap(function (el, elInsertLocation, wrapperDom) {
359359
updateDOM(el.children, elInsertLocation);
@@ -453,7 +453,7 @@ exports.wrapAll = function (wrapper) {
453453
* // <li class="pear">Pear</li>
454454
* // </ul>
455455
*
456-
* @see {@link http://api.jquery.com/after/}
456+
* @see {@link https://api.jquery.com/after/}
457457
*
458458
* @returns {Cheerio} The instance itself.
459459
*/
@@ -499,7 +499,7 @@ exports.after = function () {
499499
* // </ul>
500500
*
501501
* @param {string | Cheerio} target - Element to insert elements after.
502-
* @see {@link http://api.jquery.com/insertAfter/}
502+
* @see {@link https://api.jquery.com/insertAfter/}
503503
*
504504
* @returns {Cheerio} The set of newly inserted elements.
505505
*/
@@ -549,7 +549,7 @@ exports.insertAfter = function (target) {
549549
* // <li class="pear">Pear</li>
550550
* // </ul>
551551
*
552-
* @see {@link http://api.jquery.com/before/}
552+
* @see {@link https://api.jquery.com/before/}
553553
*
554554
* @returns {Cheerio} The instance itself.
555555
*/
@@ -595,7 +595,7 @@ exports.before = function () {
595595
* // </ul>
596596
*
597597
* @param {string | Cheerio} target - Element to insert elements before.
598-
* @see {@link http://api.jquery.com/insertBefore/}
598+
* @see {@link https://api.jquery.com/insertBefore/}
599599
*
600600
* @returns {Cheerio} The set of newly inserted elements.
601601
*/
@@ -645,7 +645,7 @@ exports.insertBefore = function (target) {
645645
* // </ul>
646646
*
647647
* @param {string} [selector] - Optional selector for elements to remove.
648-
* @see {@link http://api.jquery.com/remove/}
648+
* @see {@link https://api.jquery.com/remove/}
649649
*
650650
* @returns {Cheerio} The instance itself.
651651
*/
@@ -675,7 +675,7 @@ exports.remove = function (selector) {
675675
* // </ul>
676676
*
677677
* @param {Cheerio | Function} content - Replacement for matched elements.
678-
* @see {@link http://api.jquery.com/replaceWith/}
678+
* @see {@link https://api.jquery.com/replaceWith/}
679679
*
680680
* @returns {Cheerio} The instance itself.
681681
*/
@@ -714,7 +714,7 @@ exports.replaceWith = function (content) {
714714
* $.html();
715715
* //=> <ul id="fruits"></ul>
716716
*
717-
* @see {@link http://api.jquery.com/empty/}
717+
* @see {@link https://api.jquery.com/empty/}
718718
*
719719
* @returns {Cheerio} The instance itself.
720720
*/
@@ -740,7 +740,7 @@ exports.empty = function () {
740740
* //=> <li class="mango">Mango</li>
741741
*
742742
* @param {string} str - If specified used to replace selection's contents.
743-
* @see {@link http://api.jquery.com/html/}
743+
* @see {@link https://api.jquery.com/html/}
744744
*
745745
* @returns {Cheerio} The instance itself.
746746
*/
@@ -789,7 +789,7 @@ exports.toString = function () {
789789
* // Pear
790790
*
791791
* @param {string} [str] - If specified replacement for the selected element's contents.
792-
* @see {@link http://api.jquery.com/text/}
792+
* @see {@link https://api.jquery.com/text/}
793793
*
794794
* @returns {Cheerio | string} The instance itself when setting text, otherwise
795795
* the rendered document.
@@ -823,7 +823,7 @@ exports.text = function (str) {
823823
* @example
824824
* const moreFruit = $('#fruits').clone();
825825
*
826-
* @see {@link http://api.jquery.com/clone/}
826+
* @see {@link https://api.jquery.com/clone/}
827827
*
828828
* @returns {Cheerio} The cloned object.
829829
*/

0 commit comments

Comments
 (0)