Skip to content

Commit f9858dd

Browse files
committed
Fix docs image tags and stub storage
1 parent 048efef commit f9858dd

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

docs/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ It’s recommended to follow the following steps to set up JIT-Less mode for usi
2828
## Downloads
2929
### Stable:
3030
<a href="https://celloserenity.github.io/altdirect/?url=https://raw.githubusercontent.com/LiveContainer/LiveContainer/refs/heads/main/apps.json&exclude=livecontainer" target="_blank">
31-
<img src="https://github.com/CelloSerenity/altdirect/blob/main/assets/png/AltSource_Blue.png?raw=true" alt="Add AltSource" width="200">
31+
<img src="https://github.com/CelloSerenity/altdirect/blob/main/assets/png/AltSource_Blue.png?raw=true" alt="Add AltSource" width="200" />
3232
</a>
3333
<a href="https://github.com/LiveContainer/LiveContainer/releases/latest/download/LiveContainer.ipa" target="_blank">
34-
<img src="https://github.com/CelloSerenity/altdirect/blob/main/assets/png/Download_Blue.png?raw=true" alt="Download .ipa" width="200">
34+
<img src="https://github.com/CelloSerenity/altdirect/blob/main/assets/png/Download_Blue.png?raw=true" alt="Download .ipa" width="200" />
3535
</a>
3636

3737
### Nightly:
3838
<a href="https://celloserenity.github.io/altdirect/?url=https://github.com/LiveContainer/LiveContainer/releases/download/nightly/apps_nightly.json&exclude=livecontainer" target="_blank">
39-
<img src="https://github.com/CelloSerenity/altdirect/blob/main/assets/png/AltSource_Blue.png?raw=true" alt="Add AltSource" width="200">
39+
<img src="https://github.com/CelloSerenity/altdirect/blob/main/assets/png/AltSource_Blue.png?raw=true" alt="Add AltSource" width="200" />
4040
</a>
4141
<a href="https://github.com/LiveContainer/LiveContainer/releases/download/nightly/LiveContainer.ipa" target="_blank">
42-
<img src="https://github.com/CelloSerenity/altdirect/blob/main/assets/png/Download_Blue.png?raw=true" alt="Download .ipa" width="200">
42+
<img src="https://github.com/CelloSerenity/altdirect/blob/main/assets/png/Download_Blue.png?raw=true" alt="Download .ipa" width="200" />
4343
</a>
4444

4545
## Installation

docusaurus.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
const lightCodeTheme = require('prism-react-renderer/themes/github');
55
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
66

7+
// Node 25 exposes localStorage/sessionStorage accessors that throw unless a backing
8+
// file is provided. Docusaurus (and plugins) probe these globals during build, so
9+
// replace them with harmless stubs when running outside the browser.
10+
if (typeof window === 'undefined') {
11+
['localStorage', 'sessionStorage'].forEach((prop) => {
12+
const descriptor = Object.getOwnPropertyDescriptor(globalThis, prop);
13+
if (descriptor && typeof descriptor.get === 'function') {
14+
Object.defineProperty(globalThis, prop, {
15+
value: undefined,
16+
writable: true,
17+
configurable: true,
18+
enumerable: false,
19+
});
20+
}
21+
});
22+
}
23+
724
/** @type {import('@docusaurus/types').Config} */
825
const config = {
926
title: 'LiveContainer',

0 commit comments

Comments
 (0)