-
Notifications
You must be signed in to change notification settings - Fork 409
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
Publish multiple versions of the book #482
Comments
i love this idea. i - don't know the best way to set up the docs build process to do this, but it's something i certainly think would be a huge benefit. |
I have an idea how this could be done but I'm not sure it's the best approach though. I will try to explain what I'm thinking: Since all releases are git tags and the book is published via Travis I was thinking that you could hook into the Travis pipeline somewhere around here and then iterate over all the available git tags that's outputted via This could possibly be accomplished by running something like the following command for This would result in one sub-folder per git tag in the The last step would be to publish all the contents of the |
I can try to see if I can get something working using the described approach above. Please let me know if anyone got any thoughts about this. |
I have made some progress on this and successfully been able to generate documentation for I was first thinking that I could cover all the releases, from I think we need to discuss some things before proceeding further. What should we do for those releases that doesn't have any book-related files checked into the repo? Should we skip generating docs for all releases |
yeah, we just didn't have a book in those versions. i think focusing on |
thanks so much for working on this and if you'd like- feel free to post a WIP pr and we can move the convo over there :) whichever you'd prefer tho! |
Great, thanks! Absolutely, I can post a PR :) |
FWIW I'm not actually sure if we want to do this. In theory older versions should become outdated very quickly to the point that we don't need to keep around documentation for them. Otherwise the main two versions that need documentation are the currently published version and whatever's on master. For that I'd personally love to see a central location for "published rustwasm books" in the For master branch documentation I'd ideally prefer to leave that on gh-pages as it is today, but have a banner at the top saying it's nightly only with a link to the released documentation. |
I will point out too that many languages are plagued with having old documentation come up on Google searches. Rust being a prime example. Due to this, on each outdated doc page, I'd hope for a link to the same page in the most recent docs. |
i'm inclined to agree with @alexcrichton on this- it does seem that the two cases we would really want to support are current master and the latest version- this should greatly simplify the implementation tho- which is nice! @drager what do you think of that? |
I agree that @alexcrichton's solution is much better for solving issues like #462. It will be a lot easier to maintain and implement which I really like! Also, the point @danwilhelm brings up will be non-existent with this solution, which is great. The only concern I have left is, what if some user is stuck with an old version of wasm-pack and are unable to upgrade, due to various reasons (maybe an older version of Rust or something). How should this be handled? These older versions are present in git, via tags so that might be enough? Or maybe this is an issue for the future? I mean, it's probably not likely to be a problem right now, so maybe we shouldn't try to "solve" a problem that doesn't exist yet? |
I've pushed up rustwasm/rustwasm.github.io#37 which is my thinking about how we'd tackle this. I think for older documentation we'd stick to git for now |
Alright, sounds good. |
@alexcrichton @ashleygwilliams I think we can close this now since rustwasm/rustwasm.github.io#37 and a59cf6a#diff-e3e2a9bfd88566b05001b02a3f51d286 is merged? |
Indeed! |
💡 Feature description
Currently the docs are built only from
master
and published to https://rustwasm.github.io/wasm-pack/book/. This can cause users to think the latest version (0.5.1) contains all the features that are present inmaster
but they aren't because master is currently not released. #462 is one example of this. It's also hard to check documentation for old releases.I think the docs at https://rustwasm.github.io/wasm-pack/book/ should be generated for multiple versions (like docs.rs does), so we can have docs for
master
,latest stable
as well asolder releases
.What do you guys think?
The text was updated successfully, but these errors were encountered: