Commit graph

17 commits

Author SHA1 Message Date
Ivan Tham
b61c8e588a
Update to edition 2018 (#565)
* Update to edition 2018

Update mdbook to 0.3.5

Command:
sed -i '/extern crate/ {N;s/\n$//}' src/**.md; sed -i 's/extern crate error_chain;/use error_chain::error_chain;/; s/extern crate lazy_static;/use lazy_static::lazy_static;/; s/extern crate bitflags;/use bitflags::bitflags;/; s/extern crate serde_json;/ use serde_json::json;/; s/extern crate serde_derive;/use serde::{Serialize, Deserialize};/; /macro_use/d; /extern crate/ d; s/```rust/```rust,edition2018/; s/bail!/error_chain::&/; s/\(debug\|info\|warn\|error\)!/log::&/;' src/**.md

Fix #530

* Update rand-dist.md

* Fixes #569

* dump syslog

version 4 depends on error-chain v 0.11 and version 5 depends on v 0.12 
!!!!

Co-authored-by: Andrew Gauger <andygauge@gmail.com>
2020-05-31 17:26:32 -07:00
Andrew Gauger
40265251d8 Revert "Update to mdbook 0.2.1 (#482)"
This reverts commit fbcaca6c05.
2018-10-10 15:15:49 -07:00
James Hinshelwood
fbcaca6c05 Update to mdbook 0.2.1 (#482) 2018-10-10 09:13:29 -07:00
Andrew Gauger
97dabe59ae
Restructure Cookbook (#404) 2018-07-10 14:07:24 -07:00
Andrew Gauger
c991738112
Update template to support FontAwesome move (#427) 2018-07-10 13:23:21 -07:00
Michal Budzynski
43a34ef1cb support search by updating to mdbook 0.1.7 2018-05-16 22:40:39 +02:00
Michal Budzynski
0e07818023 Bumped to the latest mdbook version (0.0.25)
- enabled play button
- added clipboard support
- fixed several bugs on mobile
- new theme
- cleanup of custom css and js
2017-09-11 16:47:08 +02:00
Michal Budzynski
6cd55fe84b fixed links and CI auto-deploy after move to rust-lang-nursery
- fixed stargazers example broken due to repo move
- fixed edit functionality broken due to repo move
2017-07-29 18:38:26 +02:00
David Tolnay
fc2df7fe6e
Minimize padding for the badge columns 2017-05-23 14:44:48 -07:00
Michal Budzynski
2991cbd339 Inline code with hyperlink is now highlighted
Inline code with hyperlink has now the same color
and on hover underline as standard hyperlink.
2017-05-20 08:50:16 +02:00
Michal Budzynski
20c1e2cc95 Hide non essential parts of snippets by default
Updated net.md to hide error_chain boilerplate by default
it can be exposed by selecting the "expand button"
The expand button is no longer hidden
2017-05-20 00:53:56 +02:00
Michal Budzynski
fb85933a59 Added edit button allowing direct edit of given page on GitHub 2017-05-17 11:21:29 +02:00
Michal Budzynski
bdacaf7aa7 Imported default index.hbs to allow customizations 2017-05-17 11:13:32 +02:00
Michal Budzynski
14735ac35f Make consistent table column widths
Added explicit width values for first and second
table columns corresponding to "Recipe" and "Crates".
Please note that this is a broad CSS style for all tables
which will break any non TOC tables.

For a cleaner solution we would need to explicitly
add class attribute to the generated HTML.

resolves: https://github.com/brson/rust-cookbook/issues/42
2017-05-08 09:43:27 +02:00
David Tolnay
323795ee84
No run buttons because they don't support crates 2017-05-07 10:46:57 -07:00
David Tolnay
8a1d447404
Centralize our CSS modifications 2017-05-07 10:44:15 -07:00
Michal Budzynski
42de1c5cea Make the table width consistent
Added theme/book.css. It is a direct copy of the standard mdbook
book.css file with one addition of `width: 100%;` to the `table` style.
Infortunately mdbook allows only to substitute whole book.css.

Moreover please note that due to https://github.com/azerupi/mdBook/issues/227
`theme` directory has to be placed at the project root instead of `src`
2017-05-07 18:41:26 +02:00