Taking down older versions of our docs

43 views
Skip to first unread message

Aaron Meurer

unread,
Apr 15, 2014, 4:55:55 PM4/15/14
to sy...@googlegroups.com
We currently host a lot of old versions of our docs at docs.sympy.org. I don't really like this though, because too many people end up at old versions of the docs. For example, if you google "sympy matrices" you end up at the 0.7.2 docs. 

Should we remove the old versions of the docs, possibly adding redirects to the latest pages so that links don't break?

If not, does anyone know how to automatically add a "These docs are for an old version, find the latest version here" banner to the top of every old docs page?

Aaron Meurer

Jason Moore

unread,
Apr 15, 2014, 6:23:17 PM4/15/14
to sy...@googlegroups.com
It should be fairly easy to have an if statement in the jinja templates that shows a warning and link to the newer docs only if the docs aren't the latest. I think we should leave old docs available and just add the warning. readthedocs does this automatically for you, I believe.

--
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 sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6KKgFrYzsv_c1mCAz7HSkm6hgpEPwvkvTXTpoSH9-SYUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Aaron Meurer

unread,
Apr 15, 2014, 6:26:36 PM4/15/14
to sy...@googlegroups.com
The docs aren't using jinja. They're just html generated by Sphinx, with some patches to support cross-linking (see https://github.com/sympy/sympy_doc/blob/gh-pages/generate_indexes.py). If you know how to make it use Jinja and that would make things easier, then definitely go for it.

Aaron Meurer


Ondřej Čertík

unread,
Apr 15, 2014, 7:02:42 PM4/15/14
to sympy
On Tue, Apr 15, 2014 at 2:55 PM, Aaron Meurer <asme...@gmail.com> wrote:
> We currently host a lot of old versions of our docs at docs.sympy.org. I
> don't really like this though, because too many people end up at old
> versions of the docs. For example, if you google "sympy matrices" you end up
> at the 0.7.2 docs.

I fell into this trap myself couple times. A big fat warning on top
should fix this though.

Ondrej

>
> Should we remove the old versions of the docs, possibly adding redirects to
> the latest pages so that links don't break?
>
> If not, does anyone know how to automatically add a "These docs are for an
> old version, find the latest version here" banner to the top of every old
> docs page?
>
> Aaron Meurer
>

F. B.

unread,
Apr 16, 2014, 3:13:34 AM4/16/14
to sy...@googlegroups.com
By the way, the dev docs are stuck to version 0.7.3

http://docs.sympy.org/dev/

Jason Moore

unread,
Apr 16, 2014, 8:17:05 AM4/16/14
to sy...@googlegroups.com
Sphinx allows you to introduce jinja templates to override their defaults. I think all you have to do is copy the correct template that Sphinx is already using, modify it to your liking, and drop it in the _templates directory:

http://sphinx-doc.org/templating.html

On Wed, Apr 16, 2014 at 3:13 AM, F. B. <franz....@gmail.com> wrote:
By the way, the dev docs are stuck to version 0.7.3

http://docs.sympy.org/dev/

--
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 sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.

Jason Moore

unread,
Apr 16, 2014, 8:43:27 AM4/16/14
to sy...@googlegroups.com
I started implementing something for this, but I don't know what to do about the fact that the patch I'm creating will only work for this version of sympy and future versions. If I git checkout an older version of sympy and build the docs, it will of course not have my patch. Any ideas on how we could use the patch from a current version of sympy when building previous doc versions?

Jason Moore

unread,
Apr 16, 2014, 9:03:07 AM4/16/14
to sy...@googlegroups.com
I guess this doesn't matter. We will just have to generate the old docs with the new warning manually for each release.

Aaron Meurer

unread,
Apr 16, 2014, 12:01:26 PM4/16/14
to sy...@googlegroups.com
We can manually add it to the old docs I suppose. 

Aaron Meurer


Aaron Meurer

unread,
Apr 16, 2014, 12:03:33 PM4/16/14
to sy...@googlegroups.com
The dev docs are a separate issue. The problem there is that they are only updated when someone builds them and updates the docs in the repo. It would be nice if we had a bot that did this automatically.

Aaron Meurer


On Wed, Apr 16, 2014 at 2:13 AM, F. B. <franz....@gmail.com> wrote:
By the way, the dev docs are stuck to version 0.7.3

http://docs.sympy.org/dev/

--
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 sympy+un...@googlegroups.com.
To post to this group, send email to sy...@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.

Aaron Meurer

unread,
Apr 16, 2014, 12:05:59 PM4/16/14
to sy...@googlegroups.com
Until then, anyone can update the dev docs. Just send a pull request to https://github.com/sympy/sympy_doc, or push it directly if you have access. There are instructions in the README on how to do it (it's really simple).

Aaron Meurer

Sudhanshu Mishra

unread,
Apr 17, 2014, 1:38:05 AM4/17/14
to sy...@googlegroups.com
Hi all

I've sent a PR to update the dev docs.

With Regards
Sudhanshu Mishra
Reply all
Reply to author
Forward
0 new messages