Skip to content

Commit fe2504a

Browse files
authored
Absolute URLs for docs.rs (#6433)
They seem to otherwise link to a subfolder of the current crate. <!-- Thank you for your pull request to ICU4X! Reminder: try to use [Conventional Comments](https://conventionalcomments.org/) to make comments clearer. Please see https://github.com/unicode-org/icu4x/blob/main/CONTRIBUTING.md for general information on contributing to ICU4X. -->
1 parent 22cf7cc commit fe2504a

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

components/calendar/src/date.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl<C> Deref for Ref<'_, C> {
9191

9292
/// A date for a given calendar.
9393
///
94-
/// **The primary definition of this type is in the [`icu_calendar`](docs.rs/icu_calendar) crate. Other ICU4X crates re-export it for convenience.**
94+
/// **The primary definition of this type is in the [`icu_calendar`](https://docs.rs/icu_calendar) crate. Other ICU4X crates re-export it for convenience.**
9595
///
9696
/// This can work with wrappers around [`Calendar`] types,
9797
/// e.g. `Rc<C>`, via the [`AsCalendar`] trait.

components/time/src/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ dt_unit!(
118118

119119
/// A representation of a time in hours, minutes, seconds, and nanoseconds
120120
///
121-
/// **The primary definition of this type is in the [`icu_time`](docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
121+
/// **The primary definition of this type is in the [`icu_time`](https://docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
122122
///
123123
/// This type supports the range [00:00:00.000000000, 23:59:60.999999999].
124124
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
@@ -171,7 +171,7 @@ impl Time {
171171

172172
/// A date and time for a given calendar.
173173
///
174-
/// **The primary definition of this type is in the [`icu_time`](docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
174+
/// **The primary definition of this type is in the [`icu_time`](https://docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
175175
#[derive(Debug, PartialEq, Eq)]
176176
#[allow(clippy::exhaustive_structs)] // this type is stable
177177
pub struct DateTime<A: AsCalendar> {
@@ -183,7 +183,7 @@ pub struct DateTime<A: AsCalendar> {
183183

184184
/// A date and time for a given calendar, local to a specified time zone.
185185
///
186-
/// **The primary definition of this type is in the [`icu_time`](docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
186+
/// **The primary definition of this type is in the [`icu_time`](https://docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
187187
#[derive(Debug, PartialEq, Eq)]
188188
#[allow(clippy::exhaustive_structs)] // this type is stable
189189
pub struct ZonedDateTime<A: AsCalendar, Z> {

components/time/src/zone/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub mod models {
164164

165165
/// A CLDR time zone identity.
166166
///
167-
/// **The primary definition of this type is in the [`icu_time`](docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
167+
/// **The primary definition of this type is in the [`icu_time`](https://docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
168168
///
169169
/// This can be created directly from BCP-47 strings, or it can be parsed from IANA IDs.
170170
///
@@ -275,7 +275,7 @@ impl<'a> zerovec::maps::ZeroMapKV<'a> for TimeZone {
275275

276276
/// A utility type that can hold time zone information.
277277
///
278-
/// **The primary definition of this type is in the [`icu_time`](docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
278+
/// **The primary definition of this type is in the [`icu_time`](https://docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
279279
#[derive(Debug, PartialEq, Eq)]
280280
#[allow(clippy::exhaustive_structs)] // these four fields fully cover the needs of UTS 35
281281
pub struct TimeZoneInfo<Model: models::TimeZoneModel> {

components/time/src/zone/offset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct InvalidOffsetError;
2020

2121
/// An offset from Coordinated Universal Time (UTC)
2222
///
23-
/// **The primary definition of this type is in the [`icu_time`](docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
23+
/// **The primary definition of this type is in the [`icu_time`](https://docs.rs/icu_time) crate. Other ICU4X crates re-export it for convenience.**
2424
#[derive(Copy, Clone, Debug, PartialEq, Eq, Default, PartialOrd, Ord)]
2525
pub struct UtcOffset(i32);
2626

utils/fixed_decimal/src/rounding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub enum RoundingIncrement {
143143

144144
/// Specifies the precision of a floating point value when constructing a Decimal.
145145
///
146-
/// **The primary definition of this type is in the [`fixed_decimal`](docs.rs/fixed_decimal) crate. Other ICU4X crates re-export it for convenience.**
146+
/// **The primary definition of this type is in the [`fixed_decimal`](https://docs.rs/fixed_decimal) crate. Other ICU4X crates re-export it for convenience.**
147147
///
148148
/// IEEE 754 is a representation of a point on the number line. On the other hand, Decimal
149149
/// specifies not only the point on the number line but also the precision of the number to a

utils/fixed_decimal/src/signed_decimal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::{
1717

1818
/// A Type containing a [`UnsignedDecimal`] and a [`Sign`] to represent a signed decimal number.
1919
///
20-
/// **The primary definition of this type is in the [`fixed_decimal`](docs.rs/fixed_decimal) crate. Other ICU4X crates re-export it for convenience.**
20+
/// **The primary definition of this type is in the [`fixed_decimal`](https://docs.rs/fixed_decimal) crate. Other ICU4X crates re-export it for convenience.**
2121
///
2222
/// Supports a mantissa of non-zero digits and a number of leading and trailing
2323
/// zeros, as well as an optional sign; used for formatting and plural selection.

utils/fixed_decimal/src/variations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub enum Sign {
2222

2323
/// Configuration for when to render the minus sign or plus sign.
2424
///
25-
/// **The primary definition of this type is in the [`fixed_decimal`](docs.rs/fixed_decimal) crate. Other ICU4X crates re-export it for convenience.**
25+
/// **The primary definition of this type is in the [`fixed_decimal`](https://docs.rs/fixed_decimal) crate. Other ICU4X crates re-export it for convenience.**
2626
#[non_exhaustive]
2727
#[derive(Debug, Eq, PartialEq, Clone, Copy)]
2828
pub enum SignDisplay {

utils/zerovec/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

utils/zerovec/derive/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ pub(crate) mod ule;
1212
mod utils;
1313
mod varule;
1414

15-
/// Full docs for this proc macro can be found on the [`zerovec`](docs.rs/zerovec) crate.
15+
/// Full docs for this proc macro can be found on the [`zerovec`](https://docs.rs/zerovec) crate.
1616
#[proc_macro_derive(ULE)]
1717
pub fn ule_derive(input: TokenStream) -> TokenStream {
1818
let input = parse_macro_input!(input as DeriveInput);
1919
TokenStream::from(ule::derive_impl(&input))
2020
}
2121

22-
/// Full docs for this proc macro can be found on the [`zerovec`](docs.rs/zerovec) crate.
22+
/// Full docs for this proc macro can be found on the [`zerovec`](https://docs.rs/zerovec) crate.
2323
#[proc_macro_derive(VarULE)]
2424
pub fn varule_derive(input: TokenStream) -> TokenStream {
2525
let input = parse_macro_input!(input as DeriveInput);
2626
TokenStream::from(varule::derive_impl(&input, None))
2727
}
2828

29-
/// Full docs for this proc macro can be found on the [`zerovec`](docs.rs/zerovec) crate.
29+
/// Full docs for this proc macro can be found on the [`zerovec`](https://docs.rs/zerovec) crate.
3030
#[proc_macro_attribute]
3131
pub fn make_ule(attr: TokenStream, item: TokenStream) -> TokenStream {
3232
let input = parse_macro_input!(item as DeriveInput);
3333
let attr = parse_macro_input!(attr as Ident);
3434
TokenStream::from(make_ule::make_ule_impl(attr, input))
3535
}
3636

37-
/// Full docs for this proc macro can be found on the [`zerovec`](docs.rs/zerovec) crate.
37+
/// Full docs for this proc macro can be found on the [`zerovec`](https://docs.rs/zerovec) crate.
3838
#[proc_macro_attribute]
3939
pub fn make_varule(attr: TokenStream, item: TokenStream) -> TokenStream {
4040
let input = parse_macro_input!(item as DeriveInput);

utils/zerovec/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! - [`ZeroMap2d<'a, K0, K1, V>`] to map from the pair `(K0, K1)` to `V`
2020
//!
2121
//! The first two are intended as close-to-drop-in replacements for `Vec<T>` in Serde structs. The third and fourth are
22-
//! intended as a replacement for `HashMap` or [`LiteMap`](docs.rs/litemap). When used with Serde derives, **be sure to apply
22+
//! intended as a replacement for `HashMap` or [`LiteMap`](https://docs.rs/litemap). When used with Serde derives, **be sure to apply
2323
//! `#[serde(borrow)]` to these types**, same as one would for [`Cow<'a, T>`].
2424
//!
2525
//! [`ZeroVec<'a, T>`], [`VarZeroVec<'a, T>`], [`ZeroMap<'a, K, V>`], and [`ZeroMap2d<'a, K0, K1, V>`] all behave like

0 commit comments

Comments
 (0)