You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
http://doc.rust-lang.org/book/ is supposed to "run these examples on play.rust-lang.org by clicking on the arrow that appears in the upper right of the example when you mouse over the code" but these arrows don't seem to appear in any of the code samples.
The text was updated successfully, but these errors were encountered:
Looked into this and saw a few things incase anyone else is looking into it.
"--markdown-playground-url=http://play.rust-lang.org".to_string(), is missing from the rustdoc_args in src/rustbook/build.rs. Adding this however does not get it to work because of the next items.
The template used to render the rustbook is from src/librustdoc/markdown.rs where as for the documentation it is in src/librustdoc/html/layout.rs. This is important as the template in layout.rs includes the playpen.js.
I tried to include playpen.js into the output but this still did not work, it is missing the tag from which it gets the code. This seems to be because s.push_str(&format!("<span class='rusttest'>{}</span>", Escape(&test))); line does not get executed in src/librustdoc/html/markdown.rs
http://doc.rust-lang.org/book/ is supposed to "run these examples on play.rust-lang.org by clicking on the arrow that appears in the upper right of the example when you mouse over the code" but these arrows don't seem to appear in any of the code samples.
The text was updated successfully, but these errors were encountered: