mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Fix doc build with nightly in CI
The #[doc = include_str!("...")] syntax is now the new external file syntax in rust nightly - the old syntax was removed.
This commit is contained in:
parent
0d09f69fb9
commit
7ebbf20467
2 changed files with 4 additions and 5 deletions
|
@ -21,7 +21,7 @@ LICENSE END */
|
|||
*/
|
||||
|
||||
pub mod langref {
|
||||
#![doc(include = "docs/langref.md")]
|
||||
#![doc = include_str!("docs/langref.md")]
|
||||
//!
|
||||
//! #
|
||||
//! Next: [Builtin Elements](super::builtin_elements)
|
||||
|
@ -29,7 +29,7 @@ pub mod langref {
|
|||
|
||||
#[cfg(all(doc, nightly))]
|
||||
pub mod builtin_elements {
|
||||
#![doc(include = "docs/builtin_elements.md")]
|
||||
#![doc = include_str!("docs/builtin_elements.md")]
|
||||
//!
|
||||
//! #
|
||||
//! Next: [Widgets](super::widgets)
|
||||
|
@ -37,7 +37,7 @@ pub mod builtin_elements {
|
|||
|
||||
#[cfg(all(doc, nightly))]
|
||||
pub mod widgets {
|
||||
#![doc(include = "docs/widgets.md")]
|
||||
#![doc = include_str!("docs/widgets.md")]
|
||||
//!
|
||||
//! #
|
||||
//! Next: [Layouting](super::layouting)
|
||||
|
@ -45,7 +45,7 @@ pub mod widgets {
|
|||
|
||||
#[cfg(all(doc, nightly))]
|
||||
pub mod layouting {
|
||||
#![doc(include = "docs/layouting.md")]
|
||||
#![doc = include_str!("docs/layouting.md")]
|
||||
#![doc = ""]
|
||||
}
|
||||
|
||||
|
|
|
@ -174,7 +174,6 @@ struct MyStruct {
|
|||
|
||||
*/
|
||||
|
||||
#![cfg_attr(nightly, feature(doc_cfg, external_doc))]
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unsafe_code)]
|
||||
#![doc(html_logo_url = "https://sixtyfps.io/resources/logo.drawio.svg")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue