Support multiple versions of a piece of software
I found out about this project from the Postgres Weekly newsletter. The devdocs for postgres (http://devdocs.io/postgresql/) will be very useful to me. One thing that's lacking from the official postgres documentation, though, is the ability to choose a specific version of Postgres. In my case, I'd like to read the documentation for Postgres 9.2 since I'm not running 9.3 yet.
I understand how this could be useful but it isn't a priority right now. Most documentations don't support versioning or include all versions in one place (e.g. jQuery).
I'd really like this for Python; there are huge changes from 2 to 3 and 2 still has a massive installed base.
:+1: for Rails. This has multiple versions available too, so might be a good candidate to start with. I'm happy to help out with this - can we have a high level discussion about the options for implementing it?
@nfm Supporting multiple minor versions (e.g. 3.1, 3.2, etc.) and being able to pick one inside the app is a major undertaking. Given the limited number of documentations that supports versioning, I don't think it's worth the effort.
However I'm open to the idea of creating multiple documentation sets for major versions (e.g. Rails 3 & 4, Python 2 & 3). You could help with this by adding a scraper for Rails 3.
Hi @Thibaut, I've just been having a look at this now. It seems like the Rails 3 scraper is straightforward, pretty much exactly the same as the Rails 4 one. I just made a Rails3 class, updated the name, slug, and version, and checked out the tag v3.2.17 before running rdoc in the same way as you did for Rails 4 to generate the docs.
I've done this locally and have been playing around with the front-end for it. So far the necessary changes are pretty minimal, like ensuring slugs and URLs are unique or include the version number, adding a matching CSS class for each version so they all get the correct icon, ensuring you can tab-complete different versions, those kinds of things.
Is this something you're interested in pursuing further?
Hi @nfm! Thanks for working on this. My main concern is having to maintain another scraper / documentation that wouldn't be used by many people.
However, feel free to open a pull request with your scraper and I'll take a look. If the index isn't too messed up I'd definitely be interested in adding Rails 3.
Is there any updates on this issue? Many people are still using python 2, and the python 3 documentation is not very helpful due to a lot of incompatibilities.
@netheril96 This isn't on my short-term todo list, sorry.
Is there anywhere we can vote on this? I would also like to see this happen. Django 1.7 docs don't help me too much when I'm contributing to a project that uses an old version.
@grantmcconnaughey I hear you but I have limited time and have to prioritize features. Multi-version support is likely something I'll try to tackle in 2015.
@Thibaut Could you shed some light on how difficult implementing this feature is? I would think that just treating Python 2.7 and Python 3 as two separate languages would be enough, at least temporarily.
@netheril96 I may make an exception for Python (in the coming weeks), but ideally what I'd like is a dropdown next to each documentation to select a version (if the doc supports it). This is the complex/difficult bit.
Keep in mind that it's also a lot more work to maintain multiple versions — after fine-tuning the scraper, I have to run a few commands, make sure everything still works, sometime update the code, and finally upload the files to S3/MaxCDN, for every update of every doc available on DevDocs. I do all this for free :)
In 2015 I'd like to take a shot at standardizing the doc format DevDocs uses, which is going to require updating all docs. I'd rather tackle multi-version support after that.
I do all this for free :)
Thanks for doing this!
@Thibaut I hope to see that soon. Python 2 and 3 are so different that the documentation for one is all but useless to those working with the other, whereas the lack of fine grained versioning of docs is tolerable and not well supported in other softwares anyway.
+1 on multi-version support. Python isn't such an unusual case, IMO. Django and Angular have backwards-incompatible changes between versions. I imagine many other of the documented platforms do as well. Whenever upgrading to a new version is non-trivial, there are bound to be many dev groups using older versions. Similarly, some devs are bound by various policies to stable environments with older versions like debian or ubuntu LTS.
This is one of the things I appreciate greatly about readthedocs.
I might give this a shot in the coming months.
+1 for multi-version support(especially on Rails & Ruby)
Another +1 on multiple version support even if not concurrent, picking the version you want to have "installed" would be super handy!
I keep revisiting this project hoping to find that you've added multiple version support. There are many of us who would love to use this project but simply can't because we would require this feature. +1
EDIT: Although... thank you for adding Python 2!
@ryanmark Thanks for the feedback. As I said, I wish I had time to do everything, but this is a major undertaking which I have to balance with other things, including my personal life. I maintain and develop DevDocs exclusively on my spare time. What would be worse for everybody is for me to burn out.