[Grok-dev] Setting up apidoc with Grok

Luciano Ramalho luciano at ramalho.org
Fri Aug 17 09:02:45 EDT 2007


It seems that the apidoc package is not included in the Grok buildout.
Since then, I've setup a regular Zope 3 instance to run on a different
port just so I can look at the docs. HTH.

Regards,

Luciano


On 8/17/07, Sebastian Ware <sebastian at urbantalk.se> wrote:
> After fixing the XML, there is still no introspection tab in the ZMI.
> Shouldn't the introspection tab appear just by adding "devmode on" in
> zope.conf? Or do I also have to add some ZCML, in which case where?
> (I have tried to follow the directions in Philipps book, but I am not
> getting it to work)
>
> Mvh Sebastian
>
>
> 17 aug 2007 kl. 10.44 skrev Wichert Akkerman:
>
> > Previously Sebastian Ware wrote:
> >> I am trying to enable the APIdoc magic of Zope 3.
> >>
> >> I have added "devmode on" to zope.conf. But it chokes on the zcml
> >> directives I have added to my project configure.zcml file. Any ideas
> >> what is wrong?
> >>
> >> <configure xmlns="http://namespaces.zope.org/grok"
> >>            xmlns:browser="http://namespaces.zope.org/browser"
> >>            i18n_domain="protoncms">
> >>   <grok package="." />
> >>
> >>   <browser:addMenuItem
> >>     class=".app.ProtonCMS"
> >>     title="ProtonCMS"
> >>     description="A simple CMS"
> >>     permission="zope.ManageContent"
> >>     />
> >>
> >> </configure>
> >>
> >> <configure xmlns:apidoc="http://namespaces.zope.org/apidoc"
> >>            xmlns:zcml="http://namespaces.zope.org/zcml"
> >>            zcml:condition="have apidoc">
> >>
> >>          <apidoc:rootModule module="protoncms" />
> >>
> >>          <apidoc:bookchapter
> >>              id="protoncms"
> >>              title="ProtonCMS"
> >>              />
> >> </configure>
> >
> > You can not have two root elements in an XML file. Just put the apidoc
> > statements in the first <configure> block.
> >
> > Wichert.
> >
> > --
> > Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
> > http://www.wiggy.net/                   It is hard to make things
> > simple.
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>


More information about the Grok-dev mailing list