From 9dca3cd29999e43f046d226abd7e0967ad884d7d Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Thu, 21 Sep 2017 11:05:48 +0200 Subject: [PATCH] add an example for custom css --- book-example/book.toml | 3 ++- book-example/src/format/config.md | 4 +++- book-example/src/misc/contributors.md | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/book-example/book.toml b/book-example/book.toml index 4dbc659c..4679a3a2 100644 --- a/book-example/book.toml +++ b/book-example/book.toml @@ -3,4 +3,5 @@ description = "Create book from markdown files. Like Gitbook but implemented in author = "Mathieu David" [output.html] -mathjax-support = true \ No newline at end of file +additional-css = ["my_custom.css"] +mathjax-support = true diff --git a/book-example/src/format/config.md b/book-example/src/format/config.md index 463c430d..aa8a107e 100644 --- a/book-example/src/format/config.md +++ b/book-example/src/format/config.md @@ -16,9 +16,11 @@ description = "The example book covers examples." [output.html] destination = "my-example-book" -additional-css = ["custom.css"] +additional-css = ["my_custom.css"] ``` +
Formatting elements with custom css.
+ ## Supported configuration options It is important to note that **any** relative path specified in the in the configuration will diff --git a/book-example/src/misc/contributors.md b/book-example/src/misc/contributors.md index 36b50fad..54803917 100644 --- a/book-example/src/misc/contributors.md +++ b/book-example/src/misc/contributors.md @@ -11,3 +11,4 @@ If you have contributed to mdBook and I forgot to add you, don't hesitate to add - Wayne Nilsen ([waynenilsen](https://github.com/waynenilsen)) - [funnkill](https://github.com/funkill) - Fu Gangqiang ([FuGangqiang](https://github.com/FuGangqiang)) +- Stefan Schindler ([dns2utf8](https://github.com/dns2utf8))