Matt Brubeck
3a0cfc87df
Add current chapter title to handlebars context
2016-12-31 10:34:36 -08:00
Onur Aslan
b9e22bb8f2
Use light theme when javascript is disabled
...
mdBook is setting theme (by adding a class attribute to body tag) with javascript.
Page is not using any theme by default and page is not using any styling unless
javascript is enabled.
This patch is adding class attribute to body tag and making mdBook to use `light`
theme when javascript is disabled.
Fixes : #144
2016-06-15 17:25:28 +03:00
Boris-Chengbiao Zhou
e861880f95
Implement Serve feature
2016-04-02 05:20:46 +02:00
Lucio Franco
ceb139a848
Moved CDN's to https
2016-03-23 14:16:41 -06:00
Jesse Stricker
330b1ad55d
Add description config option
2016-02-25 14:32:49 +01:00
Jesse Stricker
f508db6113
Add favicon support to theme
2016-02-22 17:17:07 +01:00
Mathieu David
600eb02fee
Fix bug introduced earlier, where navigation arrows would become blue when visited + make the tooltip on nvigation arrows a little clearer
2015-12-30 16:48:46 +01:00
Istratov D. S
43eef7637a
add navigation by arrows
2015-12-30 18:30:08 +03:00
Mathieu David
6c240090ae
Fix #47 sidebar stays hidden even after page change
2015-09-24 16:47:33 +02:00
Mathieu David
54a56a6354
Fix flash when selecting another theme and reloading the page
2015-09-14 18:12:45 +02:00
mdinger
872f9ea5e6
Add tomorrow night as dark code highlighting theme
2015-09-14 05:08:48 -04:00
Mathieu David
37b68c41f7
Theme toggle button
2015-09-14 05:02:41 -04:00
Mathieu David
13e5e862ce
Local fallback for Font Awesome #46
2015-09-13 20:03:34 +02:00
Mathieu David
95dfff008c
Local fallback for jquery #46
2015-09-13 19:16:11 +02:00
Mathieu David
6962731474
Added MathJax support does not work 100% but it's better than nothing #49
2015-09-10 23:30:29 +02:00
Mathieu David
d03ae79765
Added a page containing the whole book for printing purposes, closes #41 + cleaning root path
2015-09-05 17:26:32 +02:00
Mathieu David
4789073e6d
Added print button + avoid pagebreaks after titles (doesn't work on chrome, should be tested in Firefox)
2015-09-05 11:40:40 +02:00
Mathieu David
8e9dc3643f
Prevent navigation arrows from collapsing with text on smaller screen. Fix #42
2015-08-31 17:09:18 +02:00
Mathieu David
c6b6069ed3
Tweaks to the docs + clean-up
2015-08-06 15:24:34 +02:00
Mathieu David
a0040733e9
Fixed rust example in doc + some tweaks for html validation
2015-08-06 14:09:55 +02:00
Mathieu David
90719f721b
Added syntax highlighting with highlight.js Closes #31 + Added a new chapter to the docs #30 .
2015-08-05 18:28:59 +02:00
Mathieu David
842196b91c
Cleaned up the handlebars helpers, it's a lot more customizable because the user can put whatever template he wants inside and I just expose link and name of previous / next chapter. JavaScript part is removed. #26
2015-08-04 12:52:32 +02:00
Mathieu David
a77fe94c02
Started to clean the 'previous' and 'next' handlebars helpers #26 But got stuck, waiting for a response
2015-08-03 22:09:26 +02:00
Mathieu David
ef00851b8e
Fixes #24
2015-08-01 17:21:05 +02:00
Mathieu David
5b11907a56
Added navigation icons + javascript code to hide them when there is no previous or next. Closes #12
2015-08-01 14:18:25 +02:00
Mathieu David
1111ff3ceb
Fixes 2 bugs with relative paths. Fixed by injecting a variable path_to_root into the json data for the handlebars template. Fixes #17
2015-07-29 23:32:01 +02:00
Mathieu David
0e27a473c5
Sidebar is now hidden on mobile devices and can be hidden/shown with the button
2015-07-29 13:34:48 +02:00
Mathieu David
ecdcc31e9e
Added function to clean links before inserting in toc
2015-07-29 12:10:12 +02:00
Mathieu David
f500b4a836
Rough implementation for handlebars helper to display toc correctly, probably needs a little bit of cleaning... Url in toc doesn't work yet. It needs to be cleaned before './url' -> '/url' and 'url' -> '/url'
2015-07-29 00:57:47 +02:00
Mathieu David
4203b5b1c4
added markdown with 'pulldown-cmark', added basic styling, render of the toc is still not completely done
2015-07-28 21:01:13 +02:00
Mathieu David
be0bfa7170
Split of the creating of the JSon object into it's own function
2015-07-19 14:02:21 +02:00
Mathieu David
4d4f35ecba
First big step for the html renderer, it reads an handlebars template and creates the files from SUMMARY.md respecting the source folder structure
2015-07-19 00:08:38 +02:00