build_lcl_docs: add --css-file parameter for setting chm css files
Original Reporter info from Mantis: BigChimp
-
Reporter name: Reinier Olislagers
Original Reporter info from Mantis: BigChimp
- Reporter name: Reinier Olislagers
Description:
Added --css-file param that passes the file to fpdoc --css-file. If not specified, the current hard coded parameter is used.
This allows specifying the css file used to compile chm files and avoid this warning
fpdoc is complaining about a missing .css file:
Writing 19901 pages...
Exception at 00441644: Exception:
Can't find CSS file "..\fpdoc.css".
306 Warnings hidden. Use --warnings to see them all.
Tested with fpcup: fpdoc no longer throws the error.
Additional information:
build_lcl_docs had a hardcoded default value of the --css-file parameter
This fpdoc error is probably caused by the changed directory layout of fpc where fpdoc no longer has a parent directory where the required css file lives.
Had fiddled with the --arg options like this to pass the path
cd C:\Development\lazarus\docs\chm
C:\development\lazarus\docs\html\build_lcl_docs.exe "--fpcdocs"
"C:\development\lazarus\docs\chm" "--fpdoc"
"C:\development\fpctrunk\bin\i386-win32\fpdoc.exe" "--arg
css-file=C:\development\fpctrunk\utils\fpdoc\fpdoc.css " "--outfmt" "chm"
etc but that didn't work.
See Lazarus mailing list August 2, subject LCL chms pipe dream part n
Mantis conversion info:
- Mantis ID: 24823
- OS: Windows
- OS Build: Windows 7
- Build: 42245
- Platform: x64 (with x86 compiler)
- Version: 1.1 (SVN)
- Fixed in revision: 42283 (#cadd2430)