9

I just noticed that there is some ancient version of documentation accessible directly at http://pypi.python.org/pypi/gensim (right at the top, under Package Documentation). I may have tested that feature when first trying PyPi, ages ago.

Now real documentation for my package is maintained elsewhere. I'd like to get rid of that PyPi link and that silly page. Is there a way?


So far, I managed to "re-upload" a zip file containing an empty index.html, through the PyPi package admin interface. I thought that would at least provide an empty page to users unfortunate enough to click on the PyPi documentation link. Any way to delete it completely?

Neither "upload nothing" nor "upload an empty zip" work, PyPi checks for a zip and it must contain an index.html file.

3
  • 1
    Can't you display a link to the new documentation? Commented Jun 29, 2011 at 14:24
  • Can I? That would be perfect. I can't figure out where this Package Documentation metadata resides and how to update it. Commented Jun 29, 2011 at 16:24
  • 5 Years later... I am wondering if there is a better way than uploading a javascript redirection html document. Commented Nov 13, 2016 at 19:56

2 Answers 2

10

Just create a new index.html file with a link to the new documentation or even a redirect:

<html>
    <head>
        <title>A web page that points a browser to a different page after 2 seconds</title>
        <meta http-equiv="refresh" content="2; URL=http://www.example.com">
        <meta name="keywords" content="automatic redirection">
    </head>
    <body>
        {PACKAGE_NAME}'s documentation is maintained elsewhere.
        You will be redirected to the new documentation within 2 seconds.
        If the browser does not automatically redirect you, you may want to go to <a href="http://www.example.com">the destination</a> manually.
    </body>
</html>

Now zip it and go to http://pypi.python.org/pypi. Then login and go to your package's admin page. There you will find a button to upload the zipped documentation:

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Thx, the redirect is a nice idea! I'll wait a bit to see if someone knows a direct answer. If not, I'll accept this.
4

Pypi recently added an option to destroy the documentation.

Log into your package and there is now an option to Destroy Documentation.

enter image description here

1 Comment

Just be patient, in my case it took about 20 seconds to delete and update the main package page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.