Add rustdoc-js test

Finally!
This commit is contained in:
Camelid 2020-11-23 20:33:41 -08:00
parent 07e9426efb
commit b9035194c0
3 changed files with 26 additions and 1 deletions

View File

@ -1,2 +1,2 @@
/// Foo
/// Docs for Foo
pub struct Foo;

View File

@ -0,0 +1,7 @@
const QUERY = 'summaries';
const EXPECTED = {
'others': [
{ 'path': '', 'name': 'summaries', 'desc': 'This <em>summary</em> has a link and <code>code</code>.' },
],
};

View File

@ -0,0 +1,18 @@
#![crate_type = "lib"]
#![crate_name = "summaries"]
//! This *summary* has a [link] and `code`.
//!
//! This is the second paragraph.
//!
//! [link]: https://example.com
/// This `code` will be rendered in a code tag.
///
/// This text should not be rendered.
pub struct Sidebar;
/// ```text
/// this block should not be rendered
/// ```
pub struct Sidebar2;