This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 1bb601b1a docs: Add docs on website for persy service (#3300)
1bb601b1a is described below

commit 1bb601b1a7641e792258ed75e79a8fab70912d66
Author: Nadeshiko Manju <[email protected]>
AuthorDate: Mon Oct 16 17:08:19 2023 +0800

    docs: Add docs on website for persy service (#3300)
    
    Signed-off-by: Manjusaka <[email protected]>
---
 website/docs/services/persy.mdx | 69 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

diff --git a/website/docs/services/persy.mdx b/website/docs/services/persy.mdx
new file mode 100644
index 000000000..15ffd92e5
--- /dev/null
+++ b/website/docs/services/persy.mdx
@@ -0,0 +1,69 @@
+---
+title: Persy
+---
+
+[Persy](https://persy.rs/) service support.
+
+import Docs from '../../../core/src/services/persy/docs.md'
+
+<Docs components={props.components} />
+
+### Via Config
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+<Tabs>
+  <TabItem value="rust" label="Rust" default>
+
+```rust
+use anyhow::Result;
+use opendal::Operator;
+use opendal::Scheme;
+use std::collections::HashMap;
+
+#[tokio::main]
+async fn main() -> Result<()> {
+    let mut config = HashMap::new();
+    config.insert("datafile".to_string(), "./test.persy".to_string());
+    config.insert("segment".to_string(), "data".to_string());
+    config.insert("index".to_string(), "index".to_string());
+
+    let op: Operator = Operator::via_map(Scheme::Persy, config)?;
+    Ok(())
+}
+```
+
+  </TabItem>
+  <TabItem value="node.js" label="Node.js">
+
+```javascript
+import { Operator } from "opendal";
+
+async function main() {
+    const config = {
+        datafile: "./test.persy",
+        segment: "data",
+        index: "index"
+    };
+    const op = new Operator("persy", config);
+}
+```
+
+  </TabItem>
+  <TabItem value="python" label="Python">
+
+```python
+import opendal
+
+config = {
+    "datafile": "./test.persy",
+    "segment": "data",
+    "index": "index"
+}
+
+op = opendal.Operator("persy", **config)
+```
+
+  </TabItem>
+</Tabs>

Reply via email to