Supports themes?

momendo - March 14, 2009 - 13:19
Project:Advanced help
Version:6.x-1.x-dev
Component:Documentation
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

This is a general question. Does this module or the patch going into D7 let themers write documentation for themes?

#1

merlinofchaos - March 15, 2009 - 15:14

Currently only modules are checked for help files, but this could easily be extended to themes.

#2

thekenshow - May 14, 2009 - 13:23

I agree – theme support is a terrific idea. I was thinking about documenting my experience with various aspects of the Zen theme and immediately wondered how to use Advanced Help for this.

#3

stephthegeek - June 15, 2009 - 02:17

Definitely +1. We make some complicated themes, would love to have a Drupally way to document things inside the theme itself :)

#4

merlinofchaos - June 15, 2009 - 03:40

I was totally wrong

// Search paths:
$paths = array(
path_to_theme() . '/help', // Allow theme override.
drupal_get_path('module', $module) . "/translations/help/$language->language", // Translations.
$info['path'], // In same directory as .inc file.
);

So there you go.

This only really allows overrides, though. Actually having help *for* a theme might be trickier, though not completely impossible. I'm not sure if what's in there is enough so not yet marking fixed, though if it is sufficient for folks, go ahead and do so.

 
 

Drupal is a registered trademark of Dries Buytaert.