Shane Nelson
31fb443562
Cleanup and various fixes
2017-12-18 00:14:25 -05:00
Shane Nelson
a2759b7bd2
Prevent horizontal scroll on mobile browsers if page wrapper is pushed off-screen
2017-12-17 23:04:30 -05:00
Shane Nelson
71689da6b1
Force hidden sidebar on load for screen widths smaller than sidebar plus content and simplify styles
2017-12-17 23:04:30 -05:00
Shane Nelson
6e90e520d6
Avoid resizing page/content on sidebar toggle
2017-12-17 23:04:30 -05:00
Michael Bryan
a280a3003b
Merge pull request #447 from Listwon/clipboard
...
Fix copy to clipboard is available only for rust snippets
2017-12-13 14:32:41 +11:00
lifta42
9143110a43
Optimized the stylesheet for better performance
2017-12-06 16:20:22 +08:00
lifta42
3b136689ee
Fix a CSS bug to show arrow properly
...
The arrow for "previous chapter" was on the incorrect position when screen width is between 1060px and 1250px.
2017-12-02 14:25:24 +08:00
projektir
32df76d077
Adding a header partial integration #453
2017-11-30 21:48:29 -08:00
Bartłomiej T. Listwon
8960013322
Fix copy to clipboard is available only for rust snippets
...
Fixes #432
2017-11-10 21:18:14 +01:00
Michael Bryan
79dd03e8e9
Merge pull request #471 from stgn/theme-popup-absolute
...
Use absolute positioning for theme popup
2017-11-10 13:31:12 +08:00
François
aecc403fb8
add tooltip to icons ( #477 )
...
add tooltip to icons and previous/next chapter links
2017-10-27 14:46:55 +02:00
Mathieu David
cd711bfb1c
Merge pull request #456 from Michael-F-Bryan/conditional-ga
...
Conditional Google Analytics
2017-10-18 14:10:53 +02:00
Shane Nelson
dd3bef8000
Use absolute positioning for theme popup
2017-10-16 21:40:32 -04:00
Michael Bryan
a554390aa2
Slightly cleaned up the google analytics tag (skip ci)
2017-10-09 09:53:02 +08:00
Michael Bryan
ac9c150902
Moved custom JS to the bottom
2017-10-04 19:59:10 +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