What command would be used to run FPCdoc on all files in a directory.
PSEUDO EXAMPLE: (crashes fpdoc)
fpdoc --package=Test --input=*.pas;*.inc;
Mailing lists / fpc-pascal / 2006-04
9 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
What command would be used to run FPCdoc on all files in a directory.
PSEUDO EXAMPLE: (crashes fpdoc)
fpdoc --package=Test --input=*.pas;*.inc;You can't do it like that. You must do a
fpdoc --package=Test --input=file1.pas --input=file2.pas
Michael.
What command would be used to run FPCdoc on all files in a directory. PSEUDO EXAMPLE: (crashes fpdoc) fpdoc --package=Test --input=*.pas;*.inc;
fpdoc --package=Test $(ls -1 *.pas *.inc | awk '{printf("input=%s ", $1)}')
- Jeff
AWK for the one liner.. I was going to build a program that sucked all the *.pas file names out of a directory and made an fpdoc command out of it.. then launch the command.
Other question about FPDOC: is there a way to skip the HTML head and footer so the page is not a complete html document but just a snippet of html? If not, would it be allowed for me to build this feature and send a patch or would I do it privately? I'd like html snippets instead of an HTML page so I can build the docs into a CGI program.
For example, skipping the html body, head, head closing, and body closing tags at minimum.
Maybe a --snippet option.
fpdoc --package=Test $(ls -1 *.pas *.inc | awk '{printf("input=%s ", $1)}') - Jeff
-Jeff
tidy --show-body-only yes test.html > test-body.html
That'll work in the mean time while I wait for responses and comments on the snippet feature.
FastHTMLParser could also work, find the Body tag (OnTag event) and record all text between body.
It would be nice if I could build it right into the fpdoc tool though, so it's just one step.
I'll have a should be easy to do. Michael.
While you are looking at fpdoc, can you look at this mail again? http://lists.freepascal.org/pipermail/fpc-devel/2006-March/007346.html
If it is too much work, please tell how you want it to be done in the xml and I will write the code for the html writer.
Vincent.
That'll work in the mean time while I wait for responses and comments on the snippet…
I'll have a should be easy to do.
Michael.
I was looking into dw_html and I'm not sure if my object orientation theory is right but:
Would this be the way to go:
-create a dw_htmlsnip file, or dw_htmlbody
-inherit the HTMLWriter and make a HTMLSnippetWriter object, or HTMLBodyWriter, overriding the THTMLWriter.CreateHTMLPage with your own procedure, that basically skipped the footer, skipped the header, skipped the body tag, etc.
I see all the header tags are basically created in THTMLWriter.CreateHTMLPage