Michael Bryan
a554390aa2
Slightly cleaned up the google analytics tag (skip ci)
2017-10-09 09:53:02 +08:00
Michael Bryan
f2e56c887b
Got the logic around the wrong way
2017-10-04 19:57:06 +08:00
Michael Bryan
b4a12fa723
Made sure google analytics isn't included when inspecting locally
2017-10-04 19:57:06 +08:00
Pratik Karki
382fc4139b
run rustfmt on the repository #398(Updated) ( #438 )
...
rustfmt the repository #398
2017-10-03 13:40:23 +02:00
Mathieu David
a6d4881e00
Merge pull request #450 from Zengor/master
...
Call playground with /execute
2017-09-23 21:35:41 +02:00
steveklabnik
9b64db908f
prefix sidebar too
2017-09-22 13:58:45 -04:00
steveklabnik
f562878131
I forgot one theme, thanks budziq
2017-09-22 13:56:58 -04:00
Zengor
3823fc0e74
Call playground with /execute and not the legacy /evaluate.json
...
This commit changes the url used to call the playground, and the
request parameter format to go with it. The older evaluate is
available in the playground as a form of backwards compatibility
and swithcing now opens way for using newer features.
2017-09-21 00:24:47 -03:00
steveklabnik
793fb8f654
Change key for theme to not clobber old books
...
Fixes https://github.com/azerupi/mdBook/issues/448
2017-09-19 16:59:16 -04:00
Bartłomiej T. Listwon
911683d2cf
Fix styling regression on print media in chromium
...
Forces 0px left padding on print view even if sidebar is visible
2017-09-18 22:10:31 +02:00
Bartłomiej T. Listwon
91fd8a2865
Fix code snippet font size a little smaller in FF
2017-09-18 11:18:21 +02:00
Mathieu David
0d6adc5fc9
Fix the issue with pages named print not at the root
2017-09-13 22:17:23 +02:00
Mathieu David
016ec8836c
Merge pull request #415 from azerupi/fix-print-title
...
Fix the print title that was using the title from the last rendered chapter
2017-09-07 23:29:54 +02:00
Mathieu David
881a1b39ff
Remove the logic in handlebars and expose the 3 different titles in the handlebars variables
2017-09-07 23:19:22 +02:00
Michal Budzynski
6bc3039b4f
Both static and ACE editable snippets have optional play button
...
- list of available crates is dynamically loaded from play.rust-lang.org
- play button is enabled only if crates used in snippet are available on playground
- ACE editor's play button is dynamically updated on each text change
- `no_run` is honored by always disabling the play button
- minor cleanups
2017-09-06 00:18:24 +02:00
Michal Budzynski
cd90fdd407
first prototype of play-button enabling only if crate list supported
...
also minor refactor of clipboard handling
TODO:
- `no_run` support
- test with ACE
- disable play button with tooltip instead of hiding
2017-09-06 00:18:24 +02:00
Mathieu David
0a4a2b66da
Fix the print title that was using the title from the last rendered chapter. Fixes #414
2017-09-01 08:22:24 +02:00
Michal Budzynski
c36eca15c2
renamed Playpen to Playground in ajax error handling
2017-08-06 17:10:52 +02:00
Michal Budzynski
eed1a0a591
handle play.rust-lang.org communication errors in playpens
...
also add 15s communication timeout
2017-08-06 14:59:19 +02:00
projektir
16aa545c5b
Integrating Ace #247
2017-08-03 22:45:33 -04:00
projektir
6601dbdd61
Adding ace.js, Rust highlighter, and themes #247
2017-08-03 20:00:39 -04:00
Michael Bryan
2f8d5ce263
Removed a lot of the repetition in Theme::new()
2017-08-03 07:01:52 +08:00
Michael Bryan
ce2d7153f7
removed some repetition from the themes module
2017-08-02 23:31:37 +08:00
Michal Budzynski
b1ca9cf5b5
HtmlConfig is no longer optional
...
`HtmlConfig` was both guaranteed to exist within `BookConfig`
and `expect`ed in few places.
This simplifies the API a little by representing the fact that
`HtmlConfig` is currently mandatory for proper mdBook binary operation.
2017-06-27 14:01:33 +02:00
Michal Budzynski
f214c7108f
Make MathJax support optional
...
to enable add following to book.toml
```toml
[output.html]
mathjax-support = true
```
2017-06-25 00:32:33 +02:00
Mathieu David
d50486e337
Merge pull request #314 from budziq/fix_theme
...
Fixes missing the default "theme" dir location
2017-06-24 14:03:10 +02:00
Michal Budzynski
672d91e6c2
Hide theme selector popup on interaction outside of it
...
Also set cursor to pointer on theme selector items.
2017-06-23 13:31:28 +02:00
Michal Budzynski
6d8ac6a23c
Fixes missing the default "theme" dir location
...
if not specified in book.toml
2017-06-23 13:29:46 +02:00
Mathieu David
ab31f4b027
Merge pull request #310 from jimmydo/ios-scroll-to-top
...
On iOS, allow scrolling to the top of the page by tapping the top of the screen
2017-06-23 01:01:19 +02:00
Mathieu David
49336e0698
Merge branch 'master' of github.com:azerupi/mdBook
2017-06-18 19:21:08 +02:00
Mathieu David
cff1ed5e08
remove #content
2017-06-18 19:19:48 +02:00
Mathieu David
73c845fbbe
Merge branch 'master' of git://github.com/jmillikan/mdBook into jmillikan-master
2017-06-18 19:14:32 +02:00
Jimmy Do
bd9b0d29ea
On iOS, allow scrolling to the top of the page by tapping the top of the screen
...
* This is a built-in function of iOS Safari that didn't work because the
page content was inside absolutely-positioned, scrollable divs.
* The fix is to stop using absolute positioning on `.page-wrapper` and
`.page`, so that the content uses static positioning and flows
naturally down the page.
* Consequently, `.sidebar` and `.nav-chapter` now have to use `position:
fixed` in order to be positioned relative to the viewport.
* This fix also enables Safari's built-in behavior of automatically
hiding the top and bottom toolbars when scrolling down the page.
2017-06-18 09:58:52 -07:00
Michal Budzynski
c1c06d6dc1
Auto focus on content to allow keyboard navigation
2017-06-15 23:15:41 +02:00
Michal Budzynski
ee9fa8c86f
Fix for playpen buttons missing on mobile safari and chrome IOS
2017-06-13 16:59:29 +02:00
Michal Budzynski
a6275ebcdb
copying to clipboard no longer copies the compilation results from "play"
2017-06-12 14:02:53 +02:00
Mathieu David
9ce6eebe43
Merge branch 'master' of git://github.com/Cldfire/mdBook into Cldfire-master
2017-06-12 11:19:31 +02:00
Mathieu David
350c86155b
Merge branch 'custom_js' of git://github.com/budziq/mdBook into budziq-custom_js
2017-06-12 11:09:07 +02:00
Michal Budzynski
08fd255a56
Move from localStorage to store.js (v2.0.3)
...
Fixes a lot of browser incompatibilities in localStorage/cookie handling
Including but not limited to:
- loss of styling and functionality on chromium private mode
- loss of styling and functionality on safari and safari private mode
- awaiting verification if problems in mobile safari are solved.
2017-06-12 01:53:25 +02:00
Michal Budzynski
f607978780
Hide sidebar on link selection when it occupies large space
...
in relation to the whole screen width (solves problems on phones)
2017-06-11 15:13:31 +02:00
Michal Budzynski
f96e7e5cba
Implemented support for additional JS
2017-06-11 15:08:09 +02:00
pravic
56163f69f8
One more ES5 fix.
2017-06-09 22:48:57 +03:00
pravic
eba90f5440
Fix ES5 compatibility.
2017-06-09 21:59:29 +03:00
Cldfire
44efc65c63
Add Ayu theme
...
Also adds the a new variable, `$inline-code-color`, to base.styl. The `Ayu` theme needed this to change the text color of inline code.
2017-06-06 16:35:44 -04:00
Mathieu David
bb4ceb481f
Allow an additional custom stylesheets, closes #178
2017-06-04 20:41:31 +02:00
Mathieu David
70383d0a25
New config structs supports json again (the old style) for a little deprecation period
2017-06-04 20:41:31 +02:00
Michal Budzynski
3a809e4a1c
Added local fallback for clipboard.js
2017-05-31 21:51:19 +02:00
Michal Budzynski
dfc24bec01
Fixed tooltip styling
...
Also fixed problem with garbage being put in clipboard
when triggered repeatedly
2017-05-31 21:07:47 +02:00
Michal Budzynski
e567d22f1c
Initial implementation of clipboard handling
2017-05-31 19:56:17 +02:00
Michal Budzynski
8bfcd9939c
Updated highlight.js to v9.12.0
...
Fixing problem with raw strings syntax highlighting
Also backported updates to atelier-dune-light.css
2017-05-31 15:12:20 +02:00