We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e4279 commit d350008Copy full SHA for d350008
src/test/run-make-fulldeps/rustdoc-themes/Makefile
@@ -0,0 +1,10 @@
1
+-include ../tools.mk
2
+
3
+# Test that rustdoc will properly load in a theme file and display it in the theme selector.
4
5
+OUTPUT_DIR := "$(TMPDIR)/rustdoc-themes"
6
7
+all:
8
+ cp $(S)/src/librustdoc/html/static/themes/light.css $(TMPDIR)/test.css
9
+ $(RUSTDOC) -o $(OUTPUT_DIR) foo.rs --themes $(TMPDIR)/test.css
10
+ $(HTMLDOCCK) $(OUTPUT_DIR) foo.rs
src/test/run-make-fulldeps/rustdoc-themes/foo.rs
@@ -0,0 +1,4 @@
+// @has test.css
+// @has foo/struct.Foo.html
+// @has - '//link[@rel="stylesheet"]/@href' '../test.css'
+pub struct Foo;
0 commit comments