Michal Budzynski
efdd0330c1
Extracted `mdbook init` to separate file/module
2017-06-26 01:02:32 +02:00
Michal Budzynski
4c78fdf431
Extracted `mdbook build` to separate file/module
2017-06-26 01:00:18 +02:00
Michal Budzynski
b09fdf07e4
Register `serve` and `watch` subcommands only if given features enabled
2017-06-26 00:43:28 +02:00
Michal Budzynski
5c524da3c2
Extracted `mdbook watch` to separate file/module
2017-06-25 23:44:28 +02:00
Michal Budzynski
99224f40d5
Extracted `mdbook serve` to separate file/module
2017-06-25 23:05:58 +02:00
Mathieu David
b441066105
Merge pull request #335 from Michael-F-Bryan/refactor-hbs-renderer
...
Refactor hbs renderer
2017-06-24 14:44:12 +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
Michael Bryan
c3dfabd5a2
Merge branch 'upstream/master' into refactor-hbs-renderer
...
Notably, this takes into account the curly-quotes pull request (#305 )
2017-06-24 16:07:01 +08:00
Michael Bryan
4c187bcb9f
Explained what HtmlHandlebars::write_custom_function() does
2017-06-24 15:50:51 +08:00
Michal Budzynski
d42ef1cdbc
reduced code repetition in `fill_from_tomlconfig`
2017-06-23 17:01:11 +02:00
Mathieu David
03193e0bd7
Merge pull request #334 from budziq/hide_popup
...
Hide theme selection popup after interaction
2017-06-23 14:15:54 +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
69b3e2b5cb
Merge pull request #332 from budziq/silence_404s
...
error spewing on iron 404 errors
2017-06-23 11:27:31 +02:00
Mathieu David
5e93decf6e
Merge pull request #328 from sunng87/feature/handlebars-upgrade
...
Update handlebars and some helpers
2017-06-23 11:16:52 +02:00
Michal Budzynski
79cdcb46de
extract serving code to a separate module
2017-06-23 08:59:42 +02:00
Michal Budzynski
f889eb3d12
first draft of silencing 404 errors
2017-06-23 08:54:14 +02:00
Mathieu David
3306c030e1
Merge branch 'master' of github.com:azerupi/mdBook
2017-06-23 01:10:38 +02:00
Mathieu David
239886a5cf
Merge branch 'budziq-minor_refactor'
2017-06-23 01:10:29 +02:00
Mathieu David
f3cb4265ca
Fix typo
2017-06-23 01:10:18 +02:00
Mathieu David
28afebdca2
Merge branch 'minor_refactor' of https://github.com/budziq/mdBook into budziq-minor_refactor
2017-06-23 01:09:26 +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
4128a78171
Merge branch 'master' of github.com:azerupi/mdBook
2017-06-23 00:50:11 +02:00
Mathieu David
7f60db069f
Merge branch 'jimmydo-curly-quotes'
2017-06-23 00:49:46 +02:00
Mathieu David
26fc980ffb
Remove 'curly_quotes' key from the json config
2017-06-23 00:48:59 +02:00
Mathieu David
d252dc82d6
Merge branch 'curly-quotes' of https://github.com/jimmydo/mdBook into jimmydo-curly-quotes
2017-06-23 00:43:57 +02:00
Mathieu David
c186d72b40
Merge pull request #346 from projektir/playpen_no_html
...
Creating markdown code from playpen files instead of HTML #345
2017-06-21 16:46:05 +02:00
projektir
73160877b3
Creating markdown code from playpen files instead of HTML #345
2017-06-21 09:33:41 -04:00
Michael Bryan
33f3bec301
Cleaned up the filter_map for normalizing id's using a more readable procedural style
2017-06-20 11:23:53 +08:00
Michael Bryan
8c30de16d6
Used the Entry API to make id counter incrementing nicer
2017-06-20 11:15:12 +08:00
Michael Bryan
fa95546988
Broke the header link wrapping out into smaller functions
2017-06-20 11:06:30 +08:00
Michael Bryan
ac16d7aef1
Added some tests for the original build_header_links function
2017-06-20 10:54:32 +08:00
Michael Bryan
e2a7adaa79
Introduced a RenderItemContext to make item rendering easier
...
I also accidentally ran `rustfmt` instead of `rustfmt-nightly`, so there are a lot of unnecessary style changes :(
2017-06-20 08:54:39 +08:00
Michael Bryan
75f0196c55
Pulled index rendering out into its own method
2017-06-20 07:53:46 +08:00
Mathieu David
49336e0698
Merge branch 'master' of github.com:azerupi/mdBook
2017-06-18 19:21:08 +02:00
Mathieu David
f0c697afd5
Merge branch 'jmillikan-master'
2017-06-18 19:20:23 +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
193f014a5b
Add an option to convert to curly quotes when rendering to HTML
2017-06-18 10:11:04 -07: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
Michael Bryan
4af10ce60c
Renamed a couple functions to be more descriptive and ran rustfmt
2017-06-17 21:15:54 +08:00
Mathieu David
29708db467
Merge pull request #337 from budziq/focus_fix
...
Select right pane content on page load
2017-06-16 13:40:36 +02:00
Michael Bryan
deab3ba751
Tiny whitespace changes
2017-06-16 06:50:13 +08:00
Michal Budzynski
c1c06d6dc1
Auto focus on content to allow keyboard navigation
2017-06-15 23:15:41 +02:00
Michael Bryan
b7aa78c3c0
Minor refactoring
2017-06-15 18:39:41 +08:00
Michael Bryan
2568986fd5
fixed a typo
2017-06-15 18:17:16 +08:00
Michael Bryan
f946ef6327
Pulled some more little bits out into their own helper functions
2017-06-15 18:03:10 +08:00
Michael Bryan
0d0deb7c40
Pulled page rendering out into its own method
2017-06-15 17:43:44 +08:00
Michal Budzynski
e8908e32c9
Minor cleanup
...
- removing need to explicitly use `Path::new` all over the place
- removed warnings from doctests (normally invisible unless `cargo test -- --nocapture`)
- no doctests are norun/ignore now
- updated docs both in book-example and in docs not to refer to nonexisting API's
2017-06-14 21:55:42 +02:00
Mathieu David
9e9a08806d
Merge pull request #329 from budziq/ios_playpen_buttons
...
Fix for playpen buttons missing on mobile safari and chrome IOS
2017-06-13 18:43:34 +02:00