Just an update on this, I figured that since only a few people were using the "latest" redirect, it wasn't very useful. So I've changed it so that docs.sympy.org/latest is the main url for the docs of the latest release. docs.sympy.org/0.7.3 redirects to that page. When the next version is released, docs.sympy.org/0.7.3 will point to the docs for 0.7.3, and docs.sympy.org/0.7.4 will redirect to docs.sympy.org/latest.
Since the common case is that doc urls should remain up-to-date, I think this way is the best. If you explicitly want your url to be about the current release but not future releases, just change "latest" to the release number. Aaron Meurer On Sun, Jun 16, 2013 at 8:55 PM, Aaron Meurer <[email protected]> wrote: > I have added http://docs.sympy.org/latest, which automatically > redirects to http://docs.sympy.org/0.7.2. I made it so that specific > pages redirect to specific pages, so for example, > http://docs.sympy.org/latest/gotchas.html redirects to > http://docs.sympy.org/0.7.2/gotchas.html. Use this from now on when > you put links to docs in places that will be permanent. > > To do this, I have added a script to the docs repo to generate > redirects > (https://github.com/sympy/sympy_doc/blob/gh-pages/generate_redirects.py). > It just creates a html page in latest/ for each page in 0.7.2/ with a > redirect. I don't know much about html, so if someone can see that I > am doing something wrong here, or if you know of a better way to do > it, please let me know. I think usually one would do this sort of > thing with htaccess, but since GitHub pages are static, we cannot do > that. > > One issue I noticed while testing this is that web browsers (or at > least Chrome) cache the redirect. I'm not sure for how long, but if it > is for a long time, this could be an issue when we update it with a > new release. > > By the way, if you ever update the docs in that repo (either docs for > a release or development docs), please read the README that I have put > there. > > Aaron Meurer -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
