Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
cc3ffe4c912ff00baeec1f52bb16389136a23a27
rust/tests/rustdoc/playground-empty.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
268 B
Rust
Raw Normal View History

rustdoc: Improve playground run buttons The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
2016-10-11 09:56:30 +01:00
#![crate_name = "foo"]
#![doc(html_playground_url = "")]
Add compile flags to playground-empty test "Run" links to the playground are not added to the generated documentation if the unstable `--playground-url` argument is not passed to rustdoc. Therefore, without specifying `--playground-url` as a compile-flag, the test doesn't correctly assert that `#![doc(html_playground_url = "")]` removes playground links.
2018-10-04 22:23:19 +02:00
//@ compile-flags:-Z unstable-options --playground-url https://play.rust-lang.org/
rustdoc: Improve playground run buttons The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
2016-10-11 09:56:30 +01:00
//! module docs
//!
//! ```
//! println!("Hello, world!");
//! ```
Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ !has foo/index.html '//a[@class="test-arrow"]' "Run"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1034ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API