Skip to content

Commit

Permalink
docs: doc for ipmfs (#2408)
Browse files Browse the repository at this point in the history
doc for ipmfs

Signed-off-by: suyanhanx <suyanhanx@gmail.com>
  • Loading branch information
suyanhanx authored Jun 3, 2023
1 parent 2d2723f commit 6e747a7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
18 changes: 2 additions & 16 deletions core/src/services/ipmfs/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,9 @@ use super::writer::IpmfsWriter;
use crate::raw::*;
use crate::*;

/// Backend for IPFS service
/// IPFS Mutable File System (IPMFS) backend.
///
/// # Capabilities
///
/// This service can be used to:
///
/// - [x] stat
/// - [x] read
/// - [x] write
/// - [ ] create_dir
/// - [x] delete
/// - [ ] copy
/// - [ ] rename
/// - [x] list
/// - [ ] scan
/// - [ ] presign
/// - [ ] blocking
#[doc = include_str!("docs.md")]
#[derive(Clone)]
pub struct IpmfsBackend {
root: String,
Expand Down
15 changes: 15 additions & 0 deletions core/src/services/ipmfs/docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Capabilities

This service can be used to:

- [x] stat
- [x] read
- [x] write
- [ ] create_dir
- [x] delete
- [ ] copy
- [ ] rename
- [x] list
- [ ] scan
- [ ] presign
- [ ] blocking
9 changes: 9 additions & 0 deletions website/docs/services/ipmfs.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: IPMFS
---

IPFS Mutable File System (IPMFS) support

import Docs from "../../../core/src/services/ipmfs/docs.md"

<Docs components={props.components} />

0 comments on commit 6e747a7

Please sign in to comment.