Browse Source

Add script to generate limited documentation

Jethro Beekman 8 years ago
parent
commit
52c72ecf9f
2 changed files with 6 additions and 0 deletions
  1. 2 0
      doc.sh
  2. 4 0
      src/lib.rs

+ 2 - 0
doc.sh

@@ -0,0 +1,2 @@
+#!/bin/bash
+cargo rustdoc -- --html-in-header <(echo '<style type="text/css">.docblock>*, .collapse-toggle, #toggle-all-docs { display: none; } #core_io-show-docblock+p { display: initial }</style>')

+ 4 - 0
src/lib.rs

@@ -1,3 +1,7 @@
+//! <p id="core_io-show-docblock"></p>
+//! This is just a listing of the functionality available in this crate. See
+//! the [std documentation](https://doc.rust-lang.org/nightly/std/io/index.html)
+//! for a full description of the functionality.
 #![allow(stable_features,unused_features)]
 #![feature(question_mark,const_fn,collections,alloc,unicode,copy_from_slice,str_char)]
 #![no_std]