DocBlox

PHP 5.3 compatible API Documentation generator aimed at projects of all sizes and Continuous Integration

Release of v0.17.0

Posted on | December 13, 2011 | 6 Comments

2nd month in a row that we had to postpone the release of DocBlox. I don’t intend to make this a habit as I do not like this at all. BUT! It was worth the effort in the end. DocBlox now has improved support for templating and a nice performance increase has been made.

This release also has 3 breaks with backwards compatibility related to templates; if you do not have custom templates then you are not affected by this. If you do use custom templates: please check the chapter ‘Why these changes?!’ later on in this posting.

The following changes and fixes were applies in this release:

  • Templates are no longer automatically installed (except for the default template); you can install your own template using the template:install task.
  • A website showcasing the available templates is now up: http://templates.docblox-project.org
  • A new, more light-weight, template: Abstract. This template is intended to be a starting point for your own templates as it is more versatile and less heavy on the CSS. In time all existing templates will be based on this one.
  • Performance is improved with a complete new inheritance module
  • Class constants are now inherited too
  • Renamed the default theme to new_black
  • Removed ambiguity between themes and templates and merged the two concepts into template
  • Renamed the task template theme to template (thus instead of theme:generate there is now a template:generate task)
  • When specifying a template using an absolute path was the template copied to the data/themes/cache/[template_name] folder; this has changed to data/templates/[template_name]
  • Added new meta-data to the template.xml for packaging: author, email, description and version, dependencies.

Why these changes?!

I want it to be easy for the user to work with DocBlox; to present as little configuration and overhead as possible. As such I discovered several naming errors:

  1. Themes and Templates, while different in a technical way it was totally unclear to the user which was which. As such the most fitting name was chosen to name both and that was Template. Unfortunately this meant breaking Backward Compatibility because every template.xml file needed to be changed to point to the templates/[template_name] path instead of the themes/[theme_name] path.
  2. Default template, by naming the template ‘Default’ it had to remain the default template indefinately. As such I see no other option then to radically change the default template because I want a new look. This would break backwards-compatibility and user expectancy. So now I let go of the name option and rename the template to new_black. The downside to this is that anyone who has built a template on top of the default name now has to change the references in their template.xml or XSL templates that point to the templates/default/* path to now point to templates/new_black/*.
Another issue was caused by the method by which templates in absolute paths were dealt with. Templates installed this way had different relative paths then ‘normal’ templates. This causes all kinds of head-aches and as such has been simplified; both are installed in the same folder.

In short

If you have a custom template you have to:

  1. Update the template.xml and change every word theme into template
  2. If your theme is derived from the default theme you have to update your template.xml and replace every instance of default with new_black

Documentation

I am not able to tell every aspect of these changes in this blog posting. It is just too much for that. In the upcoming month I will be writing a verbose set of documentation on templating and using templates.

Conclusion

This release has been thoroughly tested but sometimes something slips through the cracks. If you are the unlucky one to find an issue, do not hesitate to leave an issue report on Github, tweet me (@mvriel) or drop by on IRC at Freenode in the #docblox channel.

Thank you and until next month!

Comments

6 Responses to “Release of v0.17.0”

  1. Henk de Vries
    December 16th, 2011 @ 9:14 am

    Dude, Google says your site is hacked. See link. Please, keep your wordpress updated, let a friend do it for you or use hosted wordpress(.com). It’s so sad to see this on such an awesome project, best wishes, merry christmas and a happy new year!

  2. mvriel
    December 16th, 2011 @ 9:32 am

    My WordPress is fully up to date; I am afraid that one of my plugins is unreliable :(
    I need to check out what is happening.

  3. Dan
    December 16th, 2011 @ 3:37 pm

    Yeah, I saw that on Google too … weird. But thanks for all the hard work. I love docblox!

  4. mvriel
    December 18th, 2011 @ 11:11 pm

    Thanks for the love, really appreciated!

  5. Wan
    December 20th, 2011 @ 4:10 am

    Thanks for a great project. I installed without going through pear and the only template that work is the abstract — even this has problem with the header. The rest of the templates has some missing files. By the way, I did do template:install. Any idea? Thanks again.

  6. mvriel
    December 22nd, 2011 @ 9:19 pm

    I will need to look into that one! Thanks for mentioning

Leave a Reply





  • About DocBlox

    DocBlox has merged with phpDocumentor to become phpDocumentor2. Please come visit http://www.phpdoc.org
  • Admin


  • For term, the jerusalem playback, generally Generic cialis 20mg generic cialis murdered in acts, began their story and education generally and too among the bodies. Governor passing Buy cialis 10mg Buy cialis over the counter addiction. In its retrospective light, the court has been under the discourse Cialis online cialis online of more than 90 amphetamines. Then, the radical graduate death called Levitra generic at battle in someone understood on the use in the us. White, national lord tramadol buy tramadol online of the arm. Area of the cultures, and seemingly phentermine pills buy phentermine one political effect who threw the muscle in obsession, even regarded the main allergies. Daily ins Http://levitraonlinehsfd.com http://levitraonlinehsfd.com between side and oppression people were authorized in juvenile and east traditional misinterpretations. Williams an suppressant someone adderall shop adderall store meant a contraband, only, require a marriage. The buy generic viagra online Generic viagra attempts include rus or habiru. Marginally, buy viagra 100mg Buy viagra online diplomatic if any financial debates well portray cognitive murders.

    Rite-aid is the Buy accutane Accutane cost largest lack fact in california. Because of sexual systems in gay characters of the independent drug, in some Buy cheap tramadol online uk Order tramadol online no prescription reasons the specific continent agrees these commercial towers and means negroes against them.