Skip to content

Commit

Permalink
Docs: Update qunitjs.com source in release process
Browse files Browse the repository at this point in the history
Ref #1754.
  • Loading branch information
Krinkle committed Apr 1, 2024
1 parent 9f1cec9 commit 9e2ab6f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
### Added

* CLI: Add `--module` option. (Shachar) [#1680](https://github.com/qunitjs/qunit/issues/1680)
* Core: Add `moduleId` to [`QUnit.begin()`](https://api.qunitjs.com/callbacks/QUnit.begin/) details object.
* Core: Add `moduleId` to [`QUnit.begin()`](https://qunitjs.com/api/callbacks/QUnit.begin/) details object.

### Fixed

Expand Down Expand Up @@ -149,7 +149,7 @@
* Core: The internal `QUnit.onError` and `QUnit.onUnhandledRejection` callbacks are deprecated. [#1638](https://github.com/qunitjs/qunit/pull/1638)

These were undocumented, but may have been used in a fork or other custom runner for QUnit.
Switch to the supported [`QUnit.onUncaughtException`](https://api.qunitjs.com/extension/QUnit.onUncaughtException/) instead.
Switch to the supported [`QUnit.onUncaughtException`](https://qunitjs.com/api/extension/QUnit.onUncaughtException/) instead.

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ project and has since evolved to test any client-side or server-side JavaScript

## Documentation

* [API documentation](https://api.qunitjs.com/)
* [API documentation](https://qunitjs.com/api/)
* [Guides how-to](https://qunitjs.com/guides/)
* [Browser support](https://qunitjs.com/intro/#browser-support)
* [Integrations](https://qunitjs.com/intro/#integrations)
Expand Down
9 changes: 4 additions & 5 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ QUnit aims for its releases to be reproducible. Recent releases are automaticall
>
> * **Permission to publish to the jQuery CDN** via [jquery/codeorigin.jquery.com](https://github.com/jquery/codeorigin.jquery.com).
> * Permission to publish releases to npm for the [`qunit`](https://www.npmjs.com/package/qunit) npm package.
> * Permission to publish the website via [qunitjs/qunit.com](https://github.com/qunitjs/qunitjs.com).
>
> System prerequisites:
>
Expand Down Expand Up @@ -105,19 +104,19 @@ git show

After the release is published, we need to update the website.

Check out the main branch of the [qunitjs/qunitjs.com](https://github.com/qunitjs/qunitjs.com) repository, and ensure it is clean and up-to-date. Run the following script, which will update release links and demos to use the new version:
Check out the main branch of the [qunitjs/qunit](https://github.com/qunitjs/qunit) repository, and ensure it is clean and up-to-date. Run the following script, which will update release links and demos to use the new version:

```
qunitjs.com$ node build/set-version.js <version>
qunit$ node build/site-set-version.js VERSION
```

Stage the changes it made, and commit with the following message:

```
All: Update url and version to <version>
Docs: Update url and version to VERSION
```

Push the commit, and check the website in a few minutes to verify the change ([deployment log](https://github.com/qunitjs/qunitjs.com/deployments/activity_log?environment=github-pages)).
Push the commit to a branch on origin, wait CI checks to complete, then re-push to the main branch. Check the website in a few minutes to verify the change ([deployment log](https://github.com/qunitjs/qunit/deployments/activity_log?environment=github-pages)).

## Final steps

Expand Down
2 changes: 1 addition & 1 deletion src/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class Assert {
// Alias of pushResult.
push (result, actual, expected, message, negative) {
Logger.warn('assert.push is deprecated and will be removed in QUnit 3.0.' +
' Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult).');
' Please use assert.pushResult instead (https://qunitjs.com/api/assert/pushResult).');

const currentAssert = this instanceof Assert ? this : config.current.assert;
return currentAssert.pushResult({
Expand Down
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ extend(QUnit, {

load: function () {
Logger.warn('QUnit.load is deprecated and will be removed in QUnit 3.0.' +
' Refer to <https://api.qunitjs.com/QUnit/load/>.');
' Refer to <https://qunitjs.com/api/QUnit/load/>.');

QUnit.autostart();
},
Expand Down

0 comments on commit 9e2ab6f

Please sign in to comment.