2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2019-05-24 14:04:45 -05:00
|
|
|
|
|
|
|
# Test that rustdoc will properly load in a theme file and display it in the theme selector.
|
|
|
|
|
|
|
|
OUTPUT_DIR := "$(TMPDIR)/rustdoc-themes"
|
|
|
|
|
|
|
|
all:
|
2023-09-13 17:08:45 -05:00
|
|
|
awk '/Begin theme: light/ {in_theme=1;next} /End theme:/ {in_theme=0} { if (in_theme) print }' \
|
|
|
|
< '$(S)/src/librustdoc/html/static/css/noscript.css' > '$(TMPDIR)/test.css'
|
2019-09-22 15:35:25 -05:00
|
|
|
$(RUSTDOC) -o $(OUTPUT_DIR) foo.rs --theme $(TMPDIR)/test.css
|
2019-11-18 11:53:45 -06:00
|
|
|
$(HTMLDOCCK) $(OUTPUT_DIR) foo.rs
|