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:
- 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.
- 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/*.
In short
If you have a custom template you have to:
- Update the template.xml and change every word theme into template
- 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!
Tags: 0.17.0 > documentation > inheritance > performance > release > template > template.xml > theme
Comments
6 Responses to “Release of v0.17.0”
Leave a Reply
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!
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.
December 16th, 2011 @ 3:37 pm
Yeah, I saw that on Google too … weird. But thanks for all the hard work. I love docblox!
December 18th, 2011 @ 11:11 pm
Thanks for the love, really appreciated!
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.
December 22nd, 2011 @ 9:19 pm
I will need to look into that one! Thanks for mentioning