sympy_doc icon indicating copy to clipboard operation
sympy_doc copied to clipboard

added Better way to link to old docs at docs.sympy.org

Open mvnnn opened this issue 8 years ago • 37 comments

issue sympy/sympy#6614

mvnnn avatar Feb 29 '16 13:02 mvnnn

@asmeurer that's working fine in all version except v 0.6.7 i get Access-Control-Allow-Origin' error.i hope that's working fine on server.

mvnnn avatar Feb 29 '16 17:02 mvnnn

What about the generate_indices script?

asmeurer avatar Feb 29 '16 17:02 asmeurer

I also see the issue with 0.6.7.

asmeurer avatar Feb 29 '16 17:02 asmeurer

As long as we're using Javascript can we make a popup menu? The only really important ones are latest and dev? Can we put those at the top of the popup, then a divider, then the rest of the versions?

asmeurer avatar Feb 29 '16 17:02 asmeurer

The only really important ones are latest and dev? Can we put those at the top of the popup, then a divider, then the rest of the versions?

@asmeurer i am working on this.

mvnnn avatar Feb 29 '16 17:02 mvnnn

I also see the issue with 0.6.7.

i read txt file from same Origin but still get Access-Control-Allow-Origin' error.i will try to solve that issue. i think that's jquery version problem.

mvnnn avatar Feb 29 '16 18:02 mvnnn

Regarding 0.6.7, I'm guessing there's a bug in your script, perhaps due to the fact that 0.6.7 is the first entry in the file.

asmeurer avatar Feb 29 '16 18:02 asmeurer

@asmeurer i added this type of popup menu. screenshot from 2016-03-01 14 51 06 when we click on Other. screenshot from 2016-03-01 14 50 56

mvnnn avatar Mar 01 '16 09:03 mvnnn

@asmeurer that's looks good ?

mvnnn avatar Mar 04 '16 04:03 mvnnn

I would use a different color from yellow (see https://github.com/sympy/sympy-web-static#sympys-website-design for the pallet we use), but otherwise yes.

asmeurer avatar Mar 04 '16 05:03 asmeurer

@asmeurer that's looks good ? screenshot from 2016-03-05 14 39 43 screenshot from 2016-03-05 14 40 01

mvnnn avatar Mar 05 '16 09:03 mvnnn

@asmeurer that's looks good ?

Yes.

asmeurer avatar Mar 08 '16 19:03 asmeurer

Would it be possible to just check what the last value in the file is, and set that to "latest"?

@asmeurer i added this condition and update my PR.

mvnnn avatar Mar 11 '16 19:03 mvnnn

It seems you've added jquery in multiple places.

asmeurer avatar Mar 11 '16 21:03 asmeurer

Is it possible to not duplicate popupmenu.css?

asmeurer avatar Mar 11 '16 21:03 asmeurer

We need to generate this automatically (update the generate_indexes.py script). When we release a new version, we should only have to run that script to fix everything. You can see what the release script runs here.

asmeurer avatar Mar 11 '16 21:03 asmeurer

In terms of the content, I would remove the "SymPy Versions" box. Instead just call the buttons "Latest version", "Development version", and "Other versions". Also, it seems to me that the versions in "other" should be sorted from latest to least latest (reverse of what it is now).

Finally, can it highlight the version that we are presently on, and if we are on a non-latest version, have the "other" box be open by default, with the version we are on highlighted.

asmeurer avatar Mar 11 '16 22:03 asmeurer

@asmeurer Please check the changes.

mvnnn avatar Mar 29 '16 13:03 mvnnn

The pulsating "latest version" box is a bit confusing. It shows up when I mouse over an old version. Is that intentional?

Can we highlight for the current page (I guess use the lighter green).

asmeurer avatar Mar 29 '16 17:03 asmeurer

screenshot from 2016-03-30 01 51 44 @asmeurer That's looks good ?

mvnnn avatar Mar 29 '16 20:03 mvnnn

That doesn't really indicate which version of the docs is currently active.

asmeurer avatar Mar 29 '16 20:03 asmeurer

screenshot from 2016-03-31 11 16 52 screenshot from 2016-03-31 11 16 46 @asmeurer "latest version" background color is varies with time. now, that's looks good ? if not then explain little bit more which type of message box we need or sent me demo link .

mvnnn avatar Mar 31 '16 05:03 mvnnn

No, please don't add any annoying pulsating stuff. All I'm saying is that the version of the current page should be a different color, like this screen shot 2016-03-31 at 3 18 22 pm

asmeurer avatar Mar 31 '16 19:03 asmeurer

@asmeurer I like to add "latest" background color is varies with time. Should i do ?

mvnnn avatar Mar 31 '16 19:03 mvnnn

@asmeurer I like to add "latest" background color is varies with time. Should i do ?

IMO, background should be simple. I am -1 towards a "time varying" background color.

leosartaj avatar Mar 31 '16 19:03 leosartaj

@asmeurer As we discuss about Docker container. I built my own docker container and then i transfer this on Sympy docker container. give me detail about which dependency you want to run on Docker container.

mvnnn avatar Mar 31 '16 19:03 mvnnn

@asmeurer Please check the changes.

mvnnn avatar Apr 01 '16 16:04 mvnnn

Doesn't seem to work. "Latest" is always highlighted, even when pages for other versions.

asmeurer avatar Apr 01 '16 19:04 asmeurer

@asmeurer Sorry for delay, I added "latest" background color which is varies with time in Sympy 1.0 version. screenshot from 2016-04-11 09 16 13 screenshot from 2016-04-11 09 16 14

mvnnn avatar Apr 11 '16 03:04 mvnnn

@asmeurer That's looks good?

mvnnn avatar Apr 19 '16 16:04 mvnnn