Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [05-2008 Date Index] [Date Next] || [Thread Prev] [05-2008 Thread Index] [Thread Next]

[dokuwiki] Re: Leaner HTML Markup

  • From: Christopher Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 8 May 2008 00:53:11 +0100

On 7 May 2008, at 22:11, fantasai wrote:

In my case, I'm running the W3C CSS Working Group's wiki. Styling is
not such a big issue, but I'd like our markup to follow best practices.

Unfortunately we need to support the current set of popular browsers which don't necessarily follow best practices ;)


In cases where this results in a loss of functionality, I would consider
it a problem for the CSSWG to solve. :) (e.g. styling list markers
independently without resorting to list-style-image should be possible
in CSS3.) I can see the argument for the extra li div in the interim,
though, so I'm ok with that particular hack. (It's also relatively easy
for me to maintain that one change in my local tree.)



The newly released DW version supports xhtml renderer replacement. You can make a plugin which extends the standard dokuwiki xhtml renderer class and implement your own (overriding) methods where appropriate. I.e., you don't need to maintain a separate tree. The feature isn't strongly documented at present. You can see some information in the patch log -

http://dev.splitbrain.org/darcsweb/darcsweb.cgi?r=dokuwiki;a=commit;h=20080312005647-f07c6-ff2cb960c05927f5c6f3e916a364fcad470c2ce3.gz

I have a sample renderer, not yet published, which changes DW default line-break behaviour by overriding the cdata() function, see it at http://wiki.jalakai.co.uk/dokuwiki/doku.php/tutorials/renderer

- Chris

PS. Section editing isn't based around the div of class "section" but the code which generates the section open and close instructions (which in turn generate the <div class="section"> ... </div> html) also generates the section edit instruction. My note was just a heads up that there are other implications to the change besides the generated html, not a comment on how easy or difficult the changes would be.

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.