Skip to content

Commit 6bde5bc

Browse files
authored
Merge pull request #1131 from GuillaumeGomez/generate-link-to-def
Use `--generate-link-to-definition` option when generating documentation
2 parents bc0634c + a573120 commit 6bde5bc

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
0.15=0.15
2020
0.14=0.14
2121
RUSTFLAGS: --cfg docsrs
22-
RUSTDOCFLAGS: --cfg docsrs
22+
RUSTDOCFLAGS: --cfg docsrs -Zunstable-options --generate-link-to-definition
2323
steps:
2424
- uses: actions/checkout@v3
2525
with:

cairo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ win32-surface = ["ffi/win32-surface"]
3333
[package.metadata.docs.rs]
3434
all-features = true
3535
rustc-args = ["--cfg", "docsrs"]
36-
rustdoc-args = ["--cfg", "docsrs"]
36+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
3737

3838
[dependencies.glib]
3939
optional = true

gdk-pixbuf/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ v2_42 = ["v2_40", "ffi/v2_42"]
2525
[package.metadata.docs.rs]
2626
all-features = true
2727
rustc-args = ["--cfg", "docsrs"]
28-
rustdoc-args = ["--cfg", "docsrs"]
28+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
2929

3030
[dependencies]
3131
libc = "0.2"

gio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ v2_78 = ["v2_76", "ffi/v2_78", "glib/v2_78"]
3535
[package.metadata.docs.rs]
3636
all-features = true
3737
rustc-args = ["--cfg", "docsrs"]
38-
rustdoc-args = ["--cfg", "docsrs"]
38+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
3939

4040
[dependencies]
4141
libc = "0.2"

glib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ std_once_cell = []
6464
[package.metadata.docs.rs]
6565
all-features = true
6666
rustc-args = ["--cfg", "docsrs"]
67-
rustdoc-args = ["--cfg", "docsrs"]
67+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
6868

6969
[[test]]
7070
name = "subclass_compiletest"

glib/src/collections/ptr_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ impl<T: TransparentPtrType> From<super::Slice<T>> for PtrSlice<T> {
10721072
}
10731073

10741074
// rustdoc-stripper-ignore-next
1075-
/// A trait to accept both <code>&[T]</code> or <code>PtrSlice<T></code> as an argument.
1075+
/// A trait to accept both `&[T]` or `PtrSlice<T>` as an argument.
10761076
pub trait IntoPtrSlice<T: TransparentPtrType> {
10771077
// rustdoc-stripper-ignore-next
10781078
/// Runs the given closure with a `NULL`-terminated array.

glib/src/collections/strv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ impl From<StrV> for crate::Value {
10641064
}
10651065

10661066
// rustdoc-stripper-ignore-next
1067-
/// A trait to accept both <code>&[T]</code> or <code>StrV</code> as an argument.
1067+
/// A trait to accept both `&[T]` or `StrV` as an argument.
10681068
pub trait IntoStrV {
10691069
// rustdoc-stripper-ignore-next
10701070
/// Runs the given closure with a `NULL`-terminated array.

glib/src/gstring_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl GStringBuilder {
116116
}
117117

118118
// rustdoc-stripper-ignore-next
119-
/// Returns <code>&[str]</code> slice.
119+
/// Returns `&[str]` slice.
120120
#[inline]
121121
pub fn as_str(&self) -> &str {
122122
unsafe {

graphene/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ name = "graphene"
2121
[package.metadata.docs.rs]
2222
all-features = true
2323
rustc-args = ["--cfg", "docsrs"]
24-
rustdoc-args = ["--cfg", "docsrs"]
24+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
2525

2626
[dependencies]
2727
libc = "0.2"

pango/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ v1_52 = ["v1_50", "ffi/v1_52"]
2626
[package.metadata.docs.rs]
2727
all-features = true
2828
rustc-args = ["--cfg", "docsrs"]
29-
rustdoc-args = ["--cfg", "docsrs"]
29+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
3030

3131
[dependencies]
3232
libc = "0.2"

0 commit comments

Comments
 (0)