Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 8bef163

Browse files
authored
Merge pull request #166 from hubert-deriv/add_search_feature
2 parents 545250a + 845935d commit 8bef163

File tree

15 files changed

+19300
-12
lines changed

15 files changed

+19300
-12
lines changed

docs/core-concepts/api-calls-anatomy/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To make it easier for you to handle the request and response flow of your WebSoc
5050

5151
#### API call method name
5252

53-
Every `request` in the WebSocket API includes a `method name` field that serves as a unique identifier for the request. In most cases, this `method name` will get a numerical value of `1`. However, there are some cases where the identifier property may have a string value.
53+
Every `request` in the WebSocket API includes a `method name` field that serves as a unique identifier for the request. In most cases, this `method name` will get a numerical value of `1`. However, there are some cases where the identifier property may have a string value.
5454

5555
:::caution
5656
API Call Method Name is always required. this field determines the data you'll get from our WebSocket server.
@@ -196,4 +196,4 @@ This is the `Optional` passed to the `Request Data`, you can use it for `validat
196196

197197
:::tip
198198
The `msg_type` is always present on the response data.
199-
:::
199+
:::

docs/core-concepts/websocket/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: WebSocket
3-
hide_title: true
3+
hide_title: false
44
draft: false
55
sidebar_label: WebSocket
66
sidebar_position: 0

docusaurus.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,21 @@ const config = {
6262
],
6363
],
6464

65+
themes: [
66+
[
67+
require.resolve('@easyops-cn/docusaurus-search-local'),
68+
{
69+
// ... Your options.
70+
// `hashed` is recommended as long-term-cache of index file is possible.
71+
hashed: true,
72+
// For Docs using Chinese, The `language` is recommended to set to:
73+
// ```
74+
// language: ["en", "zh"],
75+
// ```
76+
},
77+
],
78+
],
79+
6580
themeConfig:
6681
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
6782
({

0 commit comments

Comments
 (0)