From 58d18d467cc015a06cbc4e6b59a5abcdafc3a523 Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Wed, 5 Aug 2015 19:14:03 +0200 Subject: [PATCH] Fixed a bug where custom theme was appended to default theme + Changed syntax highlighting theme to something lighter, the dark theme did not fit the light style of the page --- book-example/book/format/theme.html | 2 +- book-example/book/highlight.css | 200 +++++++++----------------- book-example/src/format/theme.md | 2 +- src/renderer/html_handlebars/theme.rs | 5 + src/theme/highlight.css | 200 +++++++++----------------- 5 files changed, 147 insertions(+), 262 deletions(-) diff --git a/book-example/book/format/theme.html b/book-example/book/format/theme.html index cba996a9..5e08d08f 100644 --- a/book-example/book/format/theme.html +++ b/book-example/book/format/theme.html @@ -42,7 +42,7 @@ and now that file will be used instead of the default file.

Note:

When you overwrite a file, it is possible that you break some functionality. Therefore I recommend to use the file from the default theme as template and only add / modify what you need. In the future you will be able to copy the default theme into your source directory automatically by using mdbook init --theme.

Syntax Highlighting

-

For syntax highlighting I use Highlight.js with the Monokai Sublime theme as default. +

For syntax highlighting I use Highlight.js with modified theme. But if you want a different theme, just put a highlight.css file in your theme folder and your theme will be used.