<configure
   xmlns="http://namespaces.zope.org/zope"
   i18n_domain="zope"
   >

  <content class=".onlinehelp.OnlineHelp">
    <require
        permission="zope.View"
        interface=".interfaces.ISourceTextOnlineHelpTopic"
        />
    <require
        permission="zope.View"
        attributes="context"
        />
  </content>

  <!-- this is the generic help topic implementation -->
  <content class=".onlinehelptopic.OnlineHelpTopic">
    <require
        permission="zope.View"
        interface=".interfaces.ISourceTextOnlineHelpTopic"
        />
  </content>

  <!-- explicit restructured help topic implementation -->
  <content class=".onlinehelptopic.RESTOnlineHelpTopic">
    <require
        permission="zope.View"
        interface=".interfaces.IRESTOnlineHelpTopic"
        />
  </content>

  <!-- explicit structured help topic implementation -->
  <content class=".onlinehelptopic.STXOnlineHelpTopic">
    <require
        permission="zope.View"
        interface=".interfaces.ISTXOnlineHelpTopic"
        />
  </content>

  <!-- explicit page template help topic implementation -->
  <content class=".onlinehelptopic.ZPTOnlineHelpTopic">
    <factory
        id="onlinehelp.topic.zpt"
        />
    <require
        permission="zope.View"
        interface=".interfaces.IZPTOnlineHelpTopic"
        />
  </content>

  <content class=".onlinehelptopic.OnlineHelpResource">
    <require
        permission="zope.View"
        interface=".interfaces.IOnlineHelpResource"
        />
  </content>

  <!-- Setup OnlineHelp Root as a Utility -->
  <utility
      provides=".interfaces.IOnlineHelp"
      component="zope.app.onlinehelp.globalhelp"
      name="OnlineHelp" />

  <!-- Help Namespace Configuration -->
  <view
      name="help" 
      type="*"
      provides="zope.app.traversing.interfaces.ITraversable" 
      for="*"
      factory=".helpNamespace"
      />

  <adapter
      name="help"
      provides="zope.app.traversing.interfaces.ITraversable" 
      for="*"
      factory=".helpNamespace"
      />

  <!-- include browser package -->
  <include package=".browser" />

  <!-- register help topics -->
  <include package=".help" />

</configure>
