refactor(launcher): open mod documentation on wto-project.net
Replace the local offline HTML mod docs viewer in the launcher Mods page with a direct link to https://wto-project.net/mod-docs, remove the unused mods:openDocs IPC path and resource entry, and drop build-mod-docs-html.ts from Windows packaging while keeping bundled mod templates intact. Root typecheck, launcher typecheck, and electron-vite build passed.
This commit is contained in:
1 parent
742094ea1e
commit
02fe867cf1
7 files changed
+4
-439
No files matched your search
@@ -7,6 +7,8 @@ import { Sheet } from '../../components/Sheet.tsx';
|
||||
import { ipcInvoke } from '../../ipc.ts';
|
||||
import type { ModsSection } from '../../shell/navigation.ts';
|
||||
|
||||
const MOD_DOCS_URL = 'https://wto-project.net/mod-docs';
|
||||
|
||||
interface Props {
|
||||
readonly copy: InstallRecord;
|
||||
readonly section: ModsSection;
|
||||
@@ -255,9 +257,9 @@ export function ModsPage({ copy, section, readOnly, onError }: Props) {
|
||||
<button type="button" className="button" onClick={() => ipcInvoke('mods:openFolder').catch(onError)}>
|
||||
{t('mods.openFolder')}
|
||||
</button>
|
||||
<button type="button" className="button" onClick={() => ipcInvoke('mods:openDocs', { language: i18n.language }).catch(onError)}>
|
||||
<a className="button" href={MOD_DOCS_URL} target="_blank" rel="noreferrer">
|
||||
{t('mods.openDocs')}
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{state.discoveryErrors.length > 0 && (
|
||||
|
||||
Reference in new issue
Block a user