Commit graph

492 commits

Author SHA1 Message Date
Mathieu David
3e80268a44 Merge pull request #303 from budziq/clipboard
RFC - Initial implementation of clipboard handling
2017-05-31 22:22:15 +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
Mathieu David
bfc3fbb405 Merge pull request #304 from budziq/hljs_update
Updated highlight.js to v9.12.0
2017-05-31 15:50:06 +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
Mathieu David
316bcf7b5d Merge pull request #300 from budziq/serving_url
Reformatted "Serving on " message for easier consumption
2017-05-27 11:54:12 +02:00
Michal Budzynski
453b97bec0 Reformatted "Serving on " message for easier consumption
Now we have: `Serving on: http://localhost:3000`
2017-05-27 11:34:46 +02:00
Mathieu David
4364ec3a7b Merge pull request #298 from superstring/master
Fix websocket port option for serve
2017-05-26 13:54:07 +02:00
superstring
7de24f86a9 Change --ws-port to --websocket-port 2017-05-26 19:18:32 +08:00
superstring
027c21aef7 Fix websocket port option for serve 2017-05-26 12:04:20 +08:00
Mathieu David
64f0bdbfba Merge pull request #297 from aaaxx/master
CSS: better fallback stack for monospaced fonts
2017-05-24 10:28:25 +02:00
aaaxx
cc1cb9edb0 CSS: better fallback stack for monospaced fonts
List of system fonts (R, I, B means roman, italic and bold. Ubuntu probably comes with more fonts, but I couldn't find a list to confirm.):

```txt
Windows
----------
Consolas            R RI  B BI
Courier             R
Courier New         R RI  B BI
Lucida Console      R

Mac
----------
Andale Mono         R
Courier             R RI  B BI
Courier New         R RI  B BI
Menlo               R RI  B BI
Monaco              R

Ubuntu
----------
Ubuntu Mono         R RI  B BI
DejaVu Sans Mono    R RI  B BI
```

```css
font-family: Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
```

Consolas and Ubuntu are professionally designed fonts ([Lucas de Groot][1] and [Dalton Maag][2]), with true, calligraphic italic, so they go at the top of the stack.

Menlo is [based on DejaVu Sans Mono][3], the only difference being a few tweaked glyphs, so DejaVu serves as a fallback for it.

As for Courier New, other than being unreadably spindly, it's the default monospaced font in all browsers, so there's no need to include it in the stack.

The `monospace, monospace;` declaration is, by now, [a standard hack][4] that overrides some browsers' behaviour of defaulting the `monospace` elements to smaller font size. Without it, any relative font size you apply to them will be calculated from that reduced size (seems to be 13 px in all browsers).


[1]: https://en.wikipedia.org/wiki/Luc(as)_de_Groot
[2]: https://en.wikipedia.org/wiki/Dalton_Maag
[3]: http://www.leancrew.com/all-this/2009/10/the-compleat-menlovera-sans-comparison/
[4]: https://stackoverflow.com/questions/38781089/font-family-monospace-monospace
2017-05-24 06:07:58 +02:00
Mathieu David
35ef31757b Merge pull request #295 from budziq/err_ch
Friendlier errors from build.rs and support for Windows stylus build
2017-05-22 18:20:57 +02:00
Michal Budzynski
87f26a82b6 Fix for different naming of nodejs on ubuntu
also added static lifetime to str constants as these were failing on nightly windows
2017-05-22 17:06:38 +02:00
Michal Budzynski
1d141aa27b Workaround for not being able to run stylus on windows 2017-05-22 16:35:39 +02:00
Michal Budzynski
a84c1ecf33 Implemented a more friendly stylus error handling
Added error-chain as build-dependency
2017-05-22 04:25:59 +02:00
Mathieu David
2518d5c827 Fix error in contribution guide 2017-05-20 19:43:32 +02:00
Mathieu David
3f98d69690 Merge pull request #289 from budziq/highlight
Inline code with hyperlink is now highlighted
2017-05-20 17:27:56 +02:00
Michal Budzynski
9c8c819ec3 Inline code with hyperlink is now highlighted
Inline code with hyperlink has now a different color then
standard inline code and has a on hover underline.
2017-05-20 17:10:53 +02:00
Mathieu David
f038dcb404 Merge pull request #288 from budziq/rustfmt_update
Made changes with rustfmt including `use_try_shorthand`
2017-05-19 13:43:49 +02:00
Michal Budzynski
75bbd55128 Changes made with rustfmt including use_try_shorthand
Updated the project rustfmt.toml to include `use_try_shorthand = true`.
Run rustfmt on all rust sources.
2017-05-19 13:04:37 +02:00
Mathieu David
faa716d99c update all dependencies 2017-05-18 11:56:04 +02:00
Mathieu David
b1601b16ea Merge pull request #278 from azerupi/contributing
Contributing file
2017-05-18 09:55:26 +02:00
Mathieu David
379ed9dc16 Merge pull request #284 from budziq/indentation
Fix indentation of hidden code blocks
2017-05-18 09:36:53 +02:00
Mathieu David
7b6836b75e Merge pull request #283 from budziq/quick_main
Do not add playpen boilerplate when using quick_main!
2017-05-18 09:29:57 +02:00
Michal Budzynski
e4dd03c8f0 Fix indentation of hidden code blocks
Hidden code blocks are no longer indented with
one additional space (required for doctests to compile in some cases)
Now the behavior is similar to the rustdoc's
2017-05-18 00:04:09 +02:00
Michał Budzyński
c99ce06370 Do not add playpen boilerplate quick_main! is used
code snippets using quick_main! macro from error-chain
https://docs.rs/error-chain/0.10.0/error_chain/macro.quick_main.html
no longer have `fn main` implicitly added
2017-05-17 22:27:03 +02:00
Mathieu David
0f67cae1ef Wrap lines and add more whitespace in CONTRIBUTING.md 2017-05-17 18:36:52 +02:00
Mathieu David
0443f8a709 Merge pull request #262 from Rufflewind/master
Fix broken link in book-example/src/lib/lib.md
2017-05-17 11:37:07 +02:00
Mathieu David
1442923a0a Add simple issue examples 2017-05-16 22:16:59 +02:00
Mathieu David
9447274fa5 Modify the Readme for the new contribution guide 2017-05-16 22:10:24 +02:00
Mathieu David
7a59591109 Added a contributing file 2017-05-16 22:02:07 +02:00
Mathieu David
d636ca45e8 Merge pull request #276 from steveklabnik/gh158
Remove allow-failure on MUSL
2017-05-16 20:40:37 +02:00
steveklabnik
832ef446dd Remove allow-failure on MUSL
This should work now.

Fixes #158
2017-05-16 13:06:08 -04:00
Mathieu David
74e75d2cfb Merge pull request #273 from Michael-F-Bryan/google-analytics-docs
Added a note about google analytics to the docs
2017-05-16 14:19:14 +02:00
Michael-F-Bryan
95750be815 Added a note about google analytics to the docs 2017-05-16 17:40:14 +08:00
Mathieu David
4ad6fab5e3 Merge pull request #272 from Michael-F-Bryan/google-analytics
Support for Google Analytics
2017-05-16 09:13:57 +02:00
Michael-F-Bryan
94dce4f796 Added google_analytics so it can be inserted into handlebars 2017-05-16 13:28:59 +08:00
Michael-F-Bryan
ada1f29b34 Added a google_analytics field to BookConfig
This commit:
- Adds an Option<String> field to the BookConfig which should
  contain your google analytics ID
- Allows the google analytics ID to be extracted from the config
  file (key is google_analytics_id)
- Adds a test to make sure the field is populated from a config
  file correctly
2017-05-16 13:15:04 +08:00
Michael-F-Bryan
4a634f08da Updated google analytics to index.hbs and hbs_renderer.rs 2017-05-16 13:05:21 +08:00
Mathieu David
e8b88cfa5e Merge pull request #267 from Rufflewind/mathjax
Change MathJax to use CDNJS
2017-05-06 17:41:42 +02:00
Phil Ruffwind
3066597acc Change MathJax to use CDNJS
Because the MathJax CDN will soon be retired.
2017-05-05 17:08:59 -04:00
Phil Ruffwind
7eade3b101 Fix broken link in book-example/src/lib/lib.md
The template sets `<base href="../">` so it's not necessary to have
`../` in the link.
2017-05-01 20:32:06 -04:00
Mathieu David
435682e95c (cargo-release) start next development iteration 0.0.22-pre 2017-04-27 16:05:45 +02:00
Mathieu David
69188445e7 (cargo-release) version 0.0.21 2017-04-27 16:03:02 +02:00
Mathieu David
9b7a26effd Merge pull request #259 from azerupi/incorrect-conditional
Fix incorrect conditional.
2017-04-27 16:00:29 +02:00
Corey Farwell
4f4120b5a4 Fix incorrect conditional.
I accidentally introduced this in 4525810737.
2017-04-27 09:16:19 -04:00
Mathieu David
607bf4426e (cargo-release) start next development iteration 0.0.21-pre 2017-04-26 19:25:14 +02:00
Mathieu David
8b84b8fa82 (cargo-release) version 0.0.20 2017-04-26 19:22:37 +02:00