Is there any chance blender.org gets a search portal that only returns the most recent api docs? like:
Now this stuff " blender_python_api_2_63_17/search.html? " is hardcoded into the blender help menu, but if i build my own version that url is taken from bpy.app.version_string. There’s no way to automate the search string using bpy.app.version_string, and be confident that the url will exist, because that will return a newer version than is present on the server.
Any suggestions appreciated
ie: http://www.blender.org/documentation/blender_python_api_2_63_19 doesn’t exist
Right now I have a Text Editor Addon with a search function that can search python docs for the string that is currently selected, which is great (open opens the system default webbrowser if it can). It would be neat to be able to select any portion of a bpy script and perform a search in the API docs.
maybe for now
from urllib.request import urlopen
d = urlopen('http://www.blender.org/documentation/250PythonDoc')
d = d.read()
>>> d
b'<html><head><title>Redirecting...</title><meta http-equiv="REFRESH" content="0;url=../blender_python_api_2_63_17/"></head><body>Redirecting...</body></html>
'
>>> str(d).split("/")[2]
'blender_python_api_2_63_17'
#
will suffice, which can be scraped - but surely there have to be nicer more web aware solutions.