I'd like to slightly modify the output format of NaturalDocs so that each HTML file generated has a copy of my client's logo to the left of the title. Has anybody done this/is it easy to do? It will never change so I suspect that such a reference belongs in the .css file(s) but can't quite work out where.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It may be possible to do it in CSS with :before and content, but I haven't tried it and if I remember correctly, IE doesn't support that.
It would be easier to just edit Natural Docs itself to change the generated HTML. Open [ND Dir]/Modules/NaturalDocs/Builder/HTMLBase.pm and search for <div id=MTitle>. That's right before the text of the menu title so anything you add to that string will be added to the output. You'll have to run ND with -ro once to apply the changes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'd like to slightly modify the output format of NaturalDocs so that each HTML file generated has a copy of my client's logo to the left of the title. Has anybody done this/is it easy to do? It will never change so I suspect that such a reference belongs in the .css file(s) but can't quite work out where.
Thanks
In my custom stylesheet, I added a margin-top and background image (no repeat) to the body tag. Cheap fix; works.
It may be possible to do it in CSS with :before and content, but I haven't tried it and if I remember correctly, IE doesn't support that.
It would be easier to just edit Natural Docs itself to change the generated HTML. Open [ND Dir]/Modules/NaturalDocs/Builder/HTMLBase.pm and search for <div id=MTitle>. That's right before the text of the menu title so anything you add to that string will be added to the output. You'll have to run ND with -ro once to apply the changes.