Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 6800101

Browse files
ggwpezsam0x17
andauthored
Use relative docify paths (#14672)
* Use relative docify paths Bumping the docify version and using relative paths is needed for the monorepo to find the test files in the new workspace. Signed-off-by: Oliver Tale-Yazdi <[email protected]> * update docify to fix paths issue --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Sam Johnson <[email protected]>
1 parent a6b0d43 commit 6800101

File tree

4 files changed

+15
-40
lines changed

4 files changed

+15
-40
lines changed

Cargo.lock

Lines changed: 8 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frame/fast-unstake/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ frame-election-provider-support = { default-features = false, path = "../electio
2727

2828
frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, path = "../benchmarking" }
2929

30-
docify = "0.2.0"
30+
docify = "0.2.1"
3131

3232
[dev-dependencies]
3333
pallet-staking-reward-curve = { version = "4.0.0-dev", path = "../staking/reward-curve" }

frame/paged-list/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"]
1313

1414
[dependencies]
1515
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ "derive"] }
16-
docify = "0.1.13"
16+
docify = "0.2.1"
1717
scale-info = { version = "2.0.0", default-features = false, features = ["derive"] }
1818

1919
frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, path = "../benchmarking" }

frame/paged-list/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@
3939
//! ## Examples
4040
//!
4141
//! 1. **Appending** some data to the list can happen either by [`Pallet::append_one`]:
42-
#![doc = docify::embed!("frame/paged-list/src/tests.rs", append_one_works)]
42+
#![doc = docify::embed!("src/tests.rs", append_one_works)]
4343
//! 2. or by [`Pallet::append_many`]. This should always be preferred to repeated calls to
4444
//! [`Pallet::append_one`]:
45-
#![doc = docify::embed!("frame/paged-list/src/tests.rs", append_many_works)]
45+
#![doc = docify::embed!("src/tests.rs", append_many_works)]
4646
//! 3. If you want to append many values (ie. in a loop), then best use the [`Pallet::appender`]:
47-
#![doc = docify::embed!("frame/paged-list/src/tests.rs", appender_works)]
47+
#![doc = docify::embed!("src/tests.rs", appender_works)]
4848
//! 4. **Iterating** over the list can be done with [`Pallet::iter`]. It uses the standard
4949
//! `Iterator` trait:
50-
#![doc = docify::embed!("frame/paged-list/src/tests.rs", iter_works)]
50+
#![doc = docify::embed!("src/tests.rs", iter_works)]
5151
//! 5. **Draining** elements happens through the [`Pallet::drain`] iterator. Note that even
5252
//! *peeking* a value will already remove it.
53-
#![doc = docify::embed!("frame/paged-list/src/tests.rs", drain_works)]
53+
#![doc = docify::embed!("src/tests.rs", drain_works)]
5454
//!
5555
//! ## Pallet API
5656
//!

0 commit comments

Comments
 (0)