Skip to content

Considering using mdbook instead of gitbook #248

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
japaric opened this issue Sep 26, 2014 · 14 comments
Closed

Considering using mdbook instead of gitbook #248

japaric opened this issue Sep 26, 2014 · 14 comments

Comments

@japaric
Copy link
Member

japaric commented Sep 26, 2014

This would remove our dependency on node.js, which would let us get closer to make this repo cargo buildable.

@nathankleyn
Copy link

@japaric @steveklabnik Is this something you're still interesting in doing? It feels like something I might actually be able to work on.

@steveklabnik
Copy link
Member

@nathankleyn absolutely. It's been too big of a project for me to try to tackle, but it's something I want for sure.

@nathankleyn
Copy link

@steveklabnik If that's the case, I might have a poke tonight and get a feel for what's involved - it's something I'd love to try my hand at, although I will almost certainly have questions for you along the way! 😀

@steveklabnik
Copy link
Member

Sure thing, I'd be happy to answer any questions. It's certainly a project that's feasable, it's just a lot of grunt work, and I've been trying to focus on 'write more docs' and less 're-do the build system'

The key thing is the plugin that gives us the fancier "embed the result of running this in the page." it's mostly javascript, but would need adapted a little.

Also, if you need any improvements in rustbook to support it, I'm happy to walk you through those too

@mdinger
Copy link
Contributor

mdinger commented Aug 26, 2015

I'm opposed to this without rustbook being upgraded to having dark theme support. I find light themes much much harder on the eyes and so I wouldn't ever move to where a dark theme isn't available (I really dislike the that the book and std docs are light themed only).

Also, it'd be worth considering using mdBook instead. He seems to be putting more effort into improving it than rustbook is seeing and it's independent of the rust repo which makes it simpler to hack on.

@steveklabnik
Copy link
Member

If mdBook is really full featured, I'm actually happy to have it just eat rustbook entirely, frankly. And I mirror rustbook out of tree too.

@mdinger
Copy link
Contributor

mdinger commented Aug 26, 2015

It isn't yet I don't think but it has a few niceties that rustbook doesn't have like a more proper sidebar toggling and next/previous arrows. It's still new though. We gotta give it time. He also has printing the entire book on the todo list. That would be nice.

@nathankleyn
Copy link

@mdinger @steveklabnik Given the above, let me wait on this for now - I'll familiarise myself with the differences between rustbook and mdBook and get an idea of what needs to be done. If anybody else wants to pick this up who knows what they're doing, feel free! 😀

@mdinger
Copy link
Contributor

mdinger commented Sep 14, 2015

mdBook now has multiple themes included including a dark theme. See the example render though it hasn't been pushed to crates yet. I'm not opposed to this anymore.

Something else which I think would be convenient is if cargo could export the JSON or TOML from the Cargo.toml. Then the cargo framework could handle the testing of the files (I think) and the example structure could just be exported into a JSON file which the book generator could grab to build the docs. Also discussed #439 and rust-lang/cargo#1968 (comment) .

@brson
Copy link
Contributor

brson commented Jun 27, 2016

Should be converted to mdbook at this point - rustbook is doomed. I don't think there's anything blocking this. Just do the conversion and change the CI.

@steveklabnik
Copy link
Member

Yeah, the only blocking is the "just", there's a lot going on here.

@mdinger
Copy link
Contributor

mdinger commented Jun 27, 2016

See https://github.com/azerupi/mdBook/issues/29 but unless something has changed, as far as I know we're still waiting for examples which are editable. It's also missing search but I think that's a more minor issue.

@mdinger
Copy link
Contributor

mdinger commented Jun 28, 2016

BTW, I may have time coming up this 4th of July week so if mdbook was in good enough shape for this, I may attempt it. We'll see how it goes.

@steveklabnik steveklabnik changed the title Considering using rustbook instead of gitbook Considering using mdbook instead of gitbook Mar 21, 2017
@steveklabnik
Copy link
Member

Updated the title here; rustbook is mdbook these days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants