You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update old docs with deprecated and/or redirect to stable, or latest. #8785
I don't think that's quite the right thing - canonical links are for when the exact same document is available at two different URLs, and the reason we have versioned docs is that the content is not the same.
I see that the docs for versions 1, 2 and 3 now have a warning at the top that they're for an old version of IPython. I think that's about the best we can do.
I don't think that's quite the right thing - canonical links are for when the exact same document is available at two different URLs, and the reason we have versioned docs is that the content is not the same.
Read the docs does that for "stable", which is likely the version people want to be on.
It is useful for indexing purpose.
Google does not know how to read the warning at top of pages. Also you can be dropped by google directly in a section and don't get a chance to see the warning.
So I would be +1 on rel-canonical. Especially for v1,2 and 3 that have been built on RTD now.
I see that the docs for versions 1, 2 and 3 now have a warning at the top that they're for an old version of IPython. I think that's about the best we can do.
No not that much, version 1,2,3 docs are still (too) visible on google search.
If it is possible to update 0.10.2 docs with new warning, we can see if Google changes its results in a few weeks.
The all point of this issue is to update old docs. And as stated in the first comment of this issue : getting them to rebuild completely is hard, as some part don't rebuild.
So if you figure out how to rebuild them successfully, that would be great. If you figure out how to rebuild on RTD it's even better.
No not that much, version 1,2,3 docs are still (too) visible on google search.
Have a prooflink to check?
The all point of this issue is to update old docs. And as stated in the first comment of this issue : getting them to rebuild completely is hard, as some part don't rebuild.
Do you have logs for that and repeatable sequence of commands?
Though inheritance diagram are not builded and I have no clue why.
Maybe a plugin or Graphviz is missing. Also, 0.10.x was generated with Sphinx 1.1pre, which itself may be buggy.
Do you have logs for that and repeatable sequence of commands?
at least for 0.11
$ python setup.py install
$ git checkout rel-0.11
$ cd docs
$ make html
it should clone this repo in docs/gh-pages,
which should make things easy to compare.
Maybe a plugin or Graphviz is missing. Also, 0.10.x was generated with Sphinx 1.1pre, which itself may be buggy.
It's fine if for 1 build we have to revert to sphinx 1.1pre, even if you make just a small progress on that, more instruction on this issue would be welcome, people could take over later.
pip install sphinx pygments
git clone https://github.com/ipython/ipython.git -b 0.10.2
cd ipython
python setup.py install
cd docs
make html
Extension error:
Could not import extension inheritance_diagram (exception: cannot import name xfileref_role)
make: *** [html] Error 1
Hum, yes, the build get a bit further with this fix, that's a step forward.
though now we need twisted, to be able to import IPython.frontend.asyncfrontendbase.
even with twisted, install it's a bit hard to get the import:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/Users/bussonniermatthias/dev/ipython/IPython/frontend/<ipython console> in <module>()
/Users/bussonniermatthias/dev/ipython/IPython/frontend/asyncfrontendbase.py in <module>()
28 IFrontEndFactory)
29 from IPython.kernel.core.history import FrontEndHistory
---> 30 from IPython.kernel.engineservice import IEngineCore
31
32 #-----------------------------------------------------------------------------
/Users/bussonniermatthias/dev/ipython/IPython/kernel/engineservice.py in <module>()
337 del _apiDict[id]
338
--> 339 class EngineService(object, service.Service):
340 """Adapt a IPython shell into a IEngine implementing Twisted Service."""
341
/Users/bussonniermatthias/anaconda3/envs/27/lib/python2.7/site-packages/zope/interface/advice.pyc in advise(name, bases, cdict)
139 meta = determineMetaclass(bases, previousMetaclass)
140
--> 141 newClass = meta(name,bases,cdict)
142
143 # this lets the callback replace the class completely, if it wants to
TypeError: Error when calling the metaclass bases
Cannot create a consistent method resolution
order (MRO) for bases Service, object
Nah, doesn't work with those. Although error message is different:
reading sources... [ 20%] api/generated/IPython.frontend.frontendbase
Exception occurred:
File "/root/ipython/docs/sphinxext/docscrape.py", line 466, in __init__
raise ValueError("Initialise using a class. Got %r" % cls)
ValueError: Initialise using a class. Got <InterfaceClass IPython.frontend.frontendbase.IFrontEnd>
Activity
minrk commentedon Sep 1, 2015
Can you upload local builds to RTD? If so, we should definitely do that. I thought RTD only built from repos.
Carreau commentedon Sep 1, 2015
You used to be able to. Or the trick is to use a custom builder that fetch a zip and unpack it instead of actually building the stuff.
I did it a loooong time ago.
Carreau commentedon Sep 26, 2015
Possibility, use rel=canonical, that's what read the docs uses.
techtonik commentedon Jan 27, 2016
So, move to RTD? Or there is a theming problem that it is not as beautiful as https://ipython.org/ipython-doc/3/index.html ? Or there is a problem to sync docs and links between sites?
minrk commentedon Jan 27, 2016
Current docs and future docs are already on RTD. This is just a question of what to do with old versions.
techtonik commentedon Jan 28, 2016
Try
<link rel=canonical>? https://en.wikipedia.org/wiki/Canonical_link_elementtakluyver commentedon Jan 28, 2016
I don't think that's quite the right thing - canonical links are for when the exact same document is available at two different URLs, and the reason we have versioned docs is that the content is not the same.
I see that the docs for versions 1, 2 and 3 now have a warning at the top that they're for an old version of IPython. I think that's about the best we can do.
Carreau commentedon Jan 28, 2016
I already proposed that a 2 messages above yours.
Read the docs does that for "stable", which is likely the version people want to be on.
It is useful for indexing purpose.
Google does not know how to read the warning at top of pages. Also you can be dropped by google directly in a section and don't get a chance to see the warning.
So I would be +1 on rel-canonical. Especially for v1,2 and 3 that have been built on RTD now.
techtonik commentedon Jan 28, 2016
It is still an issue with 0.10 - https://www.google.com/search?q=oinspect leads to https://ipython.org/ipython-doc/rel-0.10.2/html/api/generated/IPython.OInspect.html
Sorry, my fault - too many signals to handle.
I am pretty sure it can read and understand them. =) Baidu can do a lot more, though.
If it is possible to update 0.10.2 docs with new warning, we can see if Google changes its results in a few weeks.
Carreau commentedon Jan 28, 2016
No not that much, version 1,2,3 docs are still (too) visible on google search.
The all point of this issue is to update old docs. And as stated in the first comment of this issue : getting them to rebuild completely is hard, as some part don't rebuild.
So if you figure out how to rebuild them successfully, that would be great. If you figure out how to rebuild on RTD it's even better.
The last point is to also find time to do it.
techtonik commentedon Jan 28, 2016
Have a prooflink to check?
Do you have logs for that and repeatable sequence of commands?
Maybe a plugin or Graphviz is missing. Also, 0.10.x was generated with Sphinx 1.1pre, which itself may be buggy.
As a last resort, download and patch HTML.
Carreau commentedon Jan 28, 2016
This google search for me:
at least for 0.11
$ python setup.py install
$ git checkout rel-0.11
$ cd docs
$ make html
it should clone this repo in
docs/gh-pages,which should make things easy to compare.
It's fine if for 1 build we have to revert to sphinx 1.1pre, even if you make just a small progress on that, more instruction on this issue would be welcome, people could take over later.
techtonik commentedon Jan 29, 2016
Seems pretty clear.
techtonik commentedon Jan 29, 2016
The solution seems here nilmtk/nilmtk#87 (comment)
techtonik commentedon Jan 29, 2016
Here is the fix that was not backported to 0.10 takluyver@f657f2b
Carreau commentedon Jan 29, 2016
Hum, yes, the build get a bit further with this fix, that's a step forward.
though now we need
twisted, to be able to importIPython.frontend.asyncfrontendbase.even with twisted, install it's a bit hard to get the import:
techtonik commentedon Jan 29, 2016
I can only guess that
zope.interfaceneeds to be downgraded to the version that was available at that time. And trysphinx==1.1too.My full LXD setup to get clean state checkout with a fresh Ubuntu:
Now I need to downgrade Sphinx and see what happens.
techtonik commentedon Jan 29, 2016
Looks like 0.10.2 was released on Fri Apr 8 23:17:32 2011 -0700
At that time active versions were:
techtonik commentedon Jan 29, 2016
Nah, doesn't work with those. Although error message is different: