Skip to content

Commit 641a2b6

Browse files
committed
Add doc module for standalone documentation
1 parent 12351ab commit 641a2b6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ matrix:
66
include:
77
- rust: 1.22.1
88
env:
9-
- FEATURES='test'
9+
- FEATURES='test docs'
1010
- rust: stable
1111
env:
12-
- FEATURES='test'
12+
- FEATURES='test docs'
1313
- CARGO_INCREMENTAL=0
1414
- rust: beta
1515
env:
16-
- FEATURES='test'
16+
- FEATURES='test docs'
1717
- CARGO_INCREMENTAL=0
1818
- rust: nightly
1919
env:
20-
- FEATURES='test'
20+
- FEATURES='test docs'
2121
- IS_NIGHTLY=1
2222
- CARGO_INCREMENTAL=0
2323
branches:

src/doc/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//! Standalone documentation pages.

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ extern crate matrixmultiply;
9191
extern crate num_traits as libnum;
9292
extern crate num_complex;
9393

94+
#[cfg(feature = "docs")]
95+
pub mod doc;
96+
9497
use std::marker::PhantomData;
9598
use std::sync::Arc;
9699

0 commit comments

Comments
 (0)