Search does not link to the correct location for local Android SDK documentation -


After updating the Android SDK and linking to the correct location locally stored documents search results after the relevant documentation on my Mac Closed. Search results for root ("/") link instead of local documentation directory (ANDROID_SDK_DIRECTORY / docs /) The "documentation" API for Android SDK is for version 16 and the revision is 1.

As an alternative solution, I have edited a document javascript files. Edited file edit ANDROID_SDK_DIRECTORY / docs / assets / js / search_autocomplete.js has been added to search_changed (about line 174) function to start the function:

  var cur_loc = Window.location.pathname; Var slash_doc_slash = cur_loc.indexOf ("/ docs /"); If (slash_doc_slash> = 0) {var after_bit = cur_loc.substr (slash_doc_slash + "/docs/".length); Var after_bit_length = after_bit.length; Var up_dots = ""; For (var i = 0; i & lt; after_bit_length; i ++) {var test_ch = after_bit.charAt (i); If (test_ch == "/") {up_dots + = "../"; }} Toroot = up_dots; }    

Comments