mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 15:33:56 +08:00
refactor(docs): reuse the package guide route builder (#17374)
This commit is contained in:
@@ -458,11 +458,11 @@ export const documentationSections = [
|
||||
text: "Packages and metadata",
|
||||
items: [
|
||||
guideAtRoute("Offline API contract inventory", "/api-contracts"),
|
||||
{
|
||||
text: "CycloneDX dependencies",
|
||||
source: "guides/native/cyclonedx-view.md",
|
||||
route: "/cyclonedx-view",
|
||||
},
|
||||
guideAtRoute(
|
||||
"CycloneDX dependencies",
|
||||
"/cyclonedx-view",
|
||||
"guides/native/",
|
||||
),
|
||||
guideAtRoute(
|
||||
"Maven POM and Gradle module metadata",
|
||||
"/maven-gradle-metadata",
|
||||
@@ -479,64 +479,36 @@ export const documentationSections = [
|
||||
guideAtRoute("Godot PCK archives", "/godot-pck"),
|
||||
guideAtRoute("UnityFS AssetBundle archives", "/unityfs"),
|
||||
guideAtRoute("iNES containers", "/ines-containers"),
|
||||
{
|
||||
text: "Game Boy ROMs",
|
||||
source: "guides/firmware/game-boy-roms.md",
|
||||
route: "/game-boy-roms",
|
||||
},
|
||||
{
|
||||
text: "Game Boy Advance ROMs",
|
||||
source: "guides/firmware/gba-roms.md",
|
||||
route: "/gba-roms",
|
||||
},
|
||||
{
|
||||
text: "Nintendo DS ROMs",
|
||||
source: "guides/firmware/nds-roms.md",
|
||||
route: "/nds-roms",
|
||||
},
|
||||
{
|
||||
text: "Sega Mega Drive ROMs",
|
||||
source: "guides/firmware/mega-drive-roms.md",
|
||||
route: "/mega-drive-roms",
|
||||
},
|
||||
{
|
||||
text: "Nintendo 64 ROMs",
|
||||
source: "guides/firmware/n64-roms.md",
|
||||
route: "/n64-roms",
|
||||
},
|
||||
{
|
||||
text: "PlayStation executables",
|
||||
source: "guides/firmware/psx-exe.md",
|
||||
route: "/psx-exe",
|
||||
},
|
||||
{
|
||||
text: "Flash SWF files",
|
||||
source: "guides/artifacts/swf-artifacts.md",
|
||||
route: "/swf-artifacts",
|
||||
},
|
||||
{
|
||||
text: "Unix ar archives",
|
||||
source: "guides/artifacts/ar-archives.md",
|
||||
route: "/ar-archives",
|
||||
},
|
||||
{
|
||||
text: "MetaTrader compiled programs (EX4 and EX5)",
|
||||
source: "guides/artifacts/mql-programs.md",
|
||||
route: "/mql-programs",
|
||||
},
|
||||
guideAtRoute("Game Boy ROMs", "/game-boy-roms", "guides/firmware/"),
|
||||
guideAtRoute("Game Boy Advance ROMs", "/gba-roms", "guides/firmware/"),
|
||||
guideAtRoute("Nintendo DS ROMs", "/nds-roms", "guides/firmware/"),
|
||||
guideAtRoute(
|
||||
"Sega Mega Drive ROMs",
|
||||
"/mega-drive-roms",
|
||||
"guides/firmware/",
|
||||
),
|
||||
guideAtRoute("Nintendo 64 ROMs", "/n64-roms", "guides/firmware/"),
|
||||
guideAtRoute("PlayStation executables", "/psx-exe", "guides/firmware/"),
|
||||
guideAtRoute("Flash SWF files", "/swf-artifacts", "guides/artifacts/"),
|
||||
guideAtRoute("Unix ar archives", "/ar-archives", "guides/artifacts/"),
|
||||
guideAtRoute(
|
||||
"MetaTrader compiled programs (EX4 and EX5)",
|
||||
"/mql-programs",
|
||||
"guides/artifacts/",
|
||||
),
|
||||
guideAtRoute("WeChat mini-program wxapkg archives", "/wxapkg"),
|
||||
guideAtRoute("macOS flat installer packages", "/macos-pkg"),
|
||||
{
|
||||
text: "ISO 9660 disc images",
|
||||
source: "guides/firmware/iso9660-images.md",
|
||||
route: "/iso9660-images",
|
||||
},
|
||||
guideAtRoute(
|
||||
"ISO 9660 disc images",
|
||||
"/iso9660-images",
|
||||
"guides/firmware/",
|
||||
),
|
||||
guideAtRoute("tar and gzip-compressed tar archives", "/tar-archives"),
|
||||
{
|
||||
text: "Nintendo Switch NSO and NRO executables",
|
||||
source: "guides/firmware/switch-executables.md",
|
||||
route: "/switch-executables",
|
||||
},
|
||||
guideAtRoute(
|
||||
"Nintendo Switch NSO and NRO executables",
|
||||
"/switch-executables",
|
||||
"guides/firmware/",
|
||||
),
|
||||
guideAtRoute(
|
||||
"GPU asset headers: DDS, GLB, KTX and KTX2",
|
||||
"/gpu-asset-headers",
|
||||
|
||||
Reference in New Issue
Block a user