Skip to content

Commit 854e457

Browse files
committed
Include README in docs for docs.rs.
1 parent 4a26c67 commit 854e457

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ yew-router = { version="0.14.0", features=["web_sys"], optional=true }
2020
[features]
2121
default = ["router"]
2222
router = ["yew-router"]
23+
docinclude = [] # Used only for activating `doc(include="...")` on nightly.
24+
25+
[package.metadata.docs.rs]
26+
features = ["docinclude"] # Activate `docinclude` during docs.rs build.

src/lib.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
//! YBC encapsulates all of the structure, style and functionality of the Bulma CSS framework
2-
//! as a set of Yew components. YBC also ships with support for the Yew Router, adding
3-
//! Bulma-styled components which wrap the Yew Router components for clean integration.
4-
//!
5-
//! As a guiding principal, YBC does not attempt to encapsulate every single Bulma style as a
6-
//! Rust type, let alone the many valid style combinations. That would be far too complex, and
7-
//! probably limiting to the user in many ways. Instead, YBC handles strucutre, required classes,
8-
//! functionality, sane defaults and every component can be customized with any additional
9-
//! classes for an exact look and feel.
10-
1+
#![cfg_attr(feature = "docinclude", feature(external_doc))]
2+
#![cfg_attr(feature = "docinclude", doc(include = "../README.md"))]
113
#![recursion_limit = "1024"]
124

135
mod columns;

0 commit comments

Comments
 (0)