Skip to content

Commit de6e6a0

Browse files
committed
fix: Platform content should be visible for ssg-md
Change-Id: I428b30792a89e5f71f48d8588a11fde9e2011165
1 parent 5759264 commit de6e6a0

File tree

51 files changed

+352
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+352
-226
lines changed

docs/en/api/css/properties/grid-template-columns.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ grid-template-columns: repeat(3, 200px);
8080
## Formal definition
8181

8282
import { PropertyDefinition } from '@/components/PropertyDefinition';
83-
import { Link } from '@rspress/core/theme';
83+
import { Link } from '@theme';
8484

8585
<PropertyDefinition
8686
initialValue={

docs/en/api/css/properties/grid-template-rows.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ grid-template-rows: repeat(2, 100px auto) 200px;
7979
## Formal definition
8080

8181
import { PropertyDefinition } from '@/components/PropertyDefinition';
82-
import { Link } from '@rspress/core/theme';
82+
import { Link } from '@theme';
8383

8484
<PropertyDefinition
8585
initialValue={

docs/en/api/css/properties/order.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Represents the ordinal group to be used by the item. Default value is `0`.
3737
## Formal definition
3838

3939
import { PropertyDefinition } from '@/components/PropertyDefinition';
40-
import { Link } from '@rspress/core/theme';
40+
import { Link } from '@theme';
4141

4242
<PropertyDefinition
4343
initialValue={<>0</>}

docs/en/api/elements/built-in/image.mdx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ By implementing a URL redirection mechanism, developers can intercept specific i
353353
This feature is implemented based on the [`MediaResourceFetcher`](/api/lynx-native-api/lynx-media-resource-fetcher/should-redirect-url.html) interface, with the core process divided into two stages:
354354

355355
1. **Resource Type Detection** (`isLocalResource`)
356+
356357
- Determines if the request URL matches the custom protocol
357358
- Returns a boolean indicating whether to handle it locally
358359

@@ -461,34 +462,35 @@ class LocalMediaFetcher : LynxMediaResourceFetcher() {
461462
</PlatformTabs.Tab>
462463

463464
<PlatformTabs.Tab platform="harmony">
465+
464466
```typescript
465-
import { LynxMediaResourceFetcher, LynxResourceRequest, LynxOptionalBool } from '@lynx/lynx';
467+
import {
468+
LynxMediaResourceFetcher,
469+
LynxResourceRequest,
470+
LynxOptionalBool,
471+
} from '@lynx/lynx';
466472

467473
// Local resource handler implementation
468474
export class ExampleMediaResourceFetcher extends LynxMediaResourceFetcher {
469-
470475
// Resource path conversion method
471476
// @param request Resource request object
472477
// @return Local file path or empty string
473478
shouldRedirectUrl(request: LynxResourceRequest): string {
474-
return request.url?.replace(
475-
'http://localhost',
476-
'file://'
477-
) ?? '';
479+
return request.url?.replace('http://localhost', 'file://') ?? '';
478480
}
479481

480482
// Determines if the resource is local
481483
// @param url The original request URL
482484
// @return LynxOptionalBool.TRUE indicates the request needs redirection
483485
isLocalResource(url: string): LynxOptionalBool {
484486
if (url.startsWith('http://localhost')) {
485-
return LynxOptionalBool.TRUE
487+
return LynxOptionalBool.TRUE;
486488
}
487-
return LynxOptionalBool.FALSE
489+
return LynxOptionalBool.FALSE;
488490
}
489491
}
490-
491492
```
493+
492494
</PlatformTabs.Tab>
493495
</PlatformTabs>
494496

docs/en/api/elements/built-in/list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AndroidOnly, IOSOnly, Required, Go, VersionBadge } from '@lynx';
22

3-
import { Tab, Tabs } from '@rspress/core/theme';
3+
import { Tab, Tabs } from '@theme';
44

55
# `<list>`
66

docs/en/api/elements/built-in/view.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Badge } from '@rspress/core/theme';
1+
import { Badge } from '@theme';
22

33
# `<view>`
44

docs/en/api/errors/error-code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Badge } from '@rspress/core/theme';
1+
import { Badge } from '@theme';
22

33
# Error Codes
44

docs/en/api/lynx-api/global/system-info.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: SystemInfo
33
---
44

5-
import { Tab, Tabs } from '@rspress/core/theme';
5+
import { Tab, Tabs } from '@theme';
66

77
# SystemInfo
88

docs/en/api/lynx-native-api/lynx-service.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LynxService API
22

33
import { CodeFold, LegacyCompatTable } from '@lynx';
4-
import { Tab, Tabs, Steps } from '@rspress/core/theme';
4+
import { Tab, Tabs, Steps } from '@theme';
55

66
## Introduction
77

docs/en/blog/lynx-3-2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar: false
66
import { BlogAvatar, CodeFold } from '@lynx';
77
import { PackageManagerTabs } from '@theme';
88
import { Go, Badge } from '@lynx';
9-
import { Tab, Tabs } from '@rspress/core/theme';
9+
import { Tab, Tabs } from '@theme';
1010

1111
_May 14th, 2025_
1212

0 commit comments

Comments
 (0)