chore: sync local workspace changes

This commit is contained in:
Cursor Agent
2026-04-10 04:26:06 +02:00
parent 93c6f31fe4
commit 58c0df760b
25 changed files with 456 additions and 331 deletions

View File

@@ -5,10 +5,9 @@ export const en: HomepageContent = {
...homepageShellEn,
heroLine1: 'Play with mods.',
heroLine2: 'Ship with confidence.',
heroSub1:
'Player guides cover install, Workshop, and common fixes—without engine deep dives.',
heroSub2: 'Authors get hooks, APIs, and repo layout under Developers in the wiki.',
ctaStart: 'Player guides',
heroSub1: 'Players use /players and the mod catalog — install, Workshop, and common fixes.',
heroSub2: 'Authors use /wiki: Getting started, Documentation hub, hooks, and repo layout.',
ctaStart: 'For players',
ctaMods: 'Mod catalog',
ctaModManager: 'Download Greg Mod Manager',
modManagerSectionTitle: 'Greg Mod Manager',
@@ -24,10 +23,10 @@ export const en: HomepageContent = {
'Community',
],
featureDescriptions: [
'Step-by-step install and troubleshooting. No repository jargon on day one.',
'Greg Mod Manager and the release-channels page explain where mods are published.',
'Short paths for players; technical depth lives under Developers.',
'Discord and GitHub for supportdig into gregCore only when you need to.',
'Step-by-step help on /players — no author wiki required.',
'Greg Mod Manager and release channels explain where mods are published.',
'The mod wiki (/wiki) is for authors; structure starts with Getting started.',
'Discord and GitHub for supportdig into gregCore when you build mods.',
],
comingSoon: 'Coming soon',
comingSoonText:

View File

@@ -1,30 +1,25 @@
import type {HomepageContent, HomepageDocLink} from './types';
/** Player-facing wiki entry points */
/** Primary entry points from the homepage */
export const sharedKnowledgeLinksEn: HomepageDocLink[] = [
{
title: 'Wiki home',
description: 'Overview: players, authors, and where each topic lives.',
title: 'For players',
description: 'MelonLoader, Greg Mod Manager, Workshop, troubleshooting — separate from the author wiki.',
link: '/players',
},
{
title: 'Mod author wiki',
description: 'Getting started, hooks, plugins, mods, and reference (this is /wiki).',
link: '/wiki',
},
{
title: 'Player guides',
description: 'Install mods, updates, troubleshooting, and FAQs.',
link: '/wiki/guides/players/overview',
},
{
title: 'Greg Mod Manager',
description: 'Desktop app for the Workshop: browse, install, and manage mods.',
link: '/wiki/guides/players/enduser-workshop',
},
{
title: 'Release channels',
description: 'Where builds come from: Steam Workshop and GitHub.',
description: 'Where builds ship: Steam Workshop and GitHub Releases.',
link: '/wiki/reference/release-channels',
},
{
title: 'Mod catalog',
description: 'Listings with docs, versions, and download links.',
description: 'Modules with docs, versions, and download links.',
link: '/mods',
},
];
@@ -32,8 +27,13 @@ export const sharedKnowledgeLinksEn: HomepageDocLink[] = [
/** Authors and repo contributors */
export const sharedWorkflowLinksEn: HomepageDocLink[] = [
{
title: 'Developers hub',
description: 'Framework, hooks, plugins, reference material, and roadmap.',
title: 'Getting started',
description: 'Workspace layout, build gregCore, hooks and registries.',
link: '/wiki/getting-started',
},
{
title: 'Documentation hub',
description: 'Full index: framework, plugins, mods, releases, roadmap.',
link: '/wiki/developers',
},
{
@@ -73,7 +73,7 @@ export const homepageShellEn: Pick<
workflowSectionTitle: 'For authors and contributors',
codeSectionTitle: 'How mods connect to the game',
codeSectionLead:
'Mods use MelonLoader and Harmony. gregCore turns game methods into stable greg.* events your code can subscribe to—details are under Developers.',
'Mods use MelonLoader and Harmony. gregCore turns game methods into stable greg.* events your code can subscribe to — see the mod author wiki and Documentation hub.',
codeSnippetCaption: 'Random excerpt from gregCore',
codeSnippetLoading: 'Loading code sample…',
codeSectionBullets: [

View File

@@ -101,7 +101,7 @@ export default function HomePage(): JSX.Element {
return (
<Layout
title="Home"
description="gregFramework documentation: player guides, mod catalog, and developer references for Data Center Simulator."
description="gregFramework: player help at /players, mod catalog, and mod-author wiki at /wiki for Data Center Simulator."
>
<main className="bg-background text-on-surface font-sans min-h-screen editorial-bleed bg-hero-gradient">
<section className="hero-motion-wrap relative flex min-h-[72vh] flex-col items-center justify-center overflow-hidden px-4 py-24 text-center">
@@ -169,10 +169,7 @@ export default function HomePage(): JSX.Element {
variants={variants.textReveal}
transition={{delay: reducedMotion ? 0 : 0.22}}
>
<Link
to="/wiki/guides/players/overview"
className="btn-primary hero-glow rounded-lg px-8 py-4 text-lg md:px-10"
>
<Link to="/players" className="btn-primary hero-glow rounded-lg px-8 py-4 text-lg md:px-10">
{t.ctaStart}
</Link>
<Link to="/mods" className="btn-outline rounded-lg px-8 py-4 text-lg md:px-10">

148
src/pages/players.tsx Normal file
View File

@@ -0,0 +1,148 @@
import React from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
const GREG_MODMANAGER_LATEST =
'https://github.com/mleem97/GregToolsModmanager/releases/latest';
const STEAM_STORE = 'https://store.steampowered.com/app/4170200/';
const STEAM_WORKSHOP = 'https://steamcommunity.com/workshop/browse/?appid=4170200';
export default function PlayersPage(): JSX.Element {
return (
<Layout
title="For players"
description="Install and use Data Center Simulator mods: MelonLoader, Greg Mod Manager, Workshop, and troubleshooting."
>
<main className="bg-background text-on-surface mx-auto max-w-3xl px-4 py-16 font-sans">
<p className="mb-2 text-sm font-semibold uppercase tracking-wider text-primary">
Not for mod authors
</p>
<h1 className="mb-4 font-headline text-4xl font-bold tracking-tight">
Playing with mods
</h1>
<p className="mb-10 text-lg leading-relaxed text-on-surface-variant">
This page is for <strong>players</strong> who install and run mods. Technical documentation
for writing mods is in the{' '}
<Link to="/wiki" className="text-primary underline-offset-2 hover:underline">
mod author wiki
</Link>{' '}
(<code className="text-sm">/wiki</code>).
</p>
<section id="requirements" className="mb-12 scroll-mt-20">
<h2 className="mb-3 font-headline text-2xl font-bold">What you need</h2>
<ul className="list-inside list-disc space-y-2 text-on-surface-variant">
<li>
<a href={STEAM_STORE} className="text-primary hover:underline">
Data Center Simulator
</a>{' '}
on Steam (AppID 4170200)
</li>
<li>Steam running and logged in for Workshop items</li>
<li>
<strong>MelonLoader</strong> (IL2CPP) required for almost all mods; install once per game
</li>
</ul>
</section>
<section id="melonloader" className="mb-12 scroll-mt-20">
<h2 className="mb-3 font-headline text-2xl font-bold">MelonLoader</h2>
<ol className="list-inside list-decimal space-y-2 text-on-surface-variant">
<li>Download the latest MelonLoader installer from the official MelonLoader GitHub.</li>
<li>Run it, select <strong>Data Center Simulator</strong>, choose the <strong>IL2CPP</strong> profile.</li>
<li>Start the game once and exit so interop assemblies are generated.</li>
<li>If something fails, check <code className="text-sm">MelonLoader/Latest.log</code> in the game folder.</li>
</ol>
<p className="mt-4 text-sm text-on-surface-variant">
<strong>Greg Mod Manager</strong> includes a Health tab that checks MelonLoader and related
folders useful if a mod does not load.
</p>
</section>
<section id="mod-manager" className="mb-12 scroll-mt-20">
<h2 className="mb-3 font-headline text-2xl font-bold">Greg Mod Manager</h2>
<p className="mb-4 leading-relaxed text-on-surface-variant">
Desktop app (release builds may still ship as <code className="text-sm">WorkshopUploader.exe</code>)
for browsing the in-app mod store, subscribing via Steam, and checking dependency health.
</p>
<a
href={GREG_MODMANAGER_LATEST}
target="_blank"
rel="noopener noreferrer"
className="btn-primary inline-block rounded-lg px-6 py-3 font-semibold"
>
Download latest release
</a>
<p className="mt-3 text-sm text-on-surface-variant">
Uses GitHubs <code className="text-sm">/releases/latest</code> redirect so the link always
points at the newest build.
</p>
</section>
<section id="workshop" className="mb-12 scroll-mt-20">
<h2 className="mb-3 font-headline text-2xl font-bold">Steam Workshop</h2>
<p className="mb-4 leading-relaxed text-on-surface-variant">
Most public mods are published on the{' '}
<a href={STEAM_WORKSHOP} className="text-primary hover:underline">
Steam Workshop
</a>
. Subscribe in Steam or via Greg Mod Manager; Steam keeps items updated.
</p>
</section>
<section id="releases" className="mb-12 scroll-mt-20">
<h2 className="mb-3 font-headline text-2xl font-bold">Steam vs GitHub</h2>
<p className="leading-relaxed text-on-surface-variant">
<strong>Workshop</strong> is the usual place for stable, discoverable releases.{' '}
<strong>GitHub Releases</strong> are often used for betas or direct DLL downloads. Mod
authors document where each build is published on the{' '}
<Link to="/mods" className="text-primary hover:underline">
mod catalog
</Link>{' '}
and in the author wiki.
</p>
</section>
<section id="catalog" className="mb-12 scroll-mt-20">
<h2 className="mb-3 font-headline text-2xl font-bold">Mod catalog</h2>
<p className="mb-4 leading-relaxed text-on-surface-variant">
Browse modules with short descriptions and links to docs and downloads.
</p>
<Link to="/mods" className="btn-outline inline-block rounded-lg px-6 py-3 font-semibold">
Open mod catalog
</Link>
</section>
<section id="help" className="mb-12 scroll-mt-20 rounded-xl border border-outline-variant/20 bg-surface-container-high p-6">
<h2 className="mb-3 font-headline text-2xl font-bold">Help</h2>
<p className="mb-4 text-on-surface-variant">
For install issues, crashes, or compatibility questions, ask on Discord. For bugs in a
specific mod, use the link on its catalog or Workshop page.
</p>
<Link
to="https://discord.gg/greg"
className="btn-primary inline-flex rounded-lg px-6 py-3 font-semibold"
>
Discord
</Link>
</section>
<section className="border-t border-outline-variant/20 pt-10">
<h2 className="mb-3 font-headline text-xl font-bold">Writing mods?</h2>
<p className="mb-4 text-on-surface-variant">
Use the wiki under <Link to="/wiki">/wiki</Link>: start with{' '}
<Link to="/wiki/getting-started" className="text-primary hover:underline">
Getting started
</Link>{' '}
and the{' '}
<Link to="/wiki/developers" className="text-primary hover:underline">
documentation hub
</Link>
.
</p>
</section>
</main>
</Layout>
);
}

View File

@@ -1,25 +0,0 @@
import React, {useEffect} from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
export default function WikiLandingPage(): JSX.Element {
useEffect(() => {
if (typeof window !== 'undefined') {
window.location.replace('/wiki/docs');
}
}, []);
return (
<Layout title="Wiki" description="Wiki entrypoint">
<main className="bg-background min-h-screen text-on-surface px-4 py-16">
<section className="mx-auto max-w-3xl text-center app-card app-card-glow glass-card rounded-xl p-8">
<h1 className="font-headline text-3xl font-bold text-on-surface mb-3">Wiki</h1>
<p className="text-on-surface-variant mb-6">Redirecting to the wiki overview...</p>
<Link to="/wiki/docs" className="button button--primary">
Open Wiki Overview
</Link>
</section>
</main>
</Layout>
);
}