> What could be easier than copying file over the default one?
I'm sorry, I'm not sure which file you're referring to? The logo.gif
file? The one in the jGD package gets overwritten each time I upgrade
to a new version of jGD. The one in the generated api directory is
overwritten each time I generate docs. jgdoc.css has the same
problem. The only way to permanently change the logo is to create a
custom CSS file and edit the aux_css property in
jgrousedoc.properties.
But that is not what I would describe as "trivially easy" - there are
several little pitfalls in doing this:
- Where do I put my aux_css file?
- What path do I use for aux_css? (e.g is it relative to the directory
I run jgd in? or the generated api directory? or ${jGrouseHome}?)
- What selector do I override?
- How do I set the width/height of the image? (padding-right and line-
height are not exactly the most intuitive attributes for this)
All new users are going to have to edit the jgrousedoc.properties file
_anyway_, so if we can do this without taking them out of that
experience, I think it is much simpler. For example, if there
# Path to the project logo. This is will be relative to the
generated /api
# directory. Some examples:
# logoUrl=../my_project/images/my_logo.gif
# logoUrl=/some_dir/my_logo.gif
# logoUrl=
http://mysite.com/my_logo.gif
logoUrl=logo.gif
Please note that I go into detail on this mostly to demonstrate what I
think is a fundamental difference in our perception of what an "easy
and acceptable" new user experience is. I am perfectly fine with just
removing the logo altogether and avoiding this whole issue for now.
But I believe having it in there necessitates solving this problem
properly.
> I guess that's exactly what you're doing, right?
> I would even put it into manual into the "install/config" section.
> Also it is possible to ship "blank" logo file for those who don't want
> to have any logos on the screen.
This just seems like overkill for what (from a user's perspective)
should be a simple configuration property.
> Customization of configuration from version to version is damn simple
> now - just keep what you have and if you need to change the default
> behavior then add the necessary lines. The only parameters that must
> be overridden are jGrouseHome directory and locations of input/output
> files.
Yes and no. Customization has gotten better, but I'm still having to
"merge" jgrousedoc.properties configuration files with each new
version. I'll follow up with a separate post about this.
> BTW, how are you customizing the templates? I strongly suspect that
> with Velocity there is a new way to do it without modifications of
> standard files
I'm not. Not yet at least. :)