Add search

This commit is contained in:
Pham Huynh Duc Huy 2025-06-10 15:28:19 +07:00
parent eaec124ba3
commit d37fc77fae
5 changed files with 1177 additions and 351 deletions

View File

@ -52,9 +52,8 @@ The **Item Description** system provides detailed information about game items,
| Step | Action | Image Reference | | Step | Action | Image Reference |
|------|--------|-----------------| |------|--------|-----------------|
| 1 | Set **Sprite Frame** in `background` using prepared assets. | ![Step 1](./img/07-item-description/setup-item-big-1.png) | | 1 | Set **Sprite Frame** in `background` using prepared assets. | ![Step 1](./img/07-item-description/setup-item-big-1.png) |
| 2 | Follow **Step 4** of `item-description-small` for payout setup. | [See Small Setup](#item-description-small) | | 2 | Follow **Step 4** of `item-description-small` for payout setup. | [See Small Setup](#prefab-configurations) |
| 3 | Follow **Step 4** of `item-description-no-odds` for description setup. | [See No-Odds Setup](#item-description-no-odds) | | 3 | Follow **Step 4** of `item-description-no-odds` for description setup. | [See No-Odds Setup](#prefab-configurations) |
**Tip**: **Tip**:
- Use the helper tool to configure: - Use the helper tool to configure:
1. Set **Content Size** and **Cell Item Size** per game design. 1. Set **Content Size** and **Cell Item Size** per game design.

View File

@ -73,9 +73,9 @@ Place the gamble node in the following scene structure:
![Backgrounds](../img/05-main-scene/gamble/add-background-gamble.png) ![Backgrounds](../img/05-main-scene/gamble/add-background-gamble.png)
1. Use background scenes for the gamble feature: 1. Use background scenes for the gamble feature:
- `gamble-background-landscape` : [Setup Background Landscape](/docs/setup-main-game/main-scene/background#2-setup-background-landscape) - `gamble-background-landscape` : [Setup Background Landscape](/docs/setup-main-game/main-scene/background#setup-steps)
- `gamble-background-portrait` : [Setup Background Portrait](/docs/setup-main-game/main-scene/background#3-setup-background-portrait) - `gamble-background-portrait` : [Setup Background Portrait](/docs/setup-main-game/main-scene/background#setup-steps)
2. Attach the `orientation-ui-controller` component to both `gamble-background-landscape` and `gamble-background-portrait` nodes. 2. Attach the `orientation-ui-controller` component to both `gamble-background-landscape` and `gamble-background-portrait` nodes.
3. The `gamble-background-portrait` node has a dedicated component for portrait mode: 3. The `gamble-background-portrait` node has a dedicated component for portrait mode:
@ -87,4 +87,4 @@ Place the gamble node in the following scene structure:
## Game Result Example ## Game Result Example
Make sure the main scene includes the Win Limit Panel. Make sure the main scene includes the Win Limit Panel.
🔗 More Info [Game Result](/docs/setup-main-game/main-scene/win-limit#gamble-win-limit) 🔗 More Info [Game Result](/docs/setup-main-game/main-scene/win-limit#overview)

View File

@ -62,6 +62,12 @@ const config: Config = {
sidebarPath: require.resolve('./sidebars.ts'), sidebarPath: require.resolve('./sidebars.ts'),
}, },
], ],
[
require.resolve('docusaurus-lunr-search'),
{
languages: ['en', 'de'], // language codes
},
],
], ],
themes: [ themes: [
@ -90,6 +96,10 @@ const config: Config = {
position: 'left', position: 'left',
sidebarId: 'apiSidebar', sidebarId: 'apiSidebar',
}, },
{
type: 'search',
position: 'right',
},
{ {
href: 'https://gitea.plp19.com/dev-public/doc-slot-core-manual', href: 'https://gitea.plp19.com/dev-public/doc-slot-core-manual',
label: 'Gitea', label: 'Gitea',

1493
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,19 +15,21 @@
"typecheck": "tsc" "typecheck": "tsc"
}, },
"dependencies": { "dependencies": {
"@docusaurus/core": "^3.8.0", "@docusaurus/core": "^3.8.1",
"@docusaurus/preset-classic": "^3.8.0", "@docusaurus/preset-classic": "^3.8.1",
"@docusaurus/theme-mermaid": "^3.8.0", "@docusaurus/theme-mermaid": "^3.8.1",
"@mdx-js/react": "^3.0.0", "@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0", "clsx": "^2.0.0",
"docusaurus-lunr-search": "^3.6.0",
"lunr": "^2.3.9",
"prism-react-renderer": "^2.3.0", "prism-react-renderer": "^2.3.0",
"react": "^19.0.0", "react": "^19.0.0",
"react-dom": "^19.0.0" "react-dom": "^19.0.0"
}, },
"devDependencies": { "devDependencies": {
"@docusaurus/module-type-aliases": "^3.8.0", "@docusaurus/module-type-aliases": "^3.8.1",
"@docusaurus/tsconfig": "^3.8.0", "@docusaurus/tsconfig": "^3.8.1",
"@docusaurus/types": "^3.8.0", "@docusaurus/types": "^3.8.1",
"typescript": "~5.6.2" "typescript": "~5.6.2"
}, },
"browserslist": { "browserslist": {