2017-07-28 18 views
0

次のPythonコードのドキュメントを生成します。それは私が推測するように働いた。これは、以下のhtmlドキュメントを生成したためです。pydocを使ってPythonライブラリへのリンクを追加するには

enter image description here


問題

問題は、私はモジュール(argparse、OS、SYS、zipファイル)のいずれかをクリックすると、それは空のページを与えることです。どのように私は自分のWebページに指示されるのいずれかをクリックするために、ドキュメントのモジュールのリンクを追加することができますか?

私はzipファイルをクリックすると仮定することは、私はhttps://docs.python.org/2/library/zipfile.html


ソースコード」

#!/usr/bin/env python 

import os 
import sys 
import argparse 
import zipfile 

from ftplib import FTP 
from os.path import basename 



def is_route(record, routes): 
    """ 
     Check if route belongs to any of the 14 routes 
     :param record: name of route 
     :param routes: list of routes 
     :return: True if routes exists else False 

    """ 
    for route in routes: 
     if route in record: 
      return True 

    return False 

def download(username, password, searchDate, routes, output): 
    """ 
     Download files from FTP server 

     :param username: username of FTP server 
     :param password: password of FTP server 
     :param searchDate: date of previous day 
     :param routes: list of routes 
     :output: directory where downloaded files are saved 
     :return: returns nothing 
    """ 

if __name__ == "__main__": 

    #download routes 
    download("", "", "", "", "") 

答えて

0

に向けることができるpydocサーバに

pydoc -p <arbitrary port number> 
を開始するようにしてください
関連する問題