mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-14 05:45:20 +01:00
* Add license information * Add reuse lint workflow * Add snippets for spdx * fix: minor wording adjustments and typo fixes Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * chore: add FileContributor attributions for Bertie Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com> * begin licensing some audio assets * Add pokemon reborn sound affect attribution * Annotate Leavannite's section * Add more licensing info * Add license info to license files ._. * Move ps1 files out of public * Add license for animation jsons * Add license for bat scripts in public * Update licensing in scripts * Fix typo in license ref * Fix AGPL-3.0-or-later * Add license info to typedoc.config.js * Add MIT license for snippets * chore: update license info for files in scripts * chore: update license info * chore: update license info * chore: update license info * Remove licenses used only by public before linting with reuse * Add license info to new files added by docker PR * chore: apply biome * fix: add back linting workflow lost during merge * Add attribution based on Hanniel's information * Add attribution based on Officer Porkchop and Green Ninja's information * add attribution to unicorn_power for reshiram/zekrom/kyurem epic variant * Fixup minor typo * Adjust sprite test to not think REUSE.toml is a sprite json * Add missing continue-on-error to workflow * fix: address kev's comments from code review * docs: minor touchups --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> Co-authored-by: Bertie690 <136088738+Bertie690@users.noreply.github.com>
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
/*
|
|
* SPDX-FileCopyrightText: 2025 Pagefault Games
|
|
* SPDX-FileContributor: Bertie690
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
// @ts-check
|
|
|
|
import { PageKind, Renderer } from "typedoc";
|
|
|
|
/**
|
|
* @module
|
|
* Typedoc plugin to run post-processing on the `index.html` file and replace the coverage SVG
|
|
* for Beta with the newly generated file for the current branch.
|
|
*/
|
|
|
|
/**
|
|
* @param {import('typedoc').Application} app
|
|
*/
|
|
export function load(app) {
|
|
// Don't do anything if no REF_NAME was specified (likely indicating a local docs run)
|
|
if (!process.env.REF_NAME) {
|
|
return;
|
|
}
|
|
app.renderer.on(Renderer.EVENT_END_PAGE, page => {
|
|
if (page.pageKind === PageKind.Index && page.contents) {
|
|
page.contents = page.contents
|
|
// Replace the SVG to the beta documentation site with the current ref name
|
|
.replace(
|
|
/^<a href="(.*?)\/beta(.*?)"><img src=".*coverage.svg"/m, // formatting
|
|
`<a href="$1/${process.env.REF_NAME}$2"><img src="coverage.svg"`,
|
|
);
|
|
}
|
|
});
|
|
}
|