Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign updocument a folder with several .py files #79
Comments
This comment has been minimized.
This comment has been minimized.
gvvka0327
commented
Nov 18, 2015
|
pdoc generates html files and is saving them under /tmp/pdoc-2.7 folder... thatz what happened on my end... |
This comment has been minimized.
This comment has been minimized.
mikecharles
commented
Nov 18, 2015
|
If you run |
This comment has been minimized.
This comment has been minimized.
gvvka0327
commented
Nov 18, 2015
|
I tried that like, export PYTHONPATH=$dir did'nt work... I want to generate html files for the folder and put it in --html-dir specified.. |
This comment has been minimized.
This comment has been minimized.
mikecharles
commented
Nov 18, 2015
|
I think your options are: Make $dir a package
Note that Loop over Python scripts
|
This comment has been minimized.
This comment has been minimized.
gvvka0327
commented
Nov 18, 2015
|
Getting error, NameError: name 'all' is not defined do we need to specify all in init.py file.. -Vijay On Wed, Nov 18, 2015 at 1:53 PM, Mike Charles notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
mikecharles
commented
Nov 18, 2015
|
Which method did you try? |
This comment has been minimized.
This comment has been minimized.
gvvka0327
commented
Nov 20, 2015
|
PYTHONPATH=$dir/.. pdoc --html-dir=./api_folder --html --only-pypath $dir |
This comment has been minimized.
This comment has been minimized.
mikecharles
commented
Nov 20, 2015
|
Glad it worked! |
EliosMolina commentedNov 15, 2015
I have a folder with several .py scripts (no init.py file). I get a nice web documentation using:
$ PYTHONPATH=$dir pdoc --http --only-pypath
But I don't know how to save it into html files. Is there anyway to do it?
Thanks.