pycco-docs / pycco

Literate-style documentation generator.
https://pycco-docs.github.io/pycco/
Other
842 stars 144 forks source link

Support for .h (C/C++ Header) files #64

Open sulphur2 opened 11 years ago

sulphur2 commented 11 years ago

Thanks! For the excellent port. It works fantastic with various sources. However, when I try to generate docs for .h files, I get the following error:

[jupiter@localhost app]$ $pycco core/*.h Traceback (most recent call last): File "/usr/bin/pycco", line 9, in load_entry_point('Pycco==0.3.0', 'console_scripts', 'pycco')() File "/usr/lib/python2.6/site-packages/pycco/main.py", line 480, in main process(sources, outdir=opts.outdir, preserve_paths=opts.paths) File "/usr/lib/python2.6/site-packages/pycco/main.py", line 417, in process next_file() File "/usr/lib/python2.6/site-packages/pycco/main.py", line 411, in next_file f.write(generate_documentation(s, preserve_paths=preserve_paths, outdir=outdir)) File "/usr/lib/python2.6/site-packages/pycco/main.py", line 46, in generate_documentation sections = parse(source, fh.read()) File "/usr/lib/python2.6/site-packages/pycco/main.py", line 66, in parse language = get_language(source) File "/usr/lib/python2.6/site-packages/pycco/main.py", line 324, in get_language return languages[ source[source.rindex("."):] ] KeyError: '.h'

goosemo commented 8 years ago

I think you were on an older version, I'm unable to recreate at this time. Likely this issue can be closed. Would you mind confirming @sulphur2 ?