Make sure the langref doc can be opened if the package is on crates.io

One need to make a symlink because the files need to be in the package
This commit is contained in:
Olivier Goffart 2020-08-25 13:53:24 +02:00
parent 66dce1a1bc
commit 304b0e7b0e
3 changed files with 4 additions and 2 deletions

View file

@ -194,8 +194,9 @@ pub struct VersionCheck_0_0_1;
#[cfg(doctest)]
mod compile_fail_tests;
#[cfg(all(doc, nightly))]
pub mod langref {
#![cfg_attr(nightly, doc(include = "../../docs/langref.md"))]
#![doc(include = "docs/langref.md")]
#![doc = ""]
}