diff --git a/docs/api.rst b/docs/api.rst index 4b51fd85614..d1204960a73 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -44,9 +44,6 @@ Alternatively you can try with the following value:: #val = api.version('pip').get() #val = api.version('pip').get(slug='1.0.1') - #val = api.version('pip').highest.get() - #val = api.version('pip').highest('0.8').get() - API Endpoints ------------- @@ -484,59 +481,6 @@ Version Filtering Examples ------------------ -Find Highest Version -~~~~~~~~~~~~~~~~~~~~ -:: - - http://readthedocs.org/api/v1/version/pip/highest/?format=json - -.. http:get:: /api/v1/version/{id}/highest/ - - :arg id: A Version id. - - Retrieve highest version. - - .. sourcecode:: js - - { - "is_highest": true, - "project": "Version 1.0.1 of pip (5476)", - "slug": [ - "1.0.1" - ], - "url": "/docs/pip/en/1.0.1/", - "version": "1.0.1" - } - - -Compare Highest Version -~~~~~~~~~~~~~~~~~~~~~~~ - -This will allow you to compare whether a certain version is the highest version of a specific project. The below query should return a `'is_highest': false` in the returned dictionary. - -:: - - http://readthedocs.org/api/v1/version/pip/highest/0.8/?format=json - -.. http:get:: /api/v1/version/{id}/highest/{version} - - :arg id: A Version id. - :arg version: A Version number or string. - - Retrieve highest version. - - .. sourcecode:: js - - { - "is_highest": false, - "project": "Version 1.0.1 of pip (5476)", - "slug": [ - "1.0.1" - ], - "url": "/docs/pip/en/1.0.1/", - "version": "1.0.1" - } - File Search ~~~~~~~~~~~ diff --git a/media/javascript/rtd.js b/media/javascript/rtd.js deleted file mode 100644 index 2c37cb90707..00000000000 --- a/media/javascript/rtd.js +++ /dev/null @@ -1,95 +0,0 @@ -(function () { - var checkVersion = function (slug, version) { - var versionURL = ["//readthedocs.org/api/v1/version/", slug, - "/highest/", version, "/?callback=?"].join(""); - - $.getJSON(versionURL, onData); - - function onData (data) { - if (data.is_highest) { - return; - } - - var currentURL = window.location.pathname.replace(version, data.slug), - warning = $('

Note

\ - You are not using the most up to date version \ - of the library. is the newest version.

\ -
'); - - warning - .find('a') - .attr('href', currentURL) - .text(data.version); - - $("div.body").prepend(warning); - } - - }; - - var getVersions = function (slug, version) { - var versionsURL = ["//readthedocs.org/api/v1/version/", slug, - "/?active=True&callback=?"].join(""); - - return $.getJSON(versionsURL, gotData); - - function gotData (data) { - var items = $('