Skip to content

Commit 66febcf

Browse files
committed
Add MPOP to sidebar
Fix relative paths
1 parent c0d6c0a commit 66febcf

File tree

22 files changed

+82
-81
lines changed

22 files changed

+82
-81
lines changed

docbuilder/src/document.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn render_list(inp: Vec<String>) -> String {
9797
fn render_link_list(inp: Vec<String>, linklist: &HashMap<&'static str, &'static str>) -> String {
9898
inp.into_iter()
9999
.map(|v| {
100-
format!("- [{}]({})\n", v, linklist.get(v.as_str()).unwrap())
100+
format!("- [{}](../{})\n", v, linklist.get(v.as_str()).unwrap())
101101
.chars()
102102
.collect::<Vec<_>>()
103103
})

docbuilder/src/main.rs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -96,32 +96,32 @@ Skytable currently supports the following actions:
9696

9797
pub fn init_type_linklist() -> HashMap<&'static str, &'static str> {
9898
let mut hm = HashMap::new();
99-
hm.insert("Rcode 0", "../protocol/response-codes");
100-
hm.insert("Rcode 1", "../protocol/response-codes");
101-
hm.insert("Rcode 2", "../protocol/response-codes");
102-
hm.insert("Rcode 3", "../protocol/response-codes");
103-
hm.insert("Rcode 4", "../protocol/response-codes");
104-
hm.insert("Rcode 5", "../protocol/response-codes");
105-
hm.insert("Rcode 6", "../protocol/response-codes");
106-
hm.insert("Rcode 7", "../protocol/response-codes");
107-
hm.insert("Rcode 8", "../protocol/response-codes");
108-
hm.insert("Rcode 9", "../protocol/response-codes");
109-
hm.insert("Error String", "../protocol/errors#table-of-errors");
110-
hm.insert("err-snapshot-busy", "../protocol/errors/#table-of-errors");
99+
hm.insert("Rcode 0", "protocol/response-codes.md");
100+
hm.insert("Rcode 1", "protocol/response-codes.md");
101+
hm.insert("Rcode 2", "protocol/response-codes.md");
102+
hm.insert("Rcode 3", "protocol/response-codes.md");
103+
hm.insert("Rcode 4", "protocol/response-codes.md");
104+
hm.insert("Rcode 5", "protocol/response-codes.md");
105+
hm.insert("Rcode 6", "protocol/response-codes.md");
106+
hm.insert("Rcode 7", "protocol/response-codes.md");
107+
hm.insert("Rcode 8", "protocol/response-codes.md");
108+
hm.insert("Rcode 9", "protocol/response-codes.md");
109+
hm.insert("Error String", "protocol/errors.md#table-of-errors");
110+
hm.insert("err-snapshot-busy", "protocol/errors.md#table-of-errors");
111111
hm.insert(
112112
"err-invalid-snapshot-name",
113-
"../protocol/errors/#table-of-errors",
113+
"protocol/errors.md#table-of-errors",
114114
);
115115
hm.insert(
116116
"err-snapshot-disabled",
117-
"../protocol/errors/#table-of-errors",
117+
"protocol/errors.md#table-of-errors",
118118
);
119-
hm.insert("AnyArray", "../protocol/data-types#any-array");
120-
hm.insert("Flat Array", "../protocol/data-types#flat-array");
121-
hm.insert("Typed Array", "../protocol/data-types#typed-array");
122-
hm.insert("String", "../protocol/skyhash#strings-");
123-
hm.insert("Binstr", "../protocol/skyhash#strings-");
124-
hm.insert("Integer", "../protocol/skyhash#unsigned-integers-");
119+
hm.insert("AnyArray", "protocol/data-types.md#any-array");
120+
hm.insert("Flat Array", "protocol/data-types.md#flat-array");
121+
hm.insert("Typed Array", "protocol/data-types.md#typed-array");
122+
hm.insert("String", "protocol/skyhash.md#strings-");
123+
hm.insert("Binstr", "protocol/skyhash.md#strings-");
124+
hm.insert("Integer", "protocol/skyhash.md#unsigned-integers-");
125125
hm
126126
}
127127

docs/actions/DBSIZE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ title: DBSIZE
77
**Time complexity**: O(1)
88
**Accept type**:
99

10-
- [AnyArray](../protocol/data-types#any-array)
10+
- [AnyArray](../protocol/data-types.md#any-array)
1111

1212
**Return type**:
1313

14-
- [Integer](../protocol/skyhash#unsigned-integers-)
14+
- [Integer](../protocol/skyhash.md#unsigned-integers-)
1515

1616
**Syntax**:
1717

docs/actions/DEL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ title: DEL
77
**Time complexity**: O(n)
88
**Accept type**:
99

10-
- [AnyArray](../protocol/data-types#any-array)
10+
- [AnyArray](../protocol/data-types.md#any-array)
1111

1212
**Return type**:
1313

14-
- [Integer](../protocol/skyhash#unsigned-integers-)
15-
- [Rcode 5](../protocol/response-codes)
14+
- [Integer](../protocol/skyhash.md#unsigned-integers-)
15+
- [Rcode 5](../protocol/response-codes.md)
1616

1717
**Syntax**:
1818

docs/actions/EXISTS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ title: EXISTS
77
**Time complexity**: O(n)
88
**Accept type**:
99

10-
- [AnyArray](../protocol/data-types#any-array)
10+
- [AnyArray](../protocol/data-types.md#any-array)
1111

1212
**Return type**:
1313

14-
- [Integer](../protocol/skyhash#unsigned-integers-)
14+
- [Integer](../protocol/skyhash.md#unsigned-integers-)
1515

1616
**Syntax**:
1717

docs/actions/FLUSHDB.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ title: FLUSHDB
77
**Time complexity**: O(n)
88
**Accept type**:
99

10-
- [AnyArray](../protocol/data-types#any-array)
10+
- [AnyArray](../protocol/data-types.md#any-array)
1111

1212
**Return type**:
1313

14-
- [Rcode 0](../protocol/response-codes)
15-
- [Rcode 5](../protocol/response-codes)
14+
- [Rcode 0](../protocol/response-codes.md)
15+
- [Rcode 5](../protocol/response-codes.md)
1616

1717
**Syntax**:
1818

docs/actions/GET.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ title: GET
77
**Time complexity**: O(1)
88
**Accept type**:
99

10-
- [AnyArray](../protocol/data-types#any-array)
10+
- [AnyArray](../protocol/data-types.md#any-array)
1111

1212
**Return type**:
1313

14-
- [Rcode 1](../protocol/response-codes)
15-
- [String](../protocol/skyhash#strings-)
16-
- [Binstr](../protocol/skyhash#strings-)
14+
- [Rcode 1](../protocol/response-codes.md)
15+
- [String](../protocol/skyhash.md#strings-)
16+
- [Binstr](../protocol/skyhash.md#strings-)
1717

1818
**Syntax**:
1919

docs/actions/KEYLEN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ title: KEYLEN
77
**Time complexity**: O(1)
88
**Accept type**:
99

10-
- [AnyArray](../protocol/data-types#any-array)
10+
- [AnyArray](../protocol/data-types.md#any-array)
1111

1212
**Return type**:
1313

14-
- [Integer](../protocol/skyhash#unsigned-integers-)
15-
- [Rcode 1](../protocol/response-codes)
14+
- [Integer](../protocol/skyhash.md#unsigned-integers-)
15+
- [Rcode 1](../protocol/response-codes.md)
1616

1717
**Syntax**:
1818

docs/actions/LSKEYS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ title: LSKEYS
77
**Time complexity**: O(n)
88
**Accept type**:
99

10-
- [AnyArray](../protocol/data-types#any-array)
10+
- [AnyArray](../protocol/data-types.md#any-array)
1111

1212
**Return type**:
1313

14-
- [Typed Array](../protocol/data-types#typed-array)
14+
- [Typed Array](../protocol/data-types.md#typed-array)
1515

1616
**Syntax**:
1717

docs/actions/MGET.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ title: MGET
77
**Time complexity**: O(n)
88
**Accept type**:
99

10-
- [AnyArray](../protocol/data-types#any-array)
10+
- [AnyArray](../protocol/data-types.md#any-array)
1111

1212
**Return type**:
1313

14-
- [Typed Array](../protocol/data-types#typed-array)
14+
- [Typed Array](../protocol/data-types.md#typed-array)
1515

1616
**Syntax**:
1717

0 commit comments

Comments
 (0)