* Allow underscores in the link type name * Add some tests for include anchors * Include parts of Rust files and hide the rest Fixes #618. * Increase min supported Rust version to 1.35 * Add a test for a behavior of rustdoc_include I want to depend on At first I thought this was a bug, but then I looked at some use cases we have in TRPL and decided this was a feature that I'd like to use.
534 B
534 B
Nested Chapter
This file has some testable code.
assert!($TEST_STATUS);
Some Section
{{#include nested-test.rs}}
Anchors include the part of a file between special comments
{{#include nested-test-with-anchors.rs:myanchor}}
Rustdoc include adds the rest of the file as hidden
{{#rustdoc_include partially-included-test.rs:5:7}}
Rustdoc include works with anchors too
{{#rustdoc_include partially-included-test-with-anchors.rs:rustdoc-include-anchor}}