-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Comments
@japaric @steveklabnik Is this something you're still interesting in doing? It feels like something I might actually be able to work on. |
@nathankleyn absolutely. It's been too big of a project for me to try to tackle, but it's something I want for sure. |
@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! 😀 |
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 |
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. |
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. |
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. |
@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! 😀 |
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 |
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. |
Yeah, the only blocking is the "just", there's a lot going on here. |
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. |
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. |
Updated the title here; rustbook is mdbook these days. |
This would remove our dependency on
node.js
, which would let us get closer to make this repo cargo buildable.The text was updated successfully, but these errors were encountered: