Merge pull request #844 from elpekenin/fix-links

[Documentation] Fix broken example links
This commit is contained in:
Waffle Maybe 2023-02-13 11:27:59 +04:00 committed by GitHub
commit 16e431bc7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 6 deletions

View file

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Allow `ChatJoinRequest` updates - Allow `ChatJoinRequest` updates
- Some example links in documentation
### Added ### Added

View file

@ -207,12 +207,12 @@
//! [default]: DispatcherBuilder#method.default_handler //! [default]: DispatcherBuilder#method.default_handler
//! [error]: DispatcherBuilder#method.error_handler //! [error]: DispatcherBuilder#method.error_handler
//! [dialogues]: dialogue //! [dialogues]: dialogue
//! [`examples/purchase.rs`]: https://github.com/teloxide/teloxide/blob/master/examples/purchase.rs //! [`examples/purchase.rs`]: https://github.com/teloxide/teloxide/blob/master/crates/teloxide/examples/purchase.rs
//! [`Update::filter_message`]: crate::types::Update::filter_message //! [`Update::filter_message`]: crate::types::Update::filter_message
//! [`Update::filter_callback_query`]: crate::types::Update::filter_callback_query //! [`Update::filter_callback_query`]: crate::types::Update::filter_callback_query
//! [chain of responsibility]: https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern //! [chain of responsibility]: https://en.wikipedia.org/wiki/Chain-of-responsibility_pattern
//! [dependency injection (DI)]: https://en.wikipedia.org/wiki/Dependency_injection //! [dependency injection (DI)]: https://en.wikipedia.org/wiki/Dependency_injection
//! [`examples/dispatching_features.rs`]: https://github.com/teloxide/teloxide/blob/master/examples/dispatching_features.rs //! [`examples/dispatching_features.rs`]: https://github.com/teloxide/teloxide/blob/master/crates/teloxide/examples/dispatching_features.rs
//! [`Update`]: crate::types::Update //! [`Update`]: crate::types::Update
pub mod dialogue; pub mod dialogue;

View file

@ -91,7 +91,7 @@
//! } //! }
//! ``` //! ```
//! //!
//! [`examples/dialogue.rs`]: https://github.com/teloxide/teloxide/blob/master/examples/dialogue.rs //! [`examples/dialogue.rs`]: https://github.com/teloxide/teloxide/blob/master/crates/teloxide/examples/dialogue.rs
#[cfg(feature = "redis-storage")] #[cfg(feature = "redis-storage")]
pub use self::{RedisStorage, RedisStorageError}; pub use self::{RedisStorage, RedisStorageError};

View file

@ -4,7 +4,7 @@
//! //!
//! For a high-level overview, see [our GitHub repository](https://github.com/teloxide/teloxide). //! For a high-level overview, see [our GitHub repository](https://github.com/teloxide/teloxide).
//! //!
//! [[`examples/throw_dice.rs`](https://github.com/teloxide/teloxide/blob/master/examples/throw_dice.rs)] //! [[`examples/throw_dice.rs`](https://github.com/teloxide/teloxide/blob/master/crates/teloxide/examples/throw_dice.rs)]
//! ```no_run //! ```no_run
//! # #[cfg(feature = "ctrlc_handler")] //! # #[cfg(feature = "ctrlc_handler")]
//! use teloxide::prelude::*; //! use teloxide::prelude::*;

View file

@ -45,9 +45,9 @@
//! assert_eq!(args, vec!["3", "hours"]); //! assert_eq!(args, vec!["3", "hours"]);
//! ``` //! ```
//! //!
//! See [examples/admin_bot] as a more complicated examples. //! See [examples/admin] as a more complicated examples.
//! //!
//! [examples/admin_bot]: https://github.com/teloxide/teloxide/blob/master/examples/admin_bot/ //! [examples/admin]: https://github.com/teloxide/teloxide/blob/master/crates/teloxide/examples/admin.rs
use core::fmt; use core::fmt;
use std::{ use std::{