Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for listing html files generated in index.html #71

Open
vinitkumar opened this issue Feb 2, 2014 · 2 comments
Open

Add support for listing html files generated in index.html #71

vinitkumar opened this issue Feb 2, 2014 · 2 comments

Comments

@vinitkumar
Copy link

Ever since I used pycco, I am in love with it. It is really awesome and handy. Though I faced one problem. While recursively generating docs, I end up having a lot of html files in nested dirs (as code). Is there any way to get all of them listed nicely just using the tool? I hate the manual work of linking the html to a index.html file

@0atman
Copy link

0atman commented Apr 17, 2017

I think the -i, --generate_index option is what you want:

$ pycco --help

Usage: pycco [options]

Options:
  -h, --help            show this help message and exit
  -p, --paths           Preserve path structure of original files
  -d OUTDIR, --directory=OUTDIR
                        The output directory that the rendered files should go
                        to.
  -w, --watch           Watch original files and re-generate documentation on
                        changes
  -l LANGUAGE, --force-language=LANGUAGE
                        Force the language for the given files
  -i, --generate_index  Generate an index.html document with sitemap content
  -s, --skip-bad-files  Continue processing after hitting a bad file

@0atman
Copy link

0atman commented Apr 17, 2017

I leave this running when coding, running my tests and auto-updating the docs:

$ reload bash -c "cd ../ && py.test -q tests && pycco -ip src/**/*.py"

I use reload and py.test. You have to use bash rather than sh because of the extended ** globbing magic that recursively gets all nested python files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants