Skip to content

Commit 96fc3f1

Browse files
author
Laegel
authored
Upgraded Docusaurus & fixed style changes (tauri-apps#195)
* chore: Upgraded Docusaurus & fixed style changes * fix: Updated Rust docs * fix: Code blocks * chore: Hiding ads
1 parent 132d158 commit 96fc3f1

File tree

173 files changed

+6403
-4854
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+6403
-4854
lines changed

docs/en/api/rust/tauri/api/app/fn.current_binary.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: "fn.current_binary"
44

55
# Function [tauri](/docs/api/rust/tauri/../../index.html)::​[api](/docs/api/rust/tauri/../index.html)::​[app](/docs/api/rust/tauri/index.html)::​[current_binary](/docs/api/rust/tauri/)
66

7-
pub fn current_binary() -> Option<PathBuf>
7+
```rs
8+
pub fn current_binary() -> Option<PathBuf>
9+
```
810

911
Get the current binary

docs/en/api/rust/tauri/api/app/fn.restart_application.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: "fn.restart_application"
44

55
# Function [tauri](/docs/api/rust/tauri/../../index.html)::​[api](/docs/api/rust/tauri/../index.html)::​[app](/docs/api/rust/tauri/index.html)::​[restart_application](/docs/api/rust/tauri/)
66

7-
pub fn restart_application(binary_to_start: Option<PathBuf>)
7+
```rs
8+
pub fn restart_application(binary_to_start: Option<PathBuf>)
9+
```
810

911
Restart application

docs/en/api/rust/tauri/api/assets/phf/macro.phf_map.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ title: "macro.phf_map"
44

55
# Macro [tauri](/docs/api/rust/tauri/../../../index.html)::​[api](/docs/api/rust/tauri/../../index.html)::​[assets](/docs/api/rust/tauri/../index.html)::​[phf](/docs/api/rust/tauri/index.html)::​[phf_map](/docs/api/rust/tauri/)
66

7-
macro_rules! phf_map {
8-
#[::proc_macro_hack::proc_macro_hack] => { ... };
9-
}
7+
```rs
8+
macro_rules! phf_map {
9+
#[::proc_macro_hack::proc_macro_hack] => { ... };
10+
}
11+
```
1012

1113
Macro to create a `static` (compile-time) [`Map`](/docs/api/rust/tauri/../../../../tauri/api/assets/phf/struct.Map.html "Map").
1214

@@ -16,14 +18,16 @@ Requires the `"macros"` feature.
1618

1719
1820

19-
use ::phf::{phf_map, Map};
21+
```rs
22+
use ::phf::{phf_map, Map};
2023

21-
static MY_MAP: Map<&'static str, u32> = phf_map! {
22-
"hello" => 1,
23-
"world" => 2,
24-
};
24+
static MY_MAP: Map<&'static str, u32> = phf_map! {
25+
"hello" => 1,
26+
"world" => 2,
27+
};
2528

26-
fn main ()
27-
{
28-
assert_eq!(MY_MAP["hello"], 1);
29-
}
29+
fn main ()
30+
{
31+
assert_eq!(MY_MAP["hello"], 1);
32+
}
33+
```

docs/en/api/rust/tauri/api/assets/phf/macro.phf_set.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ title: "macro.phf_set"
44

55
# Macro [tauri](/docs/api/rust/tauri/../../../index.html)::​[api](/docs/api/rust/tauri/../../index.html)::​[assets](/docs/api/rust/tauri/../index.html)::​[phf](/docs/api/rust/tauri/index.html)::​[phf_set](/docs/api/rust/tauri/)
66

7-
macro_rules! phf_set {
8-
#[::proc_macro_hack::proc_macro_hack] => { ... };
9-
}
7+
```rs
8+
macro_rules! phf_set {
9+
#[::proc_macro_hack::proc_macro_hack] => { ... };
10+
}
11+
```
1012

1113
Macro to create a `static` (compile-time) [`Set`](/docs/api/rust/tauri/../../../../tauri/api/assets/phf/struct.Set.html "Set").
1214

@@ -16,14 +18,16 @@ Requires the `"macros"` feature.
1618

1719
1820

19-
use ::phf::{phf_set, Set};
21+
```rs
22+
use ::phf::{phf_set, Set};
2023

21-
static MY_SET: Set<&'static str> = phf_set! {
22-
"hello world",
23-
"hola mundo",
24-
};
24+
static MY_SET: Set<&'static str> = phf_set! {
25+
"hello world",
26+
"hola mundo",
27+
};
2528

26-
fn main ()
27-
{
28-
assert!(MY_SET.contains("hello world"));
29-
}
29+
fn main ()
30+
{
31+
assert!(MY_SET.contains("hello world"));
32+
}
33+
```

docs/en/api/rust/tauri/api/assets/phf/map/struct.Entries.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ title: "struct.Entries"
44

55
# Struct [tauri](/docs/api/rust/tauri/../../../../index.html)::​[api](/docs/api/rust/tauri/../../../index.html)::​[assets](/docs/api/rust/tauri/../../index.html)::​[phf](/docs/api/rust/tauri/../index.html)::​[map](/docs/api/rust/tauri/index.html)::​[Entries](/docs/api/rust/tauri/)
66

7-
pub struct Entries<'a, K, V> where
8-
    K: 'a,
9-
    V: 'a,  { /* fields omitted */ }
7+
```rs
8+
pub struct Entries<'a, K, V> where
9+
    K: 'a,
10+
    V: 'a,  { /* fields omitted */ }
11+
```
1012

1113
An iterator over the key/value pairs in a `Map`.
1214

docs/en/api/rust/tauri/api/assets/phf/map/struct.Keys.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ title: "struct.Keys"
44

55
# Struct [tauri](/docs/api/rust/tauri/../../../../index.html)::​[api](/docs/api/rust/tauri/../../../index.html)::​[assets](/docs/api/rust/tauri/../../index.html)::​[phf](/docs/api/rust/tauri/../index.html)::​[map](/docs/api/rust/tauri/index.html)::​[Keys](/docs/api/rust/tauri/)
66

7-
pub struct Keys<'a, K, V> where
8-
    K: 'a,
9-
    V: 'a,  { /* fields omitted */ }
7+
```rs
8+
pub struct Keys<'a, K, V> where
9+
    K: 'a,
10+
    V: 'a,  { /* fields omitted */ }
11+
```
1012

1113
An iterator over the keys in a `Map`.
1214

docs/en/api/rust/tauri/api/assets/phf/map/struct.Map.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ title: "struct.Map"
44

55
# Struct [tauri](/docs/api/rust/tauri/../../../../index.html)::​[api](/docs/api/rust/tauri/../../../index.html)::​[assets](/docs/api/rust/tauri/../../index.html)::​[phf](/docs/api/rust/tauri/../index.html)::​[map](/docs/api/rust/tauri/index.html)::​[Map](/docs/api/rust/tauri/)
66

7-
pub struct Map<K, V> where
8-
    K: 'static,
9-
    V: 'static,  { /* fields omitted */ }
7+
```rs
8+
pub struct Map<K, V> where
9+
    K: 'static,
10+
    V: 'static,  { /* fields omitted */ }
11+
```
1012

1113
An immutable map constructed at compile time.
1214

docs/en/api/rust/tauri/api/assets/phf/map/struct.Values.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ title: "struct.Values"
44

55
# Struct [tauri](/docs/api/rust/tauri/../../../../index.html)::​[api](/docs/api/rust/tauri/../../../index.html)::​[assets](/docs/api/rust/tauri/../../index.html)::​[phf](/docs/api/rust/tauri/../index.html)::​[map](/docs/api/rust/tauri/index.html)::​[Values](/docs/api/rust/tauri/)
66

7-
pub struct Values<'a, K, V> where
8-
    K: 'a,
9-
    V: 'a,  { /* fields omitted */ }
7+
```rs
8+
pub struct Values<'a, K, V> where
9+
    K: 'a,
10+
    V: 'a,  { /* fields omitted */ }
11+
```
1012

1113
An iterator over the values in a `Map`.
1214

docs/en/api/rust/tauri/api/assets/phf/set/struct.Iter.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ title: "struct.Iter"
44

55
# Struct [tauri](/docs/api/rust/tauri/../../../../index.html)::​[api](/docs/api/rust/tauri/../../../index.html)::​[assets](/docs/api/rust/tauri/../../index.html)::​[phf](/docs/api/rust/tauri/../index.html)::​[set](/docs/api/rust/tauri/index.html)::​[Iter](/docs/api/rust/tauri/)
66

7-
pub struct Iter<'a, T> where
8-
    T: 'static,  { /* fields omitted */ }
7+
```rs
8+
pub struct Iter<'a, T> where
9+
    T: 'static,  { /* fields omitted */ }
10+
```
911

1012
An iterator over the values in a `Set`.
1113

docs/en/api/rust/tauri/api/assets/phf/set/struct.Set.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ title: "struct.Set"
44

55
# Struct [tauri](/docs/api/rust/tauri/../../../../index.html)::​[api](/docs/api/rust/tauri/../../../index.html)::​[assets](/docs/api/rust/tauri/../../index.html)::​[phf](/docs/api/rust/tauri/../index.html)::​[set](/docs/api/rust/tauri/index.html)::​[Set](/docs/api/rust/tauri/)
66

7-
pub struct Set<T> where
8-
    T: 'static,  { /* fields omitted */ }
7+
```rs
8+
pub struct Set<T> where
9+
    T: 'static,  { /* fields omitted */ }
10+
```
911

1012
An immutable set constructed at compile time.
1113

0 commit comments

Comments
 (0)