Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions docs-site/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,40 @@ export default defineConfig({
],
components: {
PageTitle: './src/components/PageTitle.astro',
Footer: './src/components/Footer.astro',
ThemeProvider: './src/components/ThemeProvider.astro',
ThemeSelect: './src/components/ThemeSelect.astro',
},
social: [{ icon: 'github', label: 'GitHub Issues', href: 'https://github.com/ShyzosCorp/Dimensional-Chaos-Issues/issues' }],
sidebar: [
{ label: 'Overview', translations: { fr: 'Présentation', 'zh-CN': '概览' }, slug: '' },
{ label: 'Installation', translations: { fr: 'Installation', 'zh-CN': '安装' }, slug: 'installation' },
{ label: 'Getting started', translations: { fr: 'Bien démarrer', 'zh-CN': '新手入门' }, slug: 'getting-started' },
{ label: 'OneBlock progression', translations: { fr: 'Progression du OneBlock', 'zh-CN': 'OneBlock 进度' }, slug: 'oneblock-progression' },
{ label: 'Dimensional expeditions', translations: { fr: 'Expéditions dimensionnelles', 'zh-CN': '维度远征' }, slug: 'dimensional-expeditions' },
{ label: 'Island expansion', translations: { fr: "Agrandir l'île", 'zh-CN': '岛屿扩展' }, slug: 'island-expansion' },
{ label: 'Multiplayer', translations: { fr: 'Multijoueur', 'zh-CN': '多人游戏' }, slug: 'multiplayer' },
{ label: 'Troubleshooting', translations: { fr: 'Dépannage', 'zh-CN': '常见问题' }, slug: 'troubleshooting' },
{
label: 'Start here',
translations: { fr: 'Pour commencer', 'zh-CN': '开始' },
items: [
{ label: 'Overview', translations: { fr: 'Présentation', 'zh-CN': '概览' }, slug: '' },
{ label: 'Installation', translations: { fr: 'Installation', 'zh-CN': '安装' }, slug: 'installation' },
{ label: 'Getting started', translations: { fr: 'Bien démarrer', 'zh-CN': '新手入门' }, slug: 'getting-started' },
],
},
{
label: 'Gameplay',
translations: { fr: 'Gameplay', 'zh-CN': '玩法' },
items: [
{ label: 'OneBlock progression', translations: { fr: 'Progression du OneBlock', 'zh-CN': 'OneBlock 进度' }, slug: 'oneblock-progression' },
{ label: 'Dimensional expeditions', translations: { fr: 'Expéditions dimensionnelles', 'zh-CN': '维度远征' }, slug: 'dimensional-expeditions' },
{ label: 'Island expansion', translations: { fr: "Agrandir l'île", 'zh-CN': '岛屿扩展' }, slug: 'island-expansion' },
],
},
{
label: 'Help',
translations: { fr: 'Aide', 'zh-CN': '帮助' },
items: [
{ label: 'Multiplayer', translations: { fr: 'Multijoueur', 'zh-CN': '多人游戏' }, slug: 'multiplayer' },
{ label: 'Troubleshooting', translations: { fr: 'Dépannage', 'zh-CN': '常见问题' }, slug: 'troubleshooting' },
],
},
],
head: [{ tag: 'meta', attrs: { name: 'theme-color', content: '#1a0b38' } }],
head: [{ tag: 'meta', attrs: { name: 'theme-color', content: '#130d24' } }],
}),
],
});
Binary file added docs-site/src/assets/brick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions docs-site/src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
// Starlight's footer (previous/next links), followed by the site credits bar.
import Default from '@astrojs/starlight/components/Footer.astro';

const locale = Astro.locals.starlightRoute.locale;
const t = {
fr: { tag: 'Guides officiels du joueur', mod: 'Le mod', pack: 'Le modpack', bug: 'Signaler un bug', server: 'Serveur officiel' },
'zh-cn': { tag: '官方玩家指南', mod: '模组', pack: '整合包', bug: '报告 bug', server: '官方服务器' },
}[locale ?? ''] ?? { tag: 'Official player guides', mod: 'The mod', pack: 'The modpack', bug: 'Report a bug', server: 'Official server' };
---

<Default />
<div class="dc-footer">
<p class="dc-footer-brand"><span class="dc-square" aria-hidden="true"></span>Dimensional Chaos · {t.tag}</p>
<p class="dc-footer-links">
<a href="https://www.curseforge.com/minecraft/mc-mods/dimensional-chaos">{t.mod}</a>
<a href="https://www.curseforge.com/minecraft/modpacks/dimensional-chaos-oneblock">{t.pack}</a>
<a href="https://github.com/ShyzosCorp/Dimensional-Chaos-Issues/issues/new/choose">{t.bug}</a>
<span>{t.server}: <code>play-dc.shyzos.xyz</code></span>
</p>
<p class="dc-footer-version">1.1.2 Beta · Minecraft 1.21.1 · NeoForge</p>
</div>
8 changes: 8 additions & 0 deletions docs-site/src/components/ThemeProvider.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
// The site uses one dark, game-style theme, so the theme is fixed to dark.
---

<script is:inline>
document.documentElement.dataset.theme = 'dark';
window.StarlightThemeProvider = { updatePickers() {} };
</script>
3 changes: 3 additions & 0 deletions docs-site/src/components/ThemeSelect.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
// No light/dark switch: the site has a single dark theme (see ThemeProvider.astro).
---
Loading
Loading