Skip to content

Commit 557f45c

Browse files
authored
Merge pull request #964 from dtolnay/docsrs
Replace docs.serde.rs links
2 parents 26f147f + 9edf7fa commit 557f45c

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "1.0.91" # remember to update html_root_url
44
authors = ["Erick Tryzelaar <[email protected]>", "David Tolnay <[email protected]>"]
55
categories = ["encoding", "parser-implementations", "no-std"]
66
description = "A JSON serialization file format"
7-
documentation = "https://docs.serde.rs/serde_json/"
7+
documentation = "https://docs.rs/serde_json"
88
edition = "2018"
99
keywords = ["json", "serde", "serialization"]
1010
license = "MIT OR Apache-2.0"

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ serde_json = "1.0"
1818

1919
You may be looking for:
2020

21-
- [JSON API documentation](https://docs.serde.rs/serde_json/)
22-
- [Serde API documentation](https://docs.serde.rs/serde/)
21+
- [JSON API documentation](https://docs.rs/serde_json)
22+
- [Serde API documentation](https://docs.rs/serde)
2323
- [Detailed documentation about Serde](https://serde.rs/)
2424
- [Setting up `#[derive(Serialize, Deserialize)]`](https://serde.rs/derive.html)
2525
- [Release notes](https://github.com/serde-rs/json/releases)
@@ -126,7 +126,7 @@ without quotation marks involves converting from a JSON string to a Rust string
126126
with [`as_str()`] or avoiding the use of `Value` as described in the following
127127
section.
128128

129-
[`as_str()`]: https://docs.serde.rs/serde_json/enum.Value.html#method.as_str
129+
[`as_str()`]: https://docs.rs/serde_json/1/serde_json/enum.Value.html#method.as_str
130130

131131
The `Value` representation is sufficient for very basic tasks but can be tedious
132132
to work with for anything more significant. Error handling is verbose to
@@ -363,14 +363,14 @@ For JSON support in Serde without a memory allocator, please see the
363363

364364
[`serde-json-core`]: https://github.com/rust-embedded-community/serde-json-core
365365

366-
[value]: https://docs.serde.rs/serde_json/value/enum.Value.html
367-
[from_str]: https://docs.serde.rs/serde_json/de/fn.from_str.html
368-
[from_slice]: https://docs.serde.rs/serde_json/de/fn.from_slice.html
369-
[from_reader]: https://docs.serde.rs/serde_json/de/fn.from_reader.html
370-
[to_string]: https://docs.serde.rs/serde_json/ser/fn.to_string.html
371-
[to_vec]: https://docs.serde.rs/serde_json/ser/fn.to_vec.html
372-
[to_writer]: https://docs.serde.rs/serde_json/ser/fn.to_writer.html
373-
[macro]: https://docs.serde.rs/serde_json/macro.json.html
366+
[value]: https://docs.rs/serde_json/1/serde_json/value/enum.Value.html
367+
[from_str]: https://docs.rs/serde_json/1/serde_json/de/fn.from_str.html
368+
[from_slice]: https://docs.rs/serde_json/1/serde_json/de/fn.from_slice.html
369+
[from_reader]: https://docs.rs/serde_json/1/serde_json/de/fn.from_reader.html
370+
[to_string]: https://docs.rs/serde_json/1/serde_json/ser/fn.to_string.html
371+
[to_vec]: https://docs.rs/serde_json/1/serde_json/ser/fn.to_vec.html
372+
[to_writer]: https://docs.rs/serde_json/1/serde_json/ser/fn.to_writer.html
373+
[macro]: https://docs.rs/serde_json/1/serde_json/macro.json.html
374374

375375
<br>
376376

src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
//! a JSON string to a Rust string with [`as_str()`] or avoiding the use of
105105
//! `Value` as described in the following section.
106106
//!
107-
//! [`as_str()`]: https://docs.serde.rs/serde_json/enum.Value.html#method.as_str
107+
//! [`as_str()`]: crate::Value::as_str
108108
//!
109109
//! The `Value` representation is sufficient for very basic tasks but can be
110110
//! tedious to work with for anything more significant. Error handling is
@@ -290,14 +290,14 @@
290290
//! For JSON support in Serde without a memory allocator, please see the
291291
//! [`serde-json-core`] crate.
292292
//!
293-
//! [value]: https://docs.serde.rs/serde_json/value/enum.Value.html
294-
//! [from_str]: https://docs.serde.rs/serde_json/de/fn.from_str.html
295-
//! [from_slice]: https://docs.serde.rs/serde_json/de/fn.from_slice.html
296-
//! [from_reader]: https://docs.serde.rs/serde_json/de/fn.from_reader.html
297-
//! [to_string]: https://docs.serde.rs/serde_json/ser/fn.to_string.html
298-
//! [to_vec]: https://docs.serde.rs/serde_json/ser/fn.to_vec.html
299-
//! [to_writer]: https://docs.serde.rs/serde_json/ser/fn.to_writer.html
300-
//! [macro]: https://docs.serde.rs/serde_json/macro.json.html
293+
//! [value]: crate::value::Value
294+
//! [from_str]: crate::de::from_str
295+
//! [from_slice]: crate::de::from_slice
296+
//! [from_reader]: crate::de::from_reader
297+
//! [to_string]: crate::ser::to_string
298+
//! [to_vec]: crate::ser::to_vec
299+
//! [to_writer]: crate::ser::to_writer
300+
//! [macro]: crate::json
301301
//! [`serde-json-core`]: https://github.com/rust-embedded-community/serde-json-core
302302
303303
#![doc(html_root_url = "https://docs.rs/serde_json/1.0.91")]

src/value/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@
8585
//! # untyped_example().unwrap();
8686
//! ```
8787
//!
88-
//! [macro]: https://docs.serde.rs/serde_json/macro.json.html
89-
//! [from_str]: https://docs.serde.rs/serde_json/de/fn.from_str.html
90-
//! [from_slice]: https://docs.serde.rs/serde_json/de/fn.from_slice.html
91-
//! [from_reader]: https://docs.serde.rs/serde_json/de/fn.from_reader.html
88+
//! [macro]: crate::json
89+
//! [from_str]: crate::de::from_str
90+
//! [from_slice]: crate::de::from_slice
91+
//! [from_reader]: crate::de::from_reader
9292
9393
use crate::error::Error;
9494
use crate::io;

0 commit comments

Comments
 (0)