-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from adrianocastro189/release/version-1.3.0
Release - v1.3.0
- Loading branch information
Showing
63 changed files
with
3,157 additions
and
1,263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/dist/* | ||
.videos | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
function postprocess_html(html) | ||
-- uncomment the following line if this is needed in the future | ||
-- function postprocess_html(html) | ||
-- removes the "last updated <i> tag at the documentation folder | ||
-- example: <i style="float:right;">Last updated 2024-04-27 16:27:57 </i> | ||
-- this is good to avoid many .html changes for each commit when the ldoc | ||
-- generator is executed | ||
return html:gsub('<i%s+style="float:right;">Last%s+updated%s+[%d%-: ]+%s+</i>\n', '') | ||
end | ||
-- return html:gsub('<i%s+style="float:right;">Last%s+updated%s+[%d%-: ]+%s+</i>\n', '') | ||
-- end | ||
|
||
sort=true | ||
postprocess_html=postprocess_html | ||
-- uncomment the following line if this is needed in the future | ||
-- postprocess_html=postprocess_html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Documentation | ||
|
||
The Stormwind Library documentation is built on top of | ||
[Docusaurus](https://docusaurus.io/) and is hosted on | ||
[GitHub Pages](https://pages.github.com/). | ||
|
||
When working on any part of the library, it is important to keep the documentation | ||
up-to-date. This includes updating the documentation for any new features or changes | ||
that are made to the library. | ||
|
||
## Documentation deployment process | ||
|
||
**Single time setup** | ||
|
||
Although the following steps need to be done only once, it is important to keep them | ||
documented in case the library is moved to a new repository or even if it requires some | ||
additional page in the future. | ||
|
||
1. Open the `documentation\docusaurus.config.js` file and update the following properties: | ||
* `url` - `'https://adrianocastro189.github.io'` | ||
* `baseUrl` - `'/stormwind-library/'` | ||
* `projectName` - `'stormwind-library'` | ||
* `organizationName` - `'adrianocastro189'` | ||
1. Open the terminal | ||
1. Navigate to the `documentation` directory and run | ||
```shell | ||
npm run build | ||
``` | ||
1. Confirm that the `documentation/build` directory was created | ||
1. Install `gh-pages` with the following command: | ||
```shell | ||
npm install --save-dev gh-pages | ||
``` | ||
1. Open `documentation\package.json` and update the `scripts.deploy` property to: | ||
```json | ||
"deploy": "gh-pages -d build" | ||
``` | ||
1. Run the deployment command described after these steps | ||
1. Go to [GitHub Pages](https://github.com/adrianocastro189/stormwind-library/settings/pages) | ||
1. Select **Deploy from a branch** and choose the `gh-pages` branch (root directory) | ||
1. Click save | ||
|
||
**Deploying the documentation** | ||
|
||
1. Open the terminal | ||
1. Navigate to the `documentation` directory and run | ||
```shell | ||
npm run build | ||
npm run deploy | ||
``` | ||
1. If running it for the first time, make sure to check if a `gh-pages` branch was created | ||
and pushed to the repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# API Mocks | ||
|
||
The `tests/wow-mocks.lua` file contains a set of mocks for the World of | ||
Warcraft API. These mocks are used to simulate the behavior of the WoW API in | ||
a controlled environment, allowing addon developers to test their code | ||
without needing to run the game. | ||
|
||
It's important to note that these mocks are not a complete replacement for | ||
the WoW API nor behave like it. They are designed to provide a way to assert | ||
that addons are interacting with the WoW API correctly. | ||
|
||
As an example, it shouldn't be expected that events will be fired in the same | ||
way they're fired in the game when listeners are registered to frames. It's | ||
just a way to assert that the addon registers the listener correctly, and | ||
that's all for now. | ||
|
||
:::note Look out for future implementations | ||
|
||
Although the API Mocks are just a way to make a consistent environment for | ||
testing, there are plans to make them more robust and closer to the real | ||
WoW API in a way that they can provide more values to the tests. | ||
|
||
Keep an eye on the updates to see what's new in the API Mocks. | ||
|
||
::: | ||
|
||
## Usage | ||
|
||
To use the API Mocks in your tests, simply copy the `tests/wow-mocks.lua` file | ||
to the `tests` directory of the addon. | ||
|
||
Feel free to add more mocks, especially to the frame methods, as they are | ||
the most used in the addons. Also, feel free to [open a PR](https://github.com/adrianocastro189/stormwind-library/fork) | ||
with the new mocks so they can be shared with the community. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
--- | ||
sidebar_position: 1 | ||
title: Unit Suite | ||
--- | ||
# Unit Suite | ||
|
||
:::note Lua version | ||
|
||
|
Oops, something went wrong.