Michael Bryan
83354ab24b
Fixed up some unused-imports warnings
2017-06-25 14:21:23 +08:00
Michael Bryan
af05306046
Tried making sure travis installs all the musl tools when required
2017-06-25 14:11:43 +08:00
Michael Bryan
b796ee7c36
Made sure travis installs musl for the musl builds
2017-06-25 13:17:44 +08:00
Michal Budzynski
db94b3d839
Add minimal testing for the optional MathJax support
2017-06-25 00:39:57 +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
Michael Bryan
2abebfb244
Removed the default error-chain features
...
On `x86_64-unknown-linux-musl` it looks like travis can't compile
the `backtrace-sys` crate because the `./configure` step fails.
The error message `./configure` gives is:
configure: error: in `/home/travis/build/azerupi/mdBook/target/x86_64-unknown-linux-musl/debug/build/backtrace-sys-204dc57c91e9a514/out':
configure: error: C compiler cannot create executables
2017-06-25 00:40:56 +08:00
Michael Bryan
fd821a5ead
the binary now uses error-chain
2017-06-25 00:13:41 +08:00
Michael Bryan
487f5ce339
Added error-chain to the renderer module
2017-06-25 00:10:06 +08:00
Michael Bryan
1356e0f068
Added error-chain to the book and utils modules
2017-06-25 00:04:57 +08:00
Michael Bryan
0f93cd002b
Added error-chain to the config files
2017-06-24 23:53:08 +08:00
Michael Bryan
6761442241
Added error-chain to lib.rs
2017-06-24 23:48:50 +08: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