-
Notifications
You must be signed in to change notification settings - Fork 20
Releasing 0.2.0? #88
Comments
I would especially appreciate this as I can no longer publish my documentation to docs.rs because of the the thrift issue. |
Agree 100% |
When are we going to publish 0.2.0? Should we wait for #86 and #91, and #94? @andygrove Let me know if you need any help with field accessors PR. Thanks! |
I think we should try getting the following in the 0.2.0 release:
|
I'm also working on a PR to support accessors for List & Map, which is also necessary for 0.2 I think. Otherwise, one pretty much can't do anything after getting List & Map. |
Nice, thanks! |
Well done! I think we should release 0.2.0. I am still working on #94, and it does not block the release and it will take me some time to finish.
|
I just published 0.2.0! However, docs.rs did not use nightly rustc and so failed to compile the project. I'm figuring out a way to fix this now. We may need to publish a minor release for the doc issue. |
Another option is running cargo docs manually and self hosting the docs.
…On Wed, Apr 25, 2018, 10:12 PM Chao Sun ***@***.***> wrote:
I just published 0.2.0! However, docs.rs did not use nightly rustc and so failed
to compile the project <https://docs.rs/crate/parquet/0.2.0/builds/97194>.
I'm figuring out a way to fix this now. We may need to publish a minor
release for the doc issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#88 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA5AxN7cbXk1MVgOSjBQe-NVd7ySv0Yuks5tsUk5gaJpZM4TU4YR>
.
|
@andygrove Thanks. Will take that as an option also. |
@sunchao Would you mind creating a new release on Github (https://github.com/sunchao/parquet-rs/releases)? Thanks! Let me know if you need any help with publishing docs on Github pages. I am more than happy to help out. |
@sadikovi . Sure. I just published the release. I'm still looking at why docs.rs doesn't use nightly for build. Yeah, it would be great if you can also look at publishing docs to Github pages. Thanks! |
I thought it would be acceptable to do the following:
The idea is running the script for every release, documentation will be published for every release manually, instead of publishing on every commit in travis. Each release will be stored in repository like this:
See an example here: https://github.com/sadikovi/parquet-rs-docs/tree/master/docs Available: This has the following benefits:
We can use Or as an alternative Travis supports pushing to Github pages: https://docs.travis-ci.com/user/deployment/pages/. This would mean that we just need to add Let me know what you think. |
Or as an alternative Travis supports pushing to Github pages: https://docs.travis-ci.com/user/deployment/pages/. This would mean that we just need to add cargo doc as a build step and configure deploy step in Travis. But this would build docs for every commit to master. |
@sadikovi Thanks for the suggestions. Personally I'm in favor of the github pages approach, for deploying docs for master branch. I think we can create a branch On the other hand, I'm in favor of publishing docs for different versions on docs.rs. I've filed an issue there, and it seems we only need to revert #97 to make the build successful. But I think we should wait until they update the binary to use nightly. |
Let's settle on gh-pages for now. I was thinking if publishing manually is better. By manual publishing, I mean having a script that updates new version, publishes crate and uploads docs on gh-pages branch. But we could do it either way. |
I will play with it in my test repository and report back. Cheers! |
I played with publishing docs on ApproachesFirst, I tried publishing docs via Then, I decided to go with @sunchao suggested approach similar to hyper repo. Though the solution was inspired by it, I did not actually use any of the files from hyper, and wrote script myself. This solution does work on master and tags, so documentation is automatically published for master All examples of setup are here: You can also click on badges, links redirect to the correct versions. Steps to make it work
diff --git a/.travis.yml b/.travis.yml
index 94f1d1e..dd256f9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,12 +19,16 @@ rust:
script:
- cargo build
- cargo test
+ - cargo doc --no-deps
after_success:
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo bench;
fi
- cargo coveralls --verbose --exclude-pattern '/parquet-rs/src/bin'
+ - '[ "$TRAVIS_PULL_REQUEST" = false ] &&
+ { [ "$TRAVIS_TAG" != "" ] || [ "$TRAVIS_BRANCH" = "master" ]; } &&
+ ./.travis/deploy-docs.sh'
env:
global:
We can also add badges to README, one for master docs and another for the latest published version. Unfortunately, we would have to manually update version in README for badge, but it is a minor thing (see the actual links below): [![API docs](https://img.shields.io/badge/docs-v0.4.1-blue.svg)](https://sadikovi.github.io/parquet-rs-docs/v0.4.1/parquet/)
[![Master API docs](https://img.shields.io/badge/docs-master-green.svg)](https://sadikovi.github.io/parquet-rs-docs/master/parquet/) See an example in test repo: https://github.com/sadikovi/parquet-rs-docs/blob/master/README.md We could update everything in README when creating a "publish" commit. That is pretty much it. If any questions, refer to the test repo: https://github.com/sadikovi/parquet-rs-docs.
|
@sunchao Let me know what you think of the approach, and let me know if you want to do it, or I should make the changes for docs (I can open a PR). Thanks! |
Thanks @sadikovi . This is excellent description! I'll try to make changes following this. |
I think we should close this issue as 0.2.0 has been released including docs. |
@sadikovi Sure. I'll release it today. |
We made several important changes on the code base recently:
I think it may be a good time to publish version 0.2.0.
The text was updated successfully, but these errors were encountered: