Skip to content

Commit

Permalink
config: add sidebar/navbar and initial translation support
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Sep 25, 2024
1 parent e762d86 commit e3fece1
Show file tree
Hide file tree
Showing 6 changed files with 435 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ import { defineConfig } from 'vitepress'

import container from 'markdown-it-container'

import * as i18n from './i18n'

export default defineConfig({
title: "Wii Hacks Guide",
description: "The complete guide to modding your Wii, vWii, and Wii mini",
locales: {
root: i18n.en_US
},
vite: {
resolve: {
alias: [
Expand Down
379 changes: 379 additions & 0 deletions docs/.vitepress/i18n/en_US.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,379 @@
import { en_US as localeData } from './strings'

const sidebar_common = {
text: localeData.other,
items: [
{ text: localeData.pages["donations"], link: `/donations` },
{ text: localeData.pages["privacy-policy"], link: `/privacy-policy` },
{ text: localeData.pages["site-navigation"], link: `/site-navigation` }
]
}

const themeConfig = {
langMenuLabel: localeData.langMenuLabel,
darkModeSwitchLabel: localeData.darkModeSwitchLabel,
darkModeSwitchTitle: localeData.darkModeSwitchTitle,
lightModeSwitchTitle: localeData.lightModeSwitchTitle,
sidebarMenuLabel: localeData.sidebarMenuLabel,
returnToTopLabel: localeData.returnToTopLabel,

nav: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["faq"], link: `/faq` }
],
sidebar: {
[`/bluebomb`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["bluebomb" ], link: `/bluebomb` },
{ text: localeData.pages["multiple-options"] }
]
},
sidebar_common
],
[`/bootmii`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["hbc"], link: `/hbc` },
{ text: localeData.pages["bootmii"], link: `/bootmii` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios"], link: `/cios` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/cios-mini`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["bluebomb" ], link: `/bluebomb` },
{ text: localeData.pages["hbc-mini"], link: `/hbc-mini` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-mini"], link: `/cios-mini` },
{ text: localeData.pages["wnd-mini"], link: `/wnd-mini` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/cios-vwii`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-vwii"], link: `/cios-vwii` },
{ text: localeData.pages["vwii-finalizing-setup"], link: `/vwii-finalizing-setup` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/cios`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["hbc"], link: `/hbc` },
{ text: localeData.pages["bootmii"], link: `/bootmii` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios"], link: `/cios` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/hbc-mini`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["bluebomb" ], link: `/bluebomb` },
{ text: localeData.pages["hbc-mini"], link: `/hbc-mini` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-mini"], link: `/cios-mini` },
{ text: localeData.pages["wnd-mini"], link: `/wnd-mini` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/hbc`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["hbc"], link: `/hbc` },
{ text: localeData.pages["bootmii"], link: `/bootmii` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios"], link: `/cios` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/flashhax`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["flashhax"], link: `/flashhax` },
{ text: localeData.pages["hbc"], link: `/hbc` },
{ text: localeData.pages["bootmii"], link: `/bootmii` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios"], link: `/cios` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/letterbomb`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["letterbomb"], link: `/letterbomb` },
{ text: localeData.pages["hbc"], link: `/hbc` },
{ text: localeData.pages["bootmii"], link: `/bootmii` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios"], link: `/cios` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/osc`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/priiloader`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["multiple-options"] }
]
},
sidebar_common
],
[`/recommended-homebrew`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/str2hax`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["str2hax"], link: `/str2hax` },
{ text: localeData.pages["hbc"], link: `/hbc` },
{ text: localeData.pages["bootmii"], link: `/bootmii` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios"], link: `/cios` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/vwii-finalizing-setup`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-vwii"], link: `/cios-vwii` },
{ text: localeData.pages["vwii-finalizing-setup"], link: `/vwii-finalizing-setup` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/vwii-homebrew-channel-no-wiiu-mods`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["wiiu-nand-dumper"], link: `/wiiu-nand-dumper` },
{ text: localeData.pages["vwii-homebrew-channel-no-wiiu-mods"], link: `/vwii-homebrew-channel-no-wiiu-mods` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-vwii"], link: `/cios-vwii` },
{ text: localeData.pages["vwii-finalizing-setup"], link: `/vwii-finalizing-setup` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/vwii-homebrew-channel`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["vwii-homebrew-channel"], link: `/vwii-homebrew-channel` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-vwii"], link: `/cios-vwii` },
{ text: localeData.pages["vwii-finalizing-setup"], link: `/vwii-finalizing-setup` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/wiiconnect24`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/wiiu-nand-dumper`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["wiiu-nand-dumper"], link: `/wiiu-nand-dumper` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-vwii"], link: `/cios-vwii` },
{ text: localeData.pages["vwii-finalizing-setup"], link: `/vwii-finalizing-setup` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/wilbrand`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["wiiu-nand-dumper"], link: `/wiiu-nand-dumper` },
{ text: localeData.pages["vwii-homebrew-channel-no-wiiu-mods"], link: `/vwii-homebrew-channel-no-wiiu-mods` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-vwii"], link: `/cios-vwii` },
{ text: localeData.pages["vwii-finalizing-setup"], link: `/vwii-finalizing-setup` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
[`/wnd-mini`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["bluebomb" ], link: `/bluebomb` },
{ text: localeData.pages["hbc-mini"], link: `/hbc-mini` },
{ text: localeData.pages["priiloader"], link: `/priiloader` },
{ text: localeData.pages["cios-mini"], link: `/cios-mini` },
{ text: localeData.pages["wnd-mini"], link: `/wnd-mini` },
{ text: localeData.pages["osc"], link: `/osc` },
{ text: localeData.pages["recommended-homebrew"], link: `/recommended-homebrew` },
{ text: localeData.pages["wiiconnect24"], link: `/wiiconnect24` },
{ text: localeData.pages["wiimmfi"], link: `/wiimmfi` }
]
},
sidebar_common
],
/*
The `/` path needs to be at the bottom as a catch all! If it is placed anywhere above,
it will select the first matching one and not parse the rest!
*/
[`/`]: [
{
text: localeData.guide,
items: [
{ text: localeData.pages["get-started"], link: `/get-started` },
{ text: localeData.pages["multiple-options"] }
]
},
sidebar_common
],
}
};

export default {
lang: "en",
label: localeData.language,
title: localeData.title,
description: localeData.description,
themeConfig: themeConfig
}
3 changes: 3 additions & 0 deletions docs/.vitepress/i18n/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import en_US from './en_US'

export { en_US }
Loading

0 comments on commit e3fece1

Please sign in to comment.