Skip to content

Maintain LTS (2.0) version of API docs #665

Closed

Description

@danielmewes

Once we have 2.0 out, we need to keep supporting 2.0 API docs even after releasing newer server versions (2.1 and following).

@mglukhovsky mentioned at some point that there will be a place in the new website for version information.

The other part of that question is how different versions of a document can be maintained in the docs repository and how we're going to deploy them (separate folders, separate files, maybe just a separate branch?).

In the simplest case we would simply add annotations to ReQL terms and optargs that mark in which release those terms/optargs were added. However that doesn't work too well if we change the behavior of an existing term.

Activity

  1. deontologician commented on Mar 7, 2015

    @deontologician
    Contributor

    I think branches might be nice, so we can easily compare across versions. The build process could just have a list of branches it will build docs for and the end result would keep them in separate directories for serving

  2. chipotle commented on Mar 13, 2015

    @chipotle
    Contributor

    Internally, the separate branches seem like the best idea.

    The way a fair number of other projects seem to do this externally is to include the version number in the URL:

    http://rethinkdb.com/api/2.0/javascript/run
    

    with symlinks set up so there's always a current version available (or using URL rewriting to do that):

    http://rethinkdb.com/api/current/javascript/run
    

    I imagine the deployment/build script could check out the branches in the right place, create the symlink, etc. I don't know if we'd want to keep deploying by building the entire web site locally and then rsyncing to production, though.

  3. chipotle commented on May 5, 2015

    @chipotle
    Contributor

    Pinging @mglukhovsky for thoughts on this.

  4. mglukhovsky commented on May 6, 2015

    @mglukhovsky
    Member

    @watts: I've added this to my website TODO list, I need to give this some thought. Thanks for the ping!

  5. danielcompton commented on May 19, 2015

    @danielcompton
    Contributor

    I'm a big fan of how Basho does their documentation, it's always really clear which version you're looking at and how to look at older versions. https://github.com/basho/basho_docs

  6. danielcompton commented on May 26, 2015

    @danielcompton
    Contributor

    Relates to #778

  7. AtnNn commented on Jun 25, 2015

    @AtnNn
    Member

    Are there any plans to do this before 2.1?

  8. danielmewes commented on Jun 25, 2015

    @danielmewes
    MemberAuthor

    @AtnNn Yes, @mglukhovsky has been working on something for this.

  9. chipotle commented on Aug 13, 2015

    @chipotle
    Contributor

    This is being handled now, so we can close the issue, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions